| Index: src/api.cc
|
| ===================================================================
|
| --- src/api.cc (revision 9618)
|
| +++ src/api.cc (working copy)
|
| @@ -5766,6 +5766,16 @@
|
| }
|
|
|
|
|
| +v8::Handle<v8::Value> HeapGraphNode::GetHeapValue() const {
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| + IsDeadCheck(isolate, "v8::HeapGraphNode::GetHeapValue");
|
| + i::Handle<i::HeapObject> object = ToInternal(this)->GetHeapObject();
|
| + return v8::Handle<Value>(!object.is_null() ?
|
| + ToApi<Value>(object) : ToApi<Value>(
|
| + isolate->factory()->undefined_value()));
|
| +}
|
| +
|
| +
|
| static i::HeapSnapshot* ToInternal(const HeapSnapshot* snapshot) {
|
| return const_cast<i::HeapSnapshot*>(
|
| reinterpret_cast<const i::HeapSnapshot*>(snapshot));
|
|
|