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; | |
986 case kArchNop: | 983 case kArchNop: |
987 case kArchThrowTerminator: | 984 case kArchThrowTerminator: |
988 // don't emit code for nops. | 985 // don't emit code for nops. |
989 break; | 986 break; |
990 case kArchDeoptimize: { | 987 case kArchDeoptimize: { |
991 int deopt_state_id = | 988 int deopt_state_id = |
992 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 989 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
993 Deoptimizer::BailoutType bailout_type = | 990 Deoptimizer::BailoutType bailout_type = |
994 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 991 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
995 CodeGenResult result = | 992 CodeGenResult result = |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 padding_size -= 2; | 2544 padding_size -= 2; |
2548 } | 2545 } |
2549 } | 2546 } |
2550 } | 2547 } |
2551 | 2548 |
2552 #undef __ | 2549 #undef __ |
2553 | 2550 |
2554 } // namespace compiler | 2551 } // namespace compiler |
2555 } // namespace internal | 2552 } // namespace internal |
2556 } // namespace v8 | 2553 } // namespace v8 |
OLD | NEW |