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

Side by Side Diff: src/compiler/mips64/code-generator-mips64.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
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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 case kMips64Ldc1: 782 case kMips64Ldc1:
783 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand()); 783 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand());
784 break; 784 break;
785 case kMips64Sdc1: 785 case kMips64Sdc1:
786 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand()); 786 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand());
787 break; 787 break;
788 case kMips64Push: 788 case kMips64Push:
789 __ Push(i.InputRegister(0)); 789 __ Push(i.InputRegister(0));
790 break; 790 break;
791 case kMips64StackClaim: { 791 case kMips64StackClaim: {
792 int words = MiscField::decode(instr->opcode()); 792 __ Dsubu(sp, sp, Operand(i.InputInt32(0)));
793 __ Dsubu(sp, sp, Operand(words << kPointerSizeLog2));
794 break; 793 break;
795 } 794 }
796 case kMips64StoreToStackSlot: { 795 case kMips64StoreToStackSlot: {
797 int slot = MiscField::decode(instr->opcode()); 796 __ sd(i.InputRegister(0), MemOperand(sp, i.InputInt32(1)));
798 __ sd(i.InputRegister(0), MemOperand(sp, slot << kPointerSizeLog2));
799 break; 797 break;
800 } 798 }
801 case kMips64StoreWriteBarrier: { 799 case kMips64StoreWriteBarrier: {
802 Register object = i.InputRegister(0); 800 Register object = i.InputRegister(0);
803 Register index = i.InputRegister(1); 801 Register index = i.InputRegister(1);
804 Register value = i.InputRegister(2); 802 Register value = i.InputRegister(2);
805 __ daddu(index, object, index); 803 __ daddu(index, object, index);
806 __ sd(value, MemOperand(index)); 804 __ sd(value, MemOperand(index));
807 SaveFPRegsMode mode = 805 SaveFPRegsMode mode =
808 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; 806 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 } 1348 }
1351 } 1349 }
1352 MarkLazyDeoptSite(); 1350 MarkLazyDeoptSite();
1353 } 1351 }
1354 1352
1355 #undef __ 1353 #undef __
1356 1354
1357 } // namespace compiler 1355 } // namespace compiler
1358 } // namespace internal 1356 } // namespace internal
1359 } // namespace v8 1357 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698