| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 } | 752 } |
| 753 case kArchJmp: | 753 case kArchJmp: |
| 754 AssembleArchJump(i.InputRpo(0)); | 754 AssembleArchJump(i.InputRpo(0)); |
| 755 break; | 755 break; |
| 756 case kArchLookupSwitch: | 756 case kArchLookupSwitch: |
| 757 AssembleArchLookupSwitch(instr); | 757 AssembleArchLookupSwitch(instr); |
| 758 break; | 758 break; |
| 759 case kArchTableSwitch: | 759 case kArchTableSwitch: |
| 760 AssembleArchTableSwitch(instr); | 760 AssembleArchTableSwitch(instr); |
| 761 break; | 761 break; |
| 762 case kArchComment: { |
| 763 Address comment_string = i.InputExternalReference(0).address(); |
| 764 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
| 765 break; |
| 766 } |
| 762 case kArchDebugBreak: | 767 case kArchDebugBreak: |
| 763 __ int3(); | 768 __ int3(); |
| 764 break; | 769 break; |
| 765 case kArchNop: | 770 case kArchNop: |
| 766 case kArchThrowTerminator: | 771 case kArchThrowTerminator: |
| 767 // don't emit code for nops. | 772 // don't emit code for nops. |
| 768 break; | 773 break; |
| 769 case kArchDeoptimize: { | 774 case kArchDeoptimize: { |
| 770 int deopt_state_id = | 775 int deopt_state_id = |
| 771 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 776 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2309 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2314 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2310 __ Nop(padding_size); | 2315 __ Nop(padding_size); |
| 2311 } | 2316 } |
| 2312 } | 2317 } |
| 2313 | 2318 |
| 2314 #undef __ | 2319 #undef __ |
| 2315 | 2320 |
| 2316 } // namespace compiler | 2321 } // namespace compiler |
| 2317 } // namespace internal | 2322 } // namespace internal |
| 2318 } // namespace v8 | 2323 } // namespace v8 |
| OLD | NEW |