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

Unified Diff: src/crankshaft/mips64/lithium-codegen-mips64.cc

Issue 1478303002: Revert of [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
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/mips64/lithium-codegen-mips64.cc
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc
index a1ff1fe2a32e1c8cab359d453b274cb174a76585..d17f4530e1928a44538d381ff0d2af196ad63741 100644
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc
@@ -192,7 +192,7 @@
// Load parameter from stack.
__ ld(a0, MemOperand(fp, parameter_offset));
// Store it in the context.
- MemOperand target = ContextMemOperand(cp, var->index());
+ MemOperand target = ContextOperand(cp, var->index());
__ sd(a0, target);
// Update the write barrier. This clobbers a3 and a0.
if (need_write_barrier) {
@@ -2849,7 +2849,7 @@
Register context = ToRegister(instr->context());
Register result = ToRegister(instr->result());
- __ ld(result, ContextMemOperand(context, instr->slot_index()));
+ __ ld(result, ContextOperand(context, instr->slot_index()));
if (instr->hydrogen()->RequiresHoleCheck()) {
__ LoadRoot(at, Heap::kTheHoleValueRootIndex);
@@ -2869,7 +2869,7 @@
Register context = ToRegister(instr->context());
Register value = ToRegister(instr->value());
Register scratch = scratch0();
- MemOperand target = ContextMemOperand(context, instr->slot_index());
+ MemOperand target = ContextOperand(context, instr->slot_index());
Label skip_assignment;
@@ -3410,8 +3410,9 @@
__ bind(&global_object);
__ ld(result, FieldMemOperand(function, JSFunction::kContextOffset));
- __ ld(result, ContextMemOperand(result, Context::NATIVE_CONTEXT_INDEX));
- __ ld(result, ContextMemOperand(result, Context::GLOBAL_PROXY_INDEX));
+ __ ld(result,
+ ContextOperand(result, Context::GLOBAL_OBJECT_INDEX));
+ __ ld(result, FieldMemOperand(result, JSGlobalObject::kGlobalProxyOffset));
if (result.is(receiver)) {
__ bind(&result_in_receiver);
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698