| 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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 AssembleArchLookupSwitch(instr); | 1001 AssembleArchLookupSwitch(instr); |
| 1002 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1002 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1003 break; | 1003 break; |
| 1004 case kArchTableSwitch: | 1004 case kArchTableSwitch: |
| 1005 AssembleArchTableSwitch(instr); | 1005 AssembleArchTableSwitch(instr); |
| 1006 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1006 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1007 break; | 1007 break; |
| 1008 case kArchDebugBreak: | 1008 case kArchDebugBreak: |
| 1009 __ stop("kArchDebugBreak"); | 1009 __ stop("kArchDebugBreak"); |
| 1010 break; | 1010 break; |
| 1011 case kArchImpossible: |
| 1012 __ Abort(kConversionFromImpossibleValue); |
| 1013 break; |
| 1011 case kArchNop: | 1014 case kArchNop: |
| 1012 case kArchThrowTerminator: | 1015 case kArchThrowTerminator: |
| 1013 // don't emit code for nops. | 1016 // don't emit code for nops. |
| 1014 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1017 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1015 break; | 1018 break; |
| 1016 case kArchDeoptimize: { | 1019 case kArchDeoptimize: { |
| 1017 int deopt_state_id = | 1020 int deopt_state_id = |
| 1018 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 1021 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 1019 Deoptimizer::BailoutType bailout_type = | 1022 Deoptimizer::BailoutType bailout_type = |
| 1020 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 1023 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 padding_size -= v8::internal::Assembler::kInstrSize; | 2373 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2371 } | 2374 } |
| 2372 } | 2375 } |
| 2373 } | 2376 } |
| 2374 | 2377 |
| 2375 #undef __ | 2378 #undef __ |
| 2376 | 2379 |
| 2377 } // namespace compiler | 2380 } // namespace compiler |
| 2378 } // namespace internal | 2381 } // namespace internal |
| 2379 } // namespace v8 | 2382 } // namespace v8 |
| OLD | NEW |