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

Unified Diff: src/compiler/mips/code-generator-mips.cc

Issue 1043393002: MIPS: Fix stack claim and store to slot for large sizes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/mips/code-generator-mips.cc
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc
index f9068644bb31c231718fac4589ca448e53678d63..b23734a191d82f5a0fa2b90f04c89cc3162187c7 100644
--- a/src/compiler/mips/code-generator-mips.cc
+++ b/src/compiler/mips/code-generator-mips.cc
@@ -721,13 +721,11 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
__ Push(i.InputRegister(0));
break;
case kMipsStackClaim: {
- int words = MiscField::decode(instr->opcode());
- __ Subu(sp, sp, Operand(words << kPointerSizeLog2));
+ __ Subu(sp, sp, Operand(i.InputInt32(0)));
break;
}
case kMipsStoreToStackSlot: {
- int slot = MiscField::decode(instr->opcode());
- __ sw(i.InputRegister(0), MemOperand(sp, slot << kPointerSizeLog2));
+ __ sw(i.InputRegister(0), MemOperand(sp, i.InputInt32(1)));
break;
}
case kMipsStoreWriteBarrier: {
« no previous file with comments | « no previous file | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698