OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 AssembleArchTableSwitch(instr); | 630 AssembleArchTableSwitch(instr); |
631 break; | 631 break; |
632 case kArchComment: { | 632 case kArchComment: { |
633 Address comment_string = i.InputExternalReference(0).address(); | 633 Address comment_string = i.InputExternalReference(0).address(); |
634 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 634 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
635 break; | 635 break; |
636 } | 636 } |
637 case kArchDebugBreak: | 637 case kArchDebugBreak: |
638 __ int3(); | 638 __ int3(); |
639 break; | 639 break; |
640 case kArchImpossible: | |
641 __ Abort(kConversionFromImpossibleValue); | |
642 break; | |
643 case kArchNop: | 640 case kArchNop: |
644 case kArchThrowTerminator: | 641 case kArchThrowTerminator: |
645 // don't emit code for nops. | 642 // don't emit code for nops. |
646 break; | 643 break; |
647 case kArchDeoptimize: { | 644 case kArchDeoptimize: { |
648 int deopt_state_id = | 645 int deopt_state_id = |
649 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 646 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
650 Deoptimizer::BailoutType bailout_type = | 647 Deoptimizer::BailoutType bailout_type = |
651 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 648 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
652 CodeGenResult result = | 649 CodeGenResult result = |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2265 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2269 __ Nop(padding_size); | 2266 __ Nop(padding_size); |
2270 } | 2267 } |
2271 } | 2268 } |
2272 | 2269 |
2273 #undef __ | 2270 #undef __ |
2274 | 2271 |
2275 } // namespace compiler | 2272 } // namespace compiler |
2276 } // namespace internal | 2273 } // namespace internal |
2277 } // namespace v8 | 2274 } // namespace v8 |
OLD | NEW |