| v8.h | | v8.h | |
| | | | |
| skipping to change at line 2100 | | skipping to change at line 2100 | |
| * | | * | |
| * Call with a value of true to make the __proto__ accessor ignore | | * Call with a value of true to make the __proto__ accessor ignore | |
| * instances of the function template. Call with a value of false | | * instances of the function template. Call with a value of false | |
| * to make the __proto__ accessor not ignore instances of the | | * to make the __proto__ accessor not ignore instances of the | |
| * function template. By default, instances of a function template | | * function template. By default, instances of a function template | |
| * are not ignored. | | * are not ignored. | |
| */ | | */ | |
| void SetHiddenPrototype(bool value); | | void SetHiddenPrototype(bool value); | |
| | | | |
| /** | | /** | |
|
| | | * Sets the property attributes of the 'prototype' property of functions | |
| | | * created from this FunctionTemplate. Can be any combination of ReadOnly | |
| | | , | |
| | | * DontEnum and DontDelete. | |
| | | */ | |
| | | void SetPrototypeAttributes(int attributes); | |
| | | | |
| | | /** | |
| * Returns true if the given object is an instance of this function | | * Returns true if the given object is an instance of this function | |
| * template. | | * template. | |
| */ | | */ | |
| bool HasInstance(Handle<Value> object); | | bool HasInstance(Handle<Value> object); | |
| | | | |
| private: | | private: | |
| FunctionTemplate(); | | FunctionTemplate(); | |
| void AddInstancePropertyAccessor(Handle<String> name, | | void AddInstancePropertyAccessor(Handle<String> name, | |
| AccessorGetter getter, | | AccessorGetter getter, | |
| AccessorSetter setter, | | AccessorSetter setter, | |
| | | | |
| skipping to change at line 2492 | | skipping to change at line 2499 | |
| }; | | }; | |
| | | | |
| typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); | | typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); | |
| typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); | | typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); | |
| | | | |
| typedef void (*GCCallback)(); | | typedef void (*GCCallback)(); | |
| | | | |
| /** | | /** | |
| * Profiler modules. | | * Profiler modules. | |
| * | | * | |
|
| * In V8, profiler consists of several modules: CPU profiler, and different | | * In V8, profiler consists of several modules. Each can be turned on / off | |
| * kinds of heap profiling. Each can be turned on / off independently. | | * independently. | |
| * When PROFILER_MODULE_HEAP_SNAPSHOT flag is passed to ResumeProfilerEx, | | | |
| * modules are enabled only temporarily for making a snapshot of the heap. | | | |
| */ | | */ | |
| enum ProfilerModules { | | enum ProfilerModules { | |
| PROFILER_MODULE_NONE = 0, | | PROFILER_MODULE_NONE = 0, | |
|
| PROFILER_MODULE_CPU = 1, | | PROFILER_MODULE_CPU = 1 | |
| PROFILER_MODULE_HEAP_STATS = 1 << 1, | | | |
| PROFILER_MODULE_JS_CONSTRUCTORS = 1 << 2, | | | |
| PROFILER_MODULE_HEAP_SNAPSHOT = 1 << 16 | | | |
| }; | | }; | |
| | | | |
| /** | | /** | |
| * Collection of V8 heap information. | | * Collection of V8 heap information. | |
| * | | * | |
| * Instances of this class can be passed to v8::V8::HeapStatistics to | | * Instances of this class can be passed to v8::V8::HeapStatistics to | |
| * get heap statistics from V8. | | * get heap statistics from V8. | |
| */ | | */ | |
| class V8EXPORT HeapStatistics { | | class V8EXPORT HeapStatistics { | |
| public: | | public: | |
| | | | |
End of changes. 3 change blocks. |
| 8 lines changed or deleted | | 11 lines changed or added | |
|