| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 4dab54b78bcd28e7c0283cc90b6cf3d184ce82aa..7c81839ae77dd95dded23d703b4f7aaecbf353c4 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -9361,6 +9361,15 @@ void debug::ResetBlackboxedStateCache(Isolate* v8_isolate,
|
| }
|
| }
|
|
|
| +int debug::EstimatedValueSize(Isolate* v8_isolate, v8::Local<v8::Value> value) {
|
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
|
| + ENTER_V8(isolate);
|
| + i::Handle<i::Object> object = Utils::OpenHandle(*value);
|
| + if (object->IsSmi()) return i::kPointerSize;
|
| + CHECK(object->IsHeapObject());
|
| + return i::Handle<i::HeapObject>::cast(object)->Size();
|
| +}
|
| +
|
| Local<String> CpuProfileNode::GetFunctionName() const {
|
| const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
|
| i::Isolate* isolate = node->isolate();
|
|
|