Changeset 155357 in webkit for trunk/Source/JavaScriptCore/runtime
- Timestamp:
- Sep 9, 2013, 10:10:19 AM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSCell.h
r154459 r155357 32 32 #include "WriteBarrier.h" 33 33 #include <wtf/Noncopyable.h> 34 #include <wtf/TypeTraits.h>35 34 36 35 namespace JSC { … … 179 178 inline To jsCast(From* from) 180 179 { 181 ASSERT(!from || from->JSCell::inherits( WTF::RemovePointer<To>::Type::info()));180 ASSERT(!from || from->JSCell::inherits(std::remove_pointer<To>::type::info())); 182 181 return static_cast<To>(from); 183 182 } … … 186 185 inline To jsCast(JSValue from) 187 186 { 188 ASSERT(from.isCell() && from.asCell()->JSCell::inherits( WTF::RemovePointer<To>::Type::info()));187 ASSERT(from.isCell() && from.asCell()->JSCell::inherits(std::remove_pointer<To>::type::info())); 189 188 return static_cast<To>(from.asCell()); 190 189 } … … 193 192 inline To jsDynamicCast(From* from) 194 193 { 195 return from->inherits( WTF::RemovePointer<To>::Type::info()) ? static_cast<To>(from) : 0;194 return from->inherits(std::remove_pointer<To>::type::info()) ? static_cast<To>(from) : 0; 196 195 } 197 196 … … 199 198 inline To jsDynamicCast(JSValue from) 200 199 { 201 return from.isCell() && from.asCell()->inherits( WTF::RemovePointer<To>::Type::info()) ? static_cast<To>(from.asCell()) : 0;200 return from.isCell() && from.asCell()->inherits(std::remove_pointer<To>::type::info()) ? static_cast<To>(from.asCell()) : 0; 202 201 } 203 202 -
trunk/Source/JavaScriptCore/runtime/WriteBarrier.h
r154162 r155357 31 31 #include "Heap.h" 32 32 #include "SamplingCounter.h" 33 #include <wtf/TypeTraits.h>34 33 35 34 namespace JSC { … … 52 51 template<class T> inline void validateCell(T cell) 53 52 { 54 ASSERT_GC_OBJECT_INHERITS(cell, WTF::RemovePointer<T>::Type::info());53 ASSERT_GC_OBJECT_INHERITS(cell, std::remove_pointer<T>::type::info()); 55 54 } 56 55
Note:
See TracChangeset
for help on using the changeset viewer.