| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index f60b2cd62c360ad4b44ca1f84e1814d8ba31b3e2..b372fa9b0883041fdb7b946d93ddb6f3b93e8b7a 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3599,6 +3599,12 @@ Handle<Value> Function::GetName() const {
|
| }
|
|
|
|
|
| +Handle<Value> Function::GetInferredName() const {
|
| + i::Handle<i::JSFunction> func = Utils::OpenHandle(this);
|
| + return Utils::ToLocal(i::Handle<i::Object>(func->shared()->inferred_name()));
|
| +}
|
| +
|
| +
|
| ScriptOrigin Function::GetScriptOrigin() const {
|
| i::Handle<i::JSFunction> func = Utils::OpenHandle(this);
|
| if (func->shared()->script()->IsScript()) {
|
| @@ -4027,6 +4033,13 @@ void v8::V8::GetHeapStatistics(HeapStatistics* heap_statistics) {
|
| }
|
|
|
|
|
| +void v8::V8::VisitExternalResources(ExternalResourceVisitor* visitor) {
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| + IsDeadCheck(isolate, "v8::V8::VisitExternalResources");
|
| + isolate->heap()->VisitExternalResources(visitor);
|
| +}
|
| +
|
| +
|
| bool v8::V8::IdleNotification() {
|
| // Returning true tells the caller that it need not
|
| // continue to call IdleNotification.
|
|
|