Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Unified Diff: src/bootstrapper.cc

Issue 10877028: Rollback of r12341, r12342, r12343, r12344, r12345, r12347 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/d8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 57acb3776a112b6e0d082d82651dd3faca3a5607..b936c2d626f992163347f88ac94015e678f16b2d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -327,8 +327,7 @@ static void SetObjectPrototype(Handle<JSObject> object, Handle<Object> proto) {
void Bootstrapper::DetachGlobal(Handle<Context> env) {
Factory* factory = env->GetIsolate()->factory();
- JSGlobalProxy::cast(env->global_proxy())->
- set_native_context(*factory->null_value());
+ JSGlobalProxy::cast(env->global_proxy())->set_context(*factory->null_value());
SetObjectPrototype(Handle<JSObject>(env->global_proxy()),
factory->null_value());
env->set_global_proxy(env->global_object());
@@ -343,7 +342,7 @@ void Bootstrapper::ReattachGlobal(Handle<Context> env,
env->global_object()->set_global_receiver(*global);
env->set_global_proxy(*global);
SetObjectPrototype(global, Handle<JSObject>(env->global_object()));
- global->set_native_context(*env);
+ global->set_context(*env);
}
@@ -798,7 +797,7 @@ void Genesis::HookUpGlobalProxy(Handle<GlobalObject> inner_global,
// Set the native context for the global object.
inner_global->set_native_context(*native_context());
inner_global->set_global_receiver(*global_proxy);
- global_proxy->set_native_context(*native_context());
+ global_proxy->set_context(*native_context());
native_context()->set_global_proxy(*global_proxy);
}
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/d8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698