Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 1ba8f7ec0705029ae7b08649a343be044e8912ea..45c6c1c6036b28614b2f12d9795616968a404c60 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -726,7 +726,6 @@ |
NewFixedArray(Context::NATIVE_CONTEXT_SLOTS, TENURED); |
array->set_map_no_write_barrier(*native_context_map()); |
Handle<Context> context = Handle<Context>::cast(array); |
- context->set_native_context(*context); |
context->set_js_array_maps(*undefined_value()); |
context->set_errors_thrown(Smi::FromInt(0)); |
DCHECK(context->IsNativeContext()); |
@@ -743,7 +742,7 @@ |
context->set_closure(*function); |
context->set_previous(function->context()); |
context->set_extension(*scope_info); |
- context->set_native_context(function->native_context()); |
+ context->set_global_object(function->context()->global_object()); |
DCHECK(context->IsScriptContext()); |
return context; |
} |
@@ -779,7 +778,7 @@ |
context->set_closure(*function); |
context->set_previous(function->context()); |
context->set_extension(Smi::FromInt(0)); |
- context->set_native_context(function->native_context()); |
+ context->set_global_object(function->context()->global_object()); |
return context; |
} |
@@ -795,7 +794,7 @@ |
context->set_closure(*function); |
context->set_previous(*previous); |
context->set_extension(*name); |
- context->set_native_context(previous->native_context()); |
+ context->set_global_object(previous->global_object()); |
context->set(Context::THROWN_OBJECT_INDEX, *thrown_object); |
return context; |
} |
@@ -810,7 +809,7 @@ |
context->set_closure(*function); |
context->set_previous(*previous); |
context->set_extension(*extension); |
- context->set_native_context(previous->native_context()); |
+ context->set_global_object(previous->global_object()); |
return context; |
} |
@@ -825,7 +824,7 @@ |
context->set_closure(*function); |
context->set_previous(*previous); |
context->set_extension(*scope_info); |
- context->set_native_context(previous->native_context()); |
+ context->set_global_object(previous->global_object()); |
return context; |
} |