| 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; | |
| 713 case kArchComment: { | 710 case kArchComment: { |
| 714 Address comment_string = i.InputExternalReference(0).address(); | 711 Address comment_string = i.InputExternalReference(0).address(); |
| 715 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 712 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
| 716 break; | 713 break; |
| 717 } | 714 } |
| 718 case kArchNop: | 715 case kArchNop: |
| 719 case kArchThrowTerminator: | 716 case kArchThrowTerminator: |
| 720 // don't emit code for nops. | 717 // don't emit code for nops. |
| 721 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 718 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 722 break; | 719 break; |
| (...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2029 padding_size -= v8::internal::Assembler::kInstrSize; | 2026 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2030 } | 2027 } |
| 2031 } | 2028 } |
| 2032 } | 2029 } |
| 2033 | 2030 |
| 2034 #undef __ | 2031 #undef __ |
| 2035 | 2032 |
| 2036 } // namespace compiler | 2033 } // namespace compiler |
| 2037 } // namespace internal | 2034 } // namespace internal |
| 2038 } // namespace v8 | 2035 } // namespace v8 |
| OLD | NEW |