OLD | NEW |
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/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 455 } |
456 case kMipsLdc1: | 456 case kMipsLdc1: |
457 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand()); | 457 __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand()); |
458 break; | 458 break; |
459 case kMipsSdc1: | 459 case kMipsSdc1: |
460 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand()); | 460 __ sdc1(i.InputDoubleRegister(2), i.MemoryOperand()); |
461 break; | 461 break; |
462 case kMipsPush: | 462 case kMipsPush: |
463 __ Push(i.InputRegister(0)); | 463 __ Push(i.InputRegister(0)); |
464 break; | 464 break; |
| 465 case kMipsStackClaim: { |
| 466 int words = MiscField::decode(instr->opcode()); |
| 467 __ Subu(sp, sp, Operand(words << kPointerSizeLog2)); |
| 468 break; |
| 469 } |
| 470 case kMipsStoreToStackSlot: { |
| 471 int slot = MiscField::decode(instr->opcode()); |
| 472 __ sw(i.InputRegister(0), MemOperand(sp, slot << kPointerSizeLog2)); |
| 473 break; |
| 474 } |
465 case kMipsStoreWriteBarrier: { | 475 case kMipsStoreWriteBarrier: { |
466 Register object = i.InputRegister(0); | 476 Register object = i.InputRegister(0); |
467 Register index = i.InputRegister(1); | 477 Register index = i.InputRegister(1); |
468 Register value = i.InputRegister(2); | 478 Register value = i.InputRegister(2); |
469 __ addu(index, object, index); | 479 __ addu(index, object, index); |
470 __ sw(value, MemOperand(index)); | 480 __ sw(value, MemOperand(index)); |
471 SaveFPRegsMode mode = | 481 SaveFPRegsMode mode = |
472 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; | 482 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
473 RAStatus ra_status = kRAHasNotBeenSaved; | 483 RAStatus ra_status = kRAHasNotBeenSaved; |
474 __ RecordWrite(object, index, value, ra_status, mode); | 484 __ RecordWrite(object, index, value, ra_status, mode); |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 } | 1077 } |
1068 } | 1078 } |
1069 MarkLazyDeoptSite(); | 1079 MarkLazyDeoptSite(); |
1070 } | 1080 } |
1071 | 1081 |
1072 #undef __ | 1082 #undef __ |
1073 | 1083 |
1074 } // namespace compiler | 1084 } // namespace compiler |
1075 } // namespace internal | 1085 } // namespace internal |
1076 } // namespace v8 | 1086 } // namespace v8 |
OLD | NEW |