v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 477 | skipping to change at line 477 | |||
/** | /** | |||
* Default value of persistent handle class ID. Must not be used to | * Default value of persistent handle class ID. Must not be used to | |||
* define a class. Can be used to reset a class of a persistent | * define a class. Can be used to reset a class of a persistent | |||
* handle. | * handle. | |||
*/ | */ | |||
static const uint16_t kPersistentHandleNoClassId = 0; | static const uint16_t kPersistentHandleNoClassId = 0; | |||
/** Returns the number of currently existing persistent handles. */ | /** Returns the number of currently existing persistent handles. */ | |||
static int GetPersistentHandleCount(); | static int GetPersistentHandleCount(); | |||
/** Returns memory used for profiler internal data and snapshots. */ | ||||
static size_t GetMemorySizeUsedByProfiler(); | ||||
}; | }; | |||
/** | /** | |||
* Interface for providing information about embedder's objects | * Interface for providing information about embedder's objects | |||
* held by global handles. This information is reported in two ways: | * held by global handles. This information is reported in two ways: | |||
* | * | |||
* 1. When calling AddObjectGroup, an embedder may pass | * 1. When calling AddObjectGroup, an embedder may pass | |||
* RetainedObjectInfo instance describing the group. To collect | * RetainedObjectInfo instance describing the group. To collect | |||
* this information while taking a heap snapshot, V8 calls GC | * this information while taking a heap snapshot, V8 calls GC | |||
* prologue and epilogue callbacks. | * prologue and epilogue callbacks. | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 103 | skipping to change at line 103 | |||
class Uint32; | class Uint32; | |||
class External; | class External; | |||
class Primitive; | class Primitive; | |||
class Boolean; | class Boolean; | |||
class BooleanObject; | class BooleanObject; | |||
class Integer; | class Integer; | |||
class Function; | class Function; | |||
class Date; | class Date; | |||
class ImplementationUtilities; | class ImplementationUtilities; | |||
class Signature; | class Signature; | |||
class AccessorSignature; | ||||
template <class T> class Handle; | template <class T> class Handle; | |||
template <class T> class Local; | template <class T> class Local; | |||
template <class T> class Persistent; | template <class T> class Persistent; | |||
class FunctionTemplate; | class FunctionTemplate; | |||
class ObjectTemplate; | class ObjectTemplate; | |||
class Data; | class Data; | |||
class AccessorInfo; | class AccessorInfo; | |||
class StackTrace; | class StackTrace; | |||
class StackFrame; | class StackFrame; | |||
class Isolate; | class Isolate; | |||
skipping to change at line 2242 | skipping to change at line 2243 | |||
*/ | */ | |||
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, | |||
Handle<Value> data, | Handle<Value> data, | |||
AccessControl settings, | AccessControl settings, | |||
PropertyAttribute attributes); | PropertyAttribute attributes, | |||
Handle<AccessorSignature> signature); | ||||
void SetNamedInstancePropertyHandler(NamedPropertyGetter getter, | void SetNamedInstancePropertyHandler(NamedPropertyGetter getter, | |||
NamedPropertySetter setter, | NamedPropertySetter setter, | |||
NamedPropertyQuery query, | NamedPropertyQuery query, | |||
NamedPropertyDeleter remover, | NamedPropertyDeleter remover, | |||
NamedPropertyEnumerator enumerator, | NamedPropertyEnumerator enumerator, | |||
Handle<Value> data); | Handle<Value> data); | |||
void SetIndexedInstancePropertyHandler(IndexedPropertyGetter getter, | void SetIndexedInstancePropertyHandler(IndexedPropertyGetter getter, | |||
IndexedPropertySetter setter, | IndexedPropertySetter setter, | |||
IndexedPropertyQuery query, | IndexedPropertyQuery query, | |||
IndexedPropertyDeleter remover, | IndexedPropertyDeleter remover, | |||
skipping to change at line 2299 | skipping to change at line 2301 | |||
* \param settings Access control settings for the accessor. This is a bi t | * \param settings Access control settings for the accessor. This is a bi t | |||
* field consisting of one of more of | * field consisting of one of more of | |||
* DEFAULT = 0, ALL_CAN_READ = 1, or ALL_CAN_WRITE = 2. | * DEFAULT = 0, ALL_CAN_READ = 1, or ALL_CAN_WRITE = 2. | |||
* The default is to not allow cross-context access. | * The default is to not allow cross-context access. | |||
* ALL_CAN_READ means that all cross-context reads are allowed. | * ALL_CAN_READ means that all cross-context reads are allowed. | |||
* ALL_CAN_WRITE means that all cross-context writes are allowed. | * ALL_CAN_WRITE means that all cross-context writes are allowed. | |||
* The combination ALL_CAN_READ | ALL_CAN_WRITE can be used to allow al l | * The combination ALL_CAN_READ | ALL_CAN_WRITE can be used to allow al l | |||
* cross-context access. | * cross-context access. | |||
* \param attribute The attributes of the property for which an accessor | * \param attribute The attributes of the property for which an accessor | |||
* is added. | * is added. | |||
* \param signature The signature describes valid receivers for the acces | ||||
sor | ||||
* and is used to perform implicit instance checks against them. If the | ||||
* receiver is incompatible (i.e. is not an instance of the constructor | ||||
as | ||||
* defined by FunctionTemplate::HasInstance()), an implicit TypeError i | ||||
s | ||||
* thrown and no callback is invoked. | ||||
*/ | */ | |||
void SetAccessor(Handle<String> name, | void SetAccessor(Handle<String> name, | |||
AccessorGetter getter, | AccessorGetter getter, | |||
AccessorSetter setter = 0, | AccessorSetter setter = 0, | |||
Handle<Value> data = Handle<Value>(), | Handle<Value> data = Handle<Value>(), | |||
AccessControl settings = DEFAULT, | AccessControl settings = DEFAULT, | |||
PropertyAttribute attribute = None); | PropertyAttribute attribute = None, | |||
Handle<AccessorSignature> signature = | ||||
Handle<AccessorSignature>()); | ||||
/** | /** | |||
* Sets a named property handler on the object template. | * Sets a named property handler on the object template. | |||
* | * | |||
* Whenever a named property is accessed on objects created from | * Whenever a named property is accessed on objects created from | |||
* this object template, the provided callback is invoked instead of | * this object template, the provided callback is invoked instead of | |||
* accessing the property directly on the JavaScript object. | * accessing the property directly on the JavaScript object. | |||
* | * | |||
* \param getter The callback to invoke when getting a property. | * \param getter The callback to invoke when getting a property. | |||
* \param setter The callback to invoke when setting a property. | * \param setter The callback to invoke when setting a property. | |||
skipping to change at line 2408 | skipping to change at line 2417 | |||
*/ | */ | |||
void SetInternalFieldCount(int value); | void SetInternalFieldCount(int value); | |||
private: | private: | |||
ObjectTemplate(); | ObjectTemplate(); | |||
static Local<ObjectTemplate> New(Handle<FunctionTemplate> constructor); | static Local<ObjectTemplate> New(Handle<FunctionTemplate> constructor); | |||
friend class FunctionTemplate; | friend class FunctionTemplate; | |||
}; | }; | |||
/** | /** | |||
* A Signature specifies which receivers and arguments a function can | * A Signature specifies which receivers and arguments are valid | |||
* legally be called with. | * parameters to a function. | |||
*/ | */ | |||
class V8EXPORT Signature : public Data { | class V8EXPORT Signature : public Data { | |||
public: | public: | |||
static Local<Signature> New(Handle<FunctionTemplate> receiver = | static Local<Signature> New(Handle<FunctionTemplate> receiver = | |||
Handle<FunctionTemplate>(), | Handle<FunctionTemplate>(), | |||
int argc = 0, | int argc = 0, | |||
Handle<FunctionTemplate> argv[] = 0); | Handle<FunctionTemplate> argv[] = 0); | |||
private: | private: | |||
Signature(); | Signature(); | |||
}; | }; | |||
/** | /** | |||
* An AccessorSignature specifies which receivers are valid parameters | ||||
* to an accessor callback. | ||||
*/ | ||||
class V8EXPORT AccessorSignature : public Data { | ||||
public: | ||||
static Local<AccessorSignature> New(Handle<FunctionTemplate> receiver = | ||||
Handle<FunctionTemplate>()); | ||||
private: | ||||
AccessorSignature(); | ||||
}; | ||||
/** | ||||
* A utility for determining the type of objects based on the template | * A utility for determining the type of objects based on the template | |||
* they were constructed from. | * they were constructed from. | |||
*/ | */ | |||
class V8EXPORT TypeSwitch : public Data { | class V8EXPORT TypeSwitch : public Data { | |||
public: | public: | |||
static Local<TypeSwitch> New(Handle<FunctionTemplate> type); | static Local<TypeSwitch> New(Handle<FunctionTemplate> type); | |||
static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]); | static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]); | |||
int match(Handle<Value> value); | int match(Handle<Value> value); | |||
private: | private: | |||
TypeSwitch(); | TypeSwitch(); | |||
End of changes. 6 change blocks. | ||||
4 lines changed or deleted | 28 lines changed or added | |||