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

Side by Side 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, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 #include "src/compiler/code-generator-impl.h" 6 #include "src/compiler/code-generator-impl.h"
7 #include "src/compiler/gap-resolver.h" 7 #include "src/compiler/gap-resolver.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/mips/macro-assembler-mips.h" 9 #include "src/mips/macro-assembler-mips.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 case kMipsLdc1: 714 case kMipsLdc1:
715 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand()); 715 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand());
716 break; 716 break;
717 case kMipsSdc1: 717 case kMipsSdc1:
718 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand()); 718 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand());
719 break; 719 break;
720 case kMipsPush: 720 case kMipsPush:
721 __ Push(i.InputRegister(0)); 721 __ Push(i.InputRegister(0));
722 break; 722 break;
723 case kMipsStackClaim: { 723 case kMipsStackClaim: {
724 int words = MiscField::decode(instr->opcode()); 724 __ Subu(sp, sp, Operand(i.InputInt32(0)));
725 __ Subu(sp, sp, Operand(words << kPointerSizeLog2));
726 break; 725 break;
727 } 726 }
728 case kMipsStoreToStackSlot: { 727 case kMipsStoreToStackSlot: {
729 int slot = MiscField::decode(instr->opcode()); 728 __ sw(i.InputRegister(0), MemOperand(sp, i.InputInt32(1)));
730 __ sw(i.InputRegister(0), MemOperand(sp, slot << kPointerSizeLog2));
731 break; 729 break;
732 } 730 }
733 case kMipsStoreWriteBarrier: { 731 case kMipsStoreWriteBarrier: {
734 Register object = i.InputRegister(0); 732 Register object = i.InputRegister(0);
735 Register index = i.InputRegister(1); 733 Register index = i.InputRegister(1);
736 Register value = i.InputRegister(2); 734 Register value = i.InputRegister(2);
737 __ addu(index, object, index); 735 __ addu(index, object, index);
738 __ sw(value, MemOperand(index)); 736 __ sw(value, MemOperand(index));
739 SaveFPRegsMode mode = 737 SaveFPRegsMode mode =
740 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; 738 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 } 1282 }
1285 } 1283 }
1286 MarkLazyDeoptSite(); 1284 MarkLazyDeoptSite();
1287 } 1285 }
1288 1286
1289 #undef __ 1287 #undef __
1290 1288
1291 } // namespace compiler 1289 } // namespace compiler
1292 } // namespace internal 1290 } // namespace internal
1293 } // namespace v8 1291 } // namespace v8
OLDNEW
« 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