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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 AssembleArchTableSwitch(instr); | 708 AssembleArchTableSwitch(instr); |
709 break; | 709 break; |
710 case kArchComment: { | 710 case kArchComment: { |
711 Address comment_string = i.InputExternalReference(0).address(); | 711 Address comment_string = i.InputExternalReference(0).address(); |
712 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 712 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
713 break; | 713 break; |
714 } | 714 } |
715 case kArchDebugBreak: | 715 case kArchDebugBreak: |
716 __ int3(); | 716 __ int3(); |
717 break; | 717 break; |
718 case kArchImpossible: | |
719 __ Abort(kConversionFromImpossibleValue); | |
720 break; | |
721 case kArchNop: | 718 case kArchNop: |
722 case kArchThrowTerminator: | 719 case kArchThrowTerminator: |
723 // don't emit code for nops. | 720 // don't emit code for nops. |
724 break; | 721 break; |
725 case kArchDeoptimize: { | 722 case kArchDeoptimize: { |
726 int deopt_state_id = | 723 int deopt_state_id = |
727 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 724 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
728 int double_register_param_count = 0; | 725 int double_register_param_count = 0; |
729 int x87_layout = 0; | 726 int x87_layout = 0; |
730 for (size_t i = 0; i < instr->InputCount(); i++) { | 727 for (size_t i = 0; i < instr->InputCount(); i++) { |
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2724 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2728 __ Nop(padding_size); | 2725 __ Nop(padding_size); |
2729 } | 2726 } |
2730 } | 2727 } |
2731 | 2728 |
2732 #undef __ | 2729 #undef __ |
2733 | 2730 |
2734 } // namespace compiler | 2731 } // namespace compiler |
2735 } // namespace internal | 2732 } // namespace internal |
2736 } // namespace v8 | 2733 } // namespace v8 |
OLD | NEW |