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/mips/macro-assembler-mips.h" | 9 #include "src/mips/macro-assembler-mips.h" |
10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 480 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
481 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 481 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
482 break; | 482 break; |
483 } | 483 } |
484 case kArchRet: | 484 case kArchRet: |
485 AssembleReturn(); | 485 AssembleReturn(); |
486 break; | 486 break; |
487 case kArchStackPointer: | 487 case kArchStackPointer: |
488 __ mov(i.OutputRegister(), sp); | 488 __ mov(i.OutputRegister(), sp); |
489 break; | 489 break; |
| 490 case kArchFramePointer: |
| 491 __ mov(i.OutputRegister(), fp); |
| 492 break; |
490 case kArchTruncateDoubleToI: | 493 case kArchTruncateDoubleToI: |
491 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 494 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
492 break; | 495 break; |
493 case kMipsAdd: | 496 case kMipsAdd: |
494 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 497 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
495 break; | 498 break; |
496 case kMipsAddOvf: | 499 case kMipsAddOvf: |
497 __ AdduAndCheckForOverflow(i.OutputRegister(), i.InputRegister(0), | 500 __ AdduAndCheckForOverflow(i.OutputRegister(), i.InputRegister(0), |
498 i.InputOperand(1), kCompareReg, kScratchReg); | 501 i.InputOperand(1), kCompareReg, kScratchReg); |
499 break; | 502 break; |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 } | 1342 } |
1340 } | 1343 } |
1341 MarkLazyDeoptSite(); | 1344 MarkLazyDeoptSite(); |
1342 } | 1345 } |
1343 | 1346 |
1344 #undef __ | 1347 #undef __ |
1345 | 1348 |
1346 } // namespace compiler | 1349 } // namespace compiler |
1347 } // namespace internal | 1350 } // namespace internal |
1348 } // namespace v8 | 1351 } // namespace v8 |
OLD | NEW |