v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1706 | skipping to change at line 1706 | |||
public: | public: | |||
V8EXPORT Local<Object> NewInstance() const; | V8EXPORT Local<Object> NewInstance() const; | |||
V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const; | V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const; | |||
V8EXPORT Local<Value> Call(Handle<Object> recv, | V8EXPORT Local<Value> Call(Handle<Object> recv, | |||
int argc, | int argc, | |||
Handle<Value> argv[]); | Handle<Value> argv[]); | |||
V8EXPORT void SetName(Handle<String> name); | V8EXPORT void SetName(Handle<String> name); | |||
V8EXPORT Handle<Value> GetName() const; | V8EXPORT Handle<Value> GetName() const; | |||
/** | /** | |||
* Name inferred from variable or property assignment of this function. | ||||
* Used to facilitate debugging and profiling of JavaScript code written | ||||
* in an OO style, where many functions are anonymous but are assigned | ||||
* to object properties. | ||||
*/ | ||||
V8EXPORT Handle<Value> GetInferredName() const; | ||||
/** | ||||
* Returns zero based line number of function body and | * Returns zero based line number of function body and | |||
* kLineOffsetNotFound if no information available. | * kLineOffsetNotFound if no information available. | |||
*/ | */ | |||
V8EXPORT int GetScriptLineNumber() const; | V8EXPORT int GetScriptLineNumber() const; | |||
/** | /** | |||
* Returns zero based column number of function body and | * Returns zero based column number of function body and | |||
* kLineOffsetNotFound if no information available. | * kLineOffsetNotFound if no information available. | |||
*/ | */ | |||
V8EXPORT int GetScriptColumnNumber() const; | V8EXPORT int GetScriptColumnNumber() const; | |||
V8EXPORT Handle<Value> GetScriptId() const; | V8EXPORT Handle<Value> GetScriptId() const; | |||
skipping to change at line 2779 | skipping to change at line 2787 | |||
char** raw_data; | char** raw_data; | |||
}; | }; | |||
/** | /** | |||
* EntropySource is used as a callback function when v8 needs a source | * EntropySource is used as a callback function when v8 needs a source | |||
* of entropy. | * of entropy. | |||
*/ | */ | |||
typedef bool (*EntropySource)(unsigned char* buffer, size_t length); | typedef bool (*EntropySource)(unsigned char* buffer, size_t length); | |||
/** | /** | |||
* Interface for iterating though all external resources in the heap. | ||||
*/ | ||||
class V8EXPORT ExternalResourceVisitor { // NOLINT | ||||
public: | ||||
virtual ~ExternalResourceVisitor() {} | ||||
virtual void VisitExternalString(Handle<String> string) {} | ||||
}; | ||||
/** | ||||
* Container class for static utility functions. | * Container class for static utility functions. | |||
*/ | */ | |||
class V8EXPORT V8 { | class V8EXPORT V8 { | |||
public: | public: | |||
/** Set the callback to invoke in case of fatal errors. */ | /** Set the callback to invoke in case of fatal errors. */ | |||
static void SetFatalErrorHandler(FatalErrorCallback that); | static void SetFatalErrorHandler(FatalErrorCallback that); | |||
/** | /** | |||
* Set the callback to invoke to check if code generation from | * Set the callback to invoke to check if code generation from | |||
* strings should be allowed. | * strings should be allowed. | |||
skipping to change at line 3121 | skipping to change at line 3138 | |||
* to use if the process needs the resources taken up by v8. | * to use if the process needs the resources taken up by v8. | |||
*/ | */ | |||
static bool Dispose(); | static bool Dispose(); | |||
/** | /** | |||
* Get statistics about the heap memory usage. | * Get statistics about the heap memory usage. | |||
*/ | */ | |||
static void GetHeapStatistics(HeapStatistics* heap_statistics); | static void GetHeapStatistics(HeapStatistics* heap_statistics); | |||
/** | /** | |||
* Iterates through all external resources referenced from current isolat | ||||
e | ||||
* heap. This method is not expected to be used except for debugging purp | ||||
oses | ||||
* and may be quite slow. | ||||
*/ | ||||
static void VisitExternalResources(ExternalResourceVisitor* visitor); | ||||
/** | ||||
* Optional notification that the embedder is idle. | * Optional notification that the embedder is idle. | |||
* V8 uses the notification to reduce memory footprint. | * V8 uses the notification to reduce memory footprint. | |||
* This call can be used repeatedly if the embedder remains idle. | * This call can be used repeatedly if the embedder remains idle. | |||
* Returns true if the embedder should stop calling IdleNotification | * Returns true if the embedder should stop calling IdleNotification | |||
* until real work has been done. This indicates that V8 has done | * until real work has been done. This indicates that V8 has done | |||
* as much cleanup as it will be able to do. | * as much cleanup as it will be able to do. | |||
*/ | */ | |||
static bool IdleNotification(); | static bool IdleNotification(); | |||
/** | /** | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 26 lines changed or added | |||