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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 AssembleArchLookupSwitch(instr); | 689 AssembleArchLookupSwitch(instr); |
690 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 690 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
691 break; | 691 break; |
692 case kArchTableSwitch: | 692 case kArchTableSwitch: |
693 AssembleArchTableSwitch(instr); | 693 AssembleArchTableSwitch(instr); |
694 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 694 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
695 break; | 695 break; |
696 case kArchDebugBreak: | 696 case kArchDebugBreak: |
697 __ stop("kArchDebugBreak"); | 697 __ stop("kArchDebugBreak"); |
698 break; | 698 break; |
| 699 case kArchImpossible: |
| 700 __ Abort(kConversionFromImpossibleValue); |
| 701 break; |
699 case kArchComment: { | 702 case kArchComment: { |
700 Address comment_string = i.InputExternalReference(0).address(); | 703 Address comment_string = i.InputExternalReference(0).address(); |
701 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 704 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
702 break; | 705 break; |
703 } | 706 } |
704 case kArchNop: | 707 case kArchNop: |
705 case kArchThrowTerminator: | 708 case kArchThrowTerminator: |
706 // don't emit code for nops. | 709 // don't emit code for nops. |
707 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 710 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
708 break; | 711 break; |
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 padding_size -= v8::internal::Assembler::kInstrSize; | 1965 padding_size -= v8::internal::Assembler::kInstrSize; |
1963 } | 1966 } |
1964 } | 1967 } |
1965 } | 1968 } |
1966 | 1969 |
1967 #undef __ | 1970 #undef __ |
1968 | 1971 |
1969 } // namespace compiler | 1972 } // namespace compiler |
1970 } // namespace internal | 1973 } // namespace internal |
1971 } // namespace v8 | 1974 } // namespace v8 |
OLD | NEW |