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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 AssembleArchTableSwitch(instr); | 859 AssembleArchTableSwitch(instr); |
860 break; | 860 break; |
861 case kArchComment: { | 861 case kArchComment: { |
862 Address comment_string = i.InputExternalReference(0).address(); | 862 Address comment_string = i.InputExternalReference(0).address(); |
863 __ RecordComment(reinterpret_cast<const char*>(comment_string)); | 863 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
864 break; | 864 break; |
865 } | 865 } |
866 case kArchDebugBreak: | 866 case kArchDebugBreak: |
867 __ int3(); | 867 __ int3(); |
868 break; | 868 break; |
869 case kArchImpossible: | |
870 __ Abort(kConversionFromImpossibleValue); | |
871 break; | |
872 case kArchNop: | 869 case kArchNop: |
873 case kArchThrowTerminator: | 870 case kArchThrowTerminator: |
874 // don't emit code for nops. | 871 // don't emit code for nops. |
875 break; | 872 break; |
876 case kArchDeoptimize: { | 873 case kArchDeoptimize: { |
877 int deopt_state_id = | 874 int deopt_state_id = |
878 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 875 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
879 Deoptimizer::BailoutType bailout_type = | 876 Deoptimizer::BailoutType bailout_type = |
880 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 877 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
881 CodeGenResult result = | 878 CodeGenResult result = |
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2673 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2670 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2674 __ Nop(padding_size); | 2671 __ Nop(padding_size); |
2675 } | 2672 } |
2676 } | 2673 } |
2677 | 2674 |
2678 #undef __ | 2675 #undef __ |
2679 | 2676 |
2680 } // namespace compiler | 2677 } // namespace compiler |
2681 } // namespace internal | 2678 } // namespace internal |
2682 } // namespace v8 | 2679 } // namespace v8 |
OLD | NEW |