| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 case kArchJmp: | 430 case kArchJmp: |
| 431 AssembleArchJump(i.InputRpo(0)); | 431 AssembleArchJump(i.InputRpo(0)); |
| 432 break; | 432 break; |
| 433 case kArchLookupSwitch: | 433 case kArchLookupSwitch: |
| 434 AssembleArchLookupSwitch(instr); | 434 AssembleArchLookupSwitch(instr); |
| 435 break; | 435 break; |
| 436 case kArchTableSwitch: | 436 case kArchTableSwitch: |
| 437 AssembleArchTableSwitch(instr); | 437 AssembleArchTableSwitch(instr); |
| 438 break; | 438 break; |
| 439 case kArchNop: | 439 case kArchNop: |
| 440 case kArchThrowTerminator: |
| 440 // don't emit code for nops. | 441 // don't emit code for nops. |
| 441 break; | 442 break; |
| 442 case kArchDeoptimize: { | 443 case kArchDeoptimize: { |
| 443 int deopt_state_id = | 444 int deopt_state_id = |
| 444 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 445 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 445 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 446 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
| 446 break; | 447 break; |
| 447 } | 448 } |
| 448 case kArchRet: | 449 case kArchRet: |
| 449 AssembleReturn(); | 450 AssembleReturn(); |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1624 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1624 __ Nop(padding_size); | 1625 __ Nop(padding_size); |
| 1625 } | 1626 } |
| 1626 } | 1627 } |
| 1627 | 1628 |
| 1628 #undef __ | 1629 #undef __ |
| 1629 | 1630 |
| 1630 } // namespace compiler | 1631 } // namespace compiler |
| 1631 } // namespace internal | 1632 } // namespace internal |
| 1632 } // namespace v8 | 1633 } // namespace v8 |
| OLD | NEW |