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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 case kArchJmp: | 685 case kArchJmp: |
686 AssembleArchJump(i.InputRpo(0)); | 686 AssembleArchJump(i.InputRpo(0)); |
687 break; | 687 break; |
688 case kArchLookupSwitch: | 688 case kArchLookupSwitch: |
689 AssembleArchLookupSwitch(instr); | 689 AssembleArchLookupSwitch(instr); |
690 break; | 690 break; |
691 case kArchTableSwitch: | 691 case kArchTableSwitch: |
692 AssembleArchTableSwitch(instr); | 692 AssembleArchTableSwitch(instr); |
693 break; | 693 break; |
694 case kArchNop: | 694 case kArchNop: |
695 case kArchThrowTerminator: | |
696 // don't emit code for nops. | 695 // don't emit code for nops. |
697 break; | 696 break; |
698 case kArchDeoptimize: { | 697 case kArchDeoptimize: { |
699 int deopt_state_id = | 698 int deopt_state_id = |
700 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 699 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
701 Deoptimizer::BailoutType bailout_type = | 700 Deoptimizer::BailoutType bailout_type = |
702 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 701 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
703 AssembleDeoptimizerCall(deopt_state_id, bailout_type); | 702 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
704 break; | 703 break; |
705 } | 704 } |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2088 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2087 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2089 __ Nop(padding_size); | 2088 __ Nop(padding_size); |
2090 } | 2089 } |
2091 } | 2090 } |
2092 | 2091 |
2093 #undef __ | 2092 #undef __ |
2094 | 2093 |
2095 } // namespace compiler | 2094 } // namespace compiler |
2096 } // namespace internal | 2095 } // namespace internal |
2097 } // namespace v8 | 2096 } // namespace v8 |
OLD | NEW |