Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index dd77c14e3f9239ca678ca0b2282033f09ee5a312..c162b4612d458bc2f962bd5cb611757e3f03da3e 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -455,9 +455,8 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
function_map_writable_prototype_ = CreateFunctionMap(ADD_WRITEABLE_PROTOTYPE); |
Factory* factory = isolate->factory(); |
- Heap* heap = isolate->heap(); |
- Handle<String> object_name = Handle<String>(heap->Object_string()); |
+ Handle<String> object_name = factory->Object_string(); |
{ // --- O b j e c t --- |
Handle<JSFunction> object_fun = |
@@ -830,7 +829,7 @@ bool Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, |
Factory* factory = isolate->factory(); |
Heap* heap = isolate->heap(); |
- Handle<String> object_name = Handle<String>(heap->Object_string()); |
+ Handle<String> object_name = factory->Object_string(); |
CHECK_NOT_EMPTY_HANDLE(isolate, |
JSObject::SetLocalPropertyIgnoreAttributes( |
inner_global, object_name, |