Revision: 7152 Author: [email protected] Date: Fri Mar 11 16:44:53 2011 Log: Pass isolate to HandleScope across builtins.cc This improves dromaeo.com/?dom-attr by about 5-7%
BUG= TEST= Review URL: http://codereview.chromium.org/6680007 http://code.google.com/p/v8/source/detail?r=7152 Modified: /branches/experimental/isolates/src/builtins.cc ======================================= --- /branches/experimental/isolates/src/builtins.cc Thu Mar 3 00:38:10 2011 +++ /branches/experimental/isolates/src/builtins.cc Fri Mar 11 16:44:53 2011 @@ -411,7 +411,7 @@ 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 @@ ASSERT(is_construct == CalledAsConstructor(isolate)); Heap* heap = isolate->heap(); - HandleScope scope; + HandleScope scope(isolate); Handle<JSFunction> function = args.called_function(); ASSERT(function->shared()->IsApiFunction()); @@ -1212,7 +1212,7 @@ // Get the data for the call and perform the callback. Object* result; { - HandleScope scope; + HandleScope scope(isolate); LOG(ApiObjectAccess("call non-function", obj)); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
