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/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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 AssembleArchLookupSwitch(instr); | 1070 AssembleArchLookupSwitch(instr); |
1071 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1071 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1072 break; | 1072 break; |
1073 case kArchTableSwitch: | 1073 case kArchTableSwitch: |
1074 AssembleArchTableSwitch(instr); | 1074 AssembleArchTableSwitch(instr); |
1075 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1075 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1076 break; | 1076 break; |
1077 case kArchDebugBreak: | 1077 case kArchDebugBreak: |
1078 __ stop("kArchDebugBreak"); | 1078 __ stop("kArchDebugBreak"); |
1079 break; | 1079 break; |
| 1080 case kArchImpossible: |
| 1081 __ Abort(kConversionFromImpossibleValue); |
| 1082 break; |
1080 case kArchNop: | 1083 case kArchNop: |
1081 case kArchThrowTerminator: | 1084 case kArchThrowTerminator: |
1082 // don't emit code for nops. | 1085 // don't emit code for nops. |
1083 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1086 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1084 break; | 1087 break; |
1085 case kArchDeoptimize: { | 1088 case kArchDeoptimize: { |
1086 int deopt_state_id = | 1089 int deopt_state_id = |
1087 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 1090 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
1088 Deoptimizer::BailoutType bailout_type = | 1091 Deoptimizer::BailoutType bailout_type = |
1089 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 1092 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2439 padding_size -= v8::internal::Assembler::kInstrSize; | 2442 padding_size -= v8::internal::Assembler::kInstrSize; |
2440 } | 2443 } |
2441 } | 2444 } |
2442 } | 2445 } |
2443 | 2446 |
2444 #undef __ | 2447 #undef __ |
2445 | 2448 |
2446 } // namespace compiler | 2449 } // namespace compiler |
2447 } // namespace internal | 2450 } // namespace internal |
2448 } // namespace v8 | 2451 } // namespace v8 |
OLD | NEW |