| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 | 6 |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 case kArchJmp: | 444 case kArchJmp: |
| 445 AssembleArchJump(i.InputRpo(0)); | 445 AssembleArchJump(i.InputRpo(0)); |
| 446 break; | 446 break; |
| 447 case kArchLookupSwitch: | 447 case kArchLookupSwitch: |
| 448 AssembleArchLookupSwitch(instr); | 448 AssembleArchLookupSwitch(instr); |
| 449 break; | 449 break; |
| 450 case kArchTableSwitch: | 450 case kArchTableSwitch: |
| 451 AssembleArchTableSwitch(instr); | 451 AssembleArchTableSwitch(instr); |
| 452 break; | 452 break; |
| 453 case kArchNop: | 453 case kArchNop: |
| 454 case kArchThrowTerminator: |
| 454 // don't emit code for nops. | 455 // don't emit code for nops. |
| 455 break; | 456 break; |
| 456 case kArchDeoptimize: { | 457 case kArchDeoptimize: { |
| 457 int deopt_state_id = | 458 int deopt_state_id = |
| 458 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 459 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 459 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 460 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
| 460 break; | 461 break; |
| 461 } | 462 } |
| 462 case kArchRet: | 463 case kArchRet: |
| 463 AssembleReturn(); | 464 AssembleReturn(); |
| (...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1653 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1653 __ Nop(padding_size); | 1654 __ Nop(padding_size); |
| 1654 } | 1655 } |
| 1655 } | 1656 } |
| 1656 | 1657 |
| 1657 #undef __ | 1658 #undef __ |
| 1658 | 1659 |
| 1659 } // namespace compiler | 1660 } // namespace compiler |
| 1660 } // namespace internal | 1661 } // namespace internal |
| 1661 } // namespace v8 | 1662 } // namespace v8 |
| OLD | NEW |