Reviewers: Dmitry Titov,
Description:
Pass isolate to HandleScope across builtins.cc
BUG=
TEST=
Please review this at http://codereview.chromium.org/6680007/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/isolates
Affected files:
M src/builtins.cc
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index
14519da4c2501cd6f7e3df6ab2a65860991e4599..b291c1a8a3c0266997604224a03d83bf7b2b04d9
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());
@@ -1212,7 +1212,7 @@ 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));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev