v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 487 | skipping to change at line 487 | |||
static int NumberOfHandles(); | static int NumberOfHandles(); | |||
/** | /** | |||
* Creates a new handle with the given value. | * Creates a new handle with the given value. | |||
*/ | */ | |||
static internal::Object** CreateHandle(internal::Object* value); | static internal::Object** CreateHandle(internal::Object* value); | |||
// Faster version, uses HeapObject to obtain the current Isolate. | // Faster version, uses HeapObject to obtain the current Isolate. | |||
static internal::Object** CreateHandle(internal::HeapObject* value); | static internal::Object** CreateHandle(internal::HeapObject* value); | |||
private: | private: | |||
// Make it impossible to create heap-allocated or illegal handle | // Make it hard to create heap-allocated or illegal handle scopes by | |||
// scopes by disallowing certain operations. | // disallowing certain operations. | |||
HandleScope(const HandleScope&); | HandleScope(const HandleScope&); | |||
void operator=(const HandleScope&); | void operator=(const HandleScope&); | |||
void* operator new(size_t size); | void* operator new(size_t size); | |||
void operator delete(void*, size_t); | void operator delete(void*, size_t); | |||
// This Data class is accessible internally as HandleScopeData through a | // This Data class is accessible internally as HandleScopeData through a | |||
// typedef in the ImplementationUtilities class. | // typedef in the ImplementationUtilities class. | |||
class V8EXPORT Data { | class V8EXPORT Data { | |||
public: | public: | |||
internal::Object** next; | internal::Object** next; | |||
skipping to change at line 3483 | skipping to change at line 3483 | |||
template <class T> friend class Persistent; | template <class T> friend class Persistent; | |||
friend class Context; | friend class Context; | |||
}; | }; | |||
/** | /** | |||
* An external exception handler. | * An external exception handler. | |||
*/ | */ | |||
class V8EXPORT TryCatch { | class V8EXPORT TryCatch { | |||
public: | public: | |||
/** | /** | |||
* Creates a new try/catch block and registers it with v8. | * Creates a new try/catch block and registers it with v8. Note that | |||
* all TryCatch blocks should be stack allocated because the memory | ||||
* location itself is compared against JavaScript try/catch blocks. | ||||
*/ | */ | |||
TryCatch(); | TryCatch(); | |||
/** | /** | |||
* Unregisters and deletes this try/catch block. | * Unregisters and deletes this try/catch block. | |||
*/ | */ | |||
~TryCatch(); | ~TryCatch(); | |||
/** | /** | |||
* Returns true if an exception has been caught by this try/catch block. | * Returns true if an exception has been caught by this try/catch block. | |||
skipping to change at line 3573 | skipping to change at line 3575 | |||
void SetVerbose(bool value); | void SetVerbose(bool value); | |||
/** | /** | |||
* Set whether or not this TryCatch should capture a Message object | * Set whether or not this TryCatch should capture a Message object | |||
* which holds source information about where the exception | * which holds source information about where the exception | |||
* occurred. True by default. | * occurred. True by default. | |||
*/ | */ | |||
void SetCaptureMessage(bool value); | void SetCaptureMessage(bool value); | |||
private: | private: | |||
// Make it hard to create heap-allocated TryCatch blocks. | ||||
TryCatch(const TryCatch&); | ||||
void operator=(const TryCatch&); | ||||
void* operator new(size_t size); | ||||
void operator delete(void*, size_t); | ||||
v8::internal::Isolate* isolate_; | v8::internal::Isolate* isolate_; | |||
void* next_; | void* next_; | |||
void* exception_; | void* exception_; | |||
void* message_; | void* message_; | |||
bool is_verbose_ : 1; | bool is_verbose_ : 1; | |||
bool can_continue_ : 1; | bool can_continue_ : 1; | |||
bool capture_message_ : 1; | bool capture_message_ : 1; | |||
bool rethrow_ : 1; | bool rethrow_ : 1; | |||
friend class v8::internal::Isolate; | friend class v8::internal::Isolate; | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 11 lines changed or added | |||