v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 851 | skipping to change at line 851 | |||
template <class T> | template <class T> | |||
V8_INLINE Local<T> Escape(Local<T> value) { | V8_INLINE Local<T> Escape(Local<T> value) { | |||
internal::Object** slot = | internal::Object** slot = | |||
Escape(reinterpret_cast<internal::Object**>(*value)); | Escape(reinterpret_cast<internal::Object**>(*value)); | |||
return Local<T>(reinterpret_cast<T*>(slot)); | return Local<T>(reinterpret_cast<T*>(slot)); | |||
} | } | |||
private: | private: | |||
internal::Object** Escape(internal::Object** escape_value); | internal::Object** Escape(internal::Object** escape_value); | |||
// Make it hard to create heap-allocated or illegal handle scopes by | ||||
// disallowing certain operations. | ||||
EscapableHandleScope(const EscapableHandleScope&); | ||||
void operator=(const EscapableHandleScope&); | ||||
void* operator new(size_t size); | ||||
void operator delete(void*, size_t); | ||||
internal::Object** escape_slot_; | internal::Object** escape_slot_; | |||
}; | }; | |||
/** | /** | |||
* A simple Maybe type, representing an object which may or may not have a | * A simple Maybe type, representing an object which may or may not have a | |||
* value. | * value. | |||
*/ | */ | |||
template<class T> | template<class T> | |||
struct V8_EXPORT Maybe { | struct V8_EXPORT Maybe { | |||
Maybe() : has_value(false) {} | Maybe() : has_value(false) {} | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added | |||