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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 AssembleArchTableSwitch(instr); | 844 AssembleArchTableSwitch(instr); |
845 break; | 845 break; |
846 case kArchComment: { | 846 case kArchComment: { |
847 Address comment_string = i.InputExternalReference(0).address(); | 847 Address comment_string = i.InputExternalReference(0).address(); |
848 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 848 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
849 break; | 849 break; |
850 } | 850 } |
851 case kArchDebugBreak: | 851 case kArchDebugBreak: |
852 __ int3(); | 852 __ int3(); |
853 break; | 853 break; |
| 854 case kArchImpossible: |
| 855 __ Abort(kConversionFromImpossibleValue); |
| 856 break; |
854 case kArchNop: | 857 case kArchNop: |
855 case kArchThrowTerminator: | 858 case kArchThrowTerminator: |
856 // don't emit code for nops. | 859 // don't emit code for nops. |
857 break; | 860 break; |
858 case kArchDeoptimize: { | 861 case kArchDeoptimize: { |
859 int deopt_state_id = | 862 int deopt_state_id = |
860 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 863 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
861 Deoptimizer::BailoutType bailout_type = | 864 Deoptimizer::BailoutType bailout_type = |
862 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 865 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
863 CodeGenResult result = | 866 CodeGenResult result = |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2543 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2546 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2544 __ Nop(padding_size); | 2547 __ Nop(padding_size); |
2545 } | 2548 } |
2546 } | 2549 } |
2547 | 2550 |
2548 #undef __ | 2551 #undef __ |
2549 | 2552 |
2550 } // namespace compiler | 2553 } // namespace compiler |
2551 } // namespace internal | 2554 } // namespace internal |
2552 } // namespace v8 | 2555 } // namespace v8 |
OLD | NEW |