Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 8f72623bd6408baf40c825ae6b6b6354b49d60f9..854b42ac05098fbe8c8619f72c878120f5f21fa3 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2021,10 +2021,9 @@ static Handle<JSObject> ResolveBuiltinIdHolder( |
static void InstallBuiltinFunctionId(Handle<JSObject> holder, |
const char* function_name, |
BuiltinFunctionId id) { |
- Factory* factory = holder->GetIsolate()->factory(); |
- Handle<String> name = factory->InternalizeUtf8String(function_name); |
+ Isolate* isolate = holder->GetIsolate(); |
Handle<Object> function_object = |
- Object::GetProperty(holder, name).ToHandleChecked(); |
+ Object::GetProperty(isolate, holder, function_name).ToHandleChecked(); |
Handle<JSFunction> function = Handle<JSFunction>::cast(function_object); |
function->shared()->set_function_data(Smi::FromInt(id)); |
} |
@@ -2131,7 +2130,8 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) { |
false); |
} |
- Handle<Object> Error = GetProperty(global, "Error").ToHandleChecked(); |
+ Handle<Object> Error = Object::GetProperty( |
+ isolate, global, "Error").ToHandleChecked(); |
if (Error->IsJSObject()) { |
Handle<String> name = factory->InternalizeOneByteString( |
STATIC_ASCII_VECTOR("stackTraceLimit")); |
@@ -2312,10 +2312,8 @@ bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { |
HandleScope scope(isolate()); |
for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) { |
Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i); |
- Handle<String> name = |
- factory()->InternalizeUtf8String(Builtins::GetName(id)); |
- Handle<Object> function_object = |
- Object::GetProperty(builtins, name).ToHandleChecked(); |
+ Handle<Object> function_object = Object::GetProperty( |
+ isolate(), builtins, Builtins::GetName(id)).ToHandleChecked(); |
Handle<JSFunction> function = Handle<JSFunction>::cast(function_object); |
builtins->set_javascript_builtin(id, *function); |
if (!Compiler::EnsureCompiled(function, CLEAR_EXCEPTION)) { |