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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 } | 599 } |
600 case kArchJmp: | 600 case kArchJmp: |
601 AssembleArchJump(i.InputRpo(0)); | 601 AssembleArchJump(i.InputRpo(0)); |
602 break; | 602 break; |
603 case kArchLookupSwitch: | 603 case kArchLookupSwitch: |
604 AssembleArchLookupSwitch(instr); | 604 AssembleArchLookupSwitch(instr); |
605 break; | 605 break; |
606 case kArchTableSwitch: | 606 case kArchTableSwitch: |
607 AssembleArchTableSwitch(instr); | 607 AssembleArchTableSwitch(instr); |
608 break; | 608 break; |
| 609 case kArchComment: { |
| 610 Address comment_string = i.InputExternalReference(0).address(); |
| 611 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
| 612 break; |
| 613 } |
609 case kArchDebugBreak: | 614 case kArchDebugBreak: |
610 __ int3(); | 615 __ int3(); |
611 break; | 616 break; |
612 case kArchNop: | 617 case kArchNop: |
613 case kArchThrowTerminator: | 618 case kArchThrowTerminator: |
614 // don't emit code for nops. | 619 // don't emit code for nops. |
615 break; | 620 break; |
616 case kArchDeoptimize: { | 621 case kArchDeoptimize: { |
617 int deopt_state_id = | 622 int deopt_state_id = |
618 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 623 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2512 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2508 __ Nop(padding_size); | 2513 __ Nop(padding_size); |
2509 } | 2514 } |
2510 } | 2515 } |
2511 | 2516 |
2512 #undef __ | 2517 #undef __ |
2513 | 2518 |
2514 } // namespace compiler | 2519 } // namespace compiler |
2515 } // namespace internal | 2520 } // namespace internal |
2516 } // namespace v8 | 2521 } // namespace v8 |
OLD | NEW |