v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 216 | skipping to change at line 216 | |||
public: | public: | |||
enum Type { | enum Type { | |||
kContextVariable = 0, // A variable from a function context. | kContextVariable = 0, // A variable from a function context. | |||
kElement = 1, // An element of an array. | kElement = 1, // An element of an array. | |||
kProperty = 2, // A named object property. | kProperty = 2, // A named object property. | |||
kInternal = 3, // A link that can't be accessed from JS, | kInternal = 3, // A link that can't be accessed from JS, | |||
// thus, its name isn't a real property name | // thus, its name isn't a real property name | |||
// (e.g. parts of a ConsString). | // (e.g. parts of a ConsString). | |||
kHidden = 4, // A link that is needed for proper sizes | kHidden = 4, // A link that is needed for proper sizes | |||
// calculation, but may be hidden from user. | // calculation, but may be hidden from user. | |||
kShortcut = 5 // A link that must not be followed during | kShortcut = 5, // A link that must not be followed during | |||
// sizes calculation. | // sizes calculation. | |||
kWeak = 6 // A weak reference (ignored by the GC). | ||||
}; | }; | |||
/** Returns edge type (see HeapGraphEdge::Type). */ | /** Returns edge type (see HeapGraphEdge::Type). */ | |||
Type GetType() const; | Type GetType() const; | |||
/** | /** | |||
* Returns edge name. This can be a variable name, an element index, or | * Returns edge name. This can be a variable name, an element index, or | |||
* a property name. | * a property name. | |||
*/ | */ | |||
Handle<Value> GetName() const; | Handle<Value> GetName() const; | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3127 | skipping to change at line 3127 | |||
*/ | */ | |||
static void GetHeapStatistics(HeapStatistics* heap_statistics); | static void GetHeapStatistics(HeapStatistics* heap_statistics); | |||
/** | /** | |||
* 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. | |||
* | ||||
* The hint argument specifies the amount of work to be done in the funct | ||||
ion | ||||
* on scale from 1 to 1000. There is no guarantee that the actual work wi | ||||
ll | ||||
* match the hint. | ||||
*/ | */ | |||
static bool IdleNotification(); | static bool IdleNotification(int hint = 1000); | |||
/** | /** | |||
* Optional notification that the system is running low on memory. | * Optional notification that the system is running low on memory. | |||
* V8 uses these notifications to attempt to free memory. | * V8 uses these notifications to attempt to free memory. | |||
*/ | */ | |||
static void LowMemoryNotification(); | static void LowMemoryNotification(); | |||
/** | /** | |||
* Optional notification that a context has been disposed. V8 uses | * Optional notification that a context has been disposed. V8 uses | |||
* these notifications to guide the GC heuristic. Returns the number | * these notifications to guide the GC heuristic. Returns the number | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added | |||