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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 case kArchJmp: | 677 case kArchJmp: |
678 AssembleArchJump(i.InputRpo(0)); | 678 AssembleArchJump(i.InputRpo(0)); |
679 break; | 679 break; |
680 case kArchLookupSwitch: | 680 case kArchLookupSwitch: |
681 AssembleArchLookupSwitch(instr); | 681 AssembleArchLookupSwitch(instr); |
682 break; | 682 break; |
683 case kArchTableSwitch: | 683 case kArchTableSwitch: |
684 AssembleArchTableSwitch(instr); | 684 AssembleArchTableSwitch(instr); |
685 break; | 685 break; |
686 case kArchNop: | 686 case kArchNop: |
| 687 case kArchThrowTerminator: |
687 // don't emit code for nops. | 688 // don't emit code for nops. |
688 break; | 689 break; |
689 case kArchDeoptimize: { | 690 case kArchDeoptimize: { |
690 int deopt_state_id = | 691 int deopt_state_id = |
691 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 692 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
692 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 693 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
693 break; | 694 break; |
694 } | 695 } |
695 case kArchRet: | 696 case kArchRet: |
696 AssembleReturn(); | 697 AssembleReturn(); |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1985 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1985 __ Nop(padding_size); | 1986 __ Nop(padding_size); |
1986 } | 1987 } |
1987 } | 1988 } |
1988 | 1989 |
1989 #undef __ | 1990 #undef __ |
1990 | 1991 |
1991 } // namespace compiler | 1992 } // namespace compiler |
1992 } // namespace internal | 1993 } // namespace internal |
1993 } // namespace v8 | 1994 } // namespace v8 |
OLD | NEW |