OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 AssembleArchLookupSwitch(instr); | 700 AssembleArchLookupSwitch(instr); |
701 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 701 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
702 break; | 702 break; |
703 case kArchTableSwitch: | 703 case kArchTableSwitch: |
704 AssembleArchTableSwitch(instr); | 704 AssembleArchTableSwitch(instr); |
705 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 705 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
706 break; | 706 break; |
707 case kArchDebugBreak: | 707 case kArchDebugBreak: |
708 __ stop("kArchDebugBreak"); | 708 __ stop("kArchDebugBreak"); |
709 break; | 709 break; |
| 710 case kArchImpossible: |
| 711 __ Abort(kConversionFromImpossibleValue); |
| 712 break; |
710 case kArchComment: { | 713 case kArchComment: { |
711 Address comment_string = i.InputExternalReference(0).address(); | 714 Address comment_string = i.InputExternalReference(0).address(); |
712 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 715 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
713 break; | 716 break; |
714 } | 717 } |
715 case kArchNop: | 718 case kArchNop: |
716 case kArchThrowTerminator: | 719 case kArchThrowTerminator: |
717 // don't emit code for nops. | 720 // don't emit code for nops. |
718 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 721 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
719 break; | 722 break; |
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2026 padding_size -= v8::internal::Assembler::kInstrSize; | 2029 padding_size -= v8::internal::Assembler::kInstrSize; |
2027 } | 2030 } |
2028 } | 2031 } |
2029 } | 2032 } |
2030 | 2033 |
2031 #undef __ | 2034 #undef __ |
2032 | 2035 |
2033 } // namespace compiler | 2036 } // namespace compiler |
2034 } // namespace internal | 2037 } // namespace internal |
2035 } // namespace v8 | 2038 } // namespace v8 |
OLD | NEW |