OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 break; | 973 break; |
974 case kArchLookupSwitch: | 974 case kArchLookupSwitch: |
975 AssembleArchLookupSwitch(instr); | 975 AssembleArchLookupSwitch(instr); |
976 break; | 976 break; |
977 case kArchTableSwitch: | 977 case kArchTableSwitch: |
978 AssembleArchTableSwitch(instr); | 978 AssembleArchTableSwitch(instr); |
979 break; | 979 break; |
980 case kArchDebugBreak: | 980 case kArchDebugBreak: |
981 __ stop("kArchDebugBreak"); | 981 __ stop("kArchDebugBreak"); |
982 break; | 982 break; |
| 983 case kArchImpossible: |
| 984 __ Abort(kConversionFromImpossibleValue); |
| 985 break; |
983 case kArchNop: | 986 case kArchNop: |
984 case kArchThrowTerminator: | 987 case kArchThrowTerminator: |
985 // don't emit code for nops. | 988 // don't emit code for nops. |
986 break; | 989 break; |
987 case kArchDeoptimize: { | 990 case kArchDeoptimize: { |
988 int deopt_state_id = | 991 int deopt_state_id = |
989 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 992 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
990 Deoptimizer::BailoutType bailout_type = | 993 Deoptimizer::BailoutType bailout_type = |
991 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 994 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
992 CodeGenResult result = | 995 CodeGenResult result = |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2544 padding_size -= 2; | 2547 padding_size -= 2; |
2545 } | 2548 } |
2546 } | 2549 } |
2547 } | 2550 } |
2548 | 2551 |
2549 #undef __ | 2552 #undef __ |
2550 | 2553 |
2551 } // namespace compiler | 2554 } // namespace compiler |
2552 } // namespace internal | 2555 } // namespace internal |
2553 } // namespace v8 | 2556 } // namespace v8 |
OLD | NEW |