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

Unified Diff: src/ia32/builtins-ia32.cc

Issue 1480003002: [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
Index: src/ia32/builtins-ia32.cc
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
index 3762be8d784d1a0596276bc7f099e6e5f34d3fae..02ee3b11f4574de70a606ea7b86c42a11a236988 100644
--- a/src/ia32/builtins-ia32.cc
+++ b/src/ia32/builtins-ia32.cc
@@ -1922,8 +1922,8 @@ void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) {
__ jmp(edx);
__ bind(&set_global_proxy);
- __ mov(ecx, GlobalObjectOperand());
- __ mov(ecx, FieldOperand(ecx, JSGlobalObject::kGlobalProxyOffset));
+ __ mov(ecx, NativeContextOperand());
+ __ mov(ecx, ContextOperand(ecx, Context::GLOBAL_PROXY_INDEX));
__ mov(receiver_operand, ecx);
__ jmp(&valid_receiver, Label::kNear);

Powered by Google App Engine
This is Rietveld 408576698