Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 14519da4c2501cd6f7e3df6ab2a65860991e4599..16cefdfaae8f219f60f7ee091b086304443fa27a 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -411,7 +411,7 @@ MUST_USE_RESULT static MaybeObject* CallJsBuiltin( |
Isolate* isolate, |
const char* name, |
BuiltinArguments<NO_EXTRA_ARGUMENTS> args) { |
- HandleScope handleScope; |
+ HandleScope handleScope(isolate); |
Handle<Object> js_builtin = |
GetProperty(Handle<JSObject>( |
@@ -1038,7 +1038,7 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallHelper( |
ASSERT(is_construct == CalledAsConstructor(isolate)); |
Heap* heap = isolate->heap(); |
- HandleScope scope; |
+ HandleScope scope(isolate); |
Handle<JSFunction> function = args.called_function(); |
ASSERT(function->shared()->IsApiFunction()); |
@@ -1072,7 +1072,7 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallHelper( |
Object* data_obj = call_data->data(); |
Object* result; |
- LOG(ApiObjectAccess("call", JSObject::cast(*args.receiver()))); |
+ LOG(isolate, ApiObjectAccess("call", JSObject::cast(*args.receiver()))); |
ASSERT(raw_holder->IsJSObject()); |
CustomArguments custom(isolate); |
@@ -1212,9 +1212,9 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallAsFunctionOrConstructor( |
// Get the data for the call and perform the callback. |
Object* result; |
{ |
- HandleScope scope; |
+ HandleScope scope(isolate); |
- LOG(ApiObjectAccess("call non-function", obj)); |
+ LOG(isolate, ApiObjectAccess("call non-function", obj)); |
CustomArguments custom(isolate); |
v8::ImplementationUtilities::PrepareArgumentsData(custom.end(), |
@@ -1603,7 +1603,8 @@ void Builtins::Setup(bool create_heap_objects) { |
} |
} |
// Log the event and add the code to the builtins array. |
- PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, |
+ PROFILE(ISOLATE, |
+ CodeCreateEvent(Logger::BUILTIN_TAG, |
Code::cast(code), |
functions[i].s_name)); |
GDBJIT(AddCode(GDBJITInterface::BUILTIN, |