OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 AssembleArchLookupSwitch(instr); | 583 AssembleArchLookupSwitch(instr); |
584 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 584 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
585 break; | 585 break; |
586 case kArchTableSwitch: | 586 case kArchTableSwitch: |
587 AssembleArchTableSwitch(instr); | 587 AssembleArchTableSwitch(instr); |
588 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 588 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
589 break; | 589 break; |
590 case kArchDebugBreak: | 590 case kArchDebugBreak: |
591 __ stop("kArchDebugBreak"); | 591 __ stop("kArchDebugBreak"); |
592 break; | 592 break; |
| 593 case kArchComment: { |
| 594 Address comment_string = i.InputExternalReference(0).address(); |
| 595 __ RecordComment(reinterpret_cast<const char*>(comment_string)); |
| 596 break; |
| 597 } |
593 case kArchNop: | 598 case kArchNop: |
594 case kArchThrowTerminator: | 599 case kArchThrowTerminator: |
595 // don't emit code for nops. | 600 // don't emit code for nops. |
596 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 601 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
597 break; | 602 break; |
598 case kArchDeoptimize: { | 603 case kArchDeoptimize: { |
599 int deopt_state_id = | 604 int deopt_state_id = |
600 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 605 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
601 Deoptimizer::BailoutType bailout_type = | 606 Deoptimizer::BailoutType bailout_type = |
602 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); | 607 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 padding_size -= v8::internal::Assembler::kInstrSize; | 1699 padding_size -= v8::internal::Assembler::kInstrSize; |
1695 } | 1700 } |
1696 } | 1701 } |
1697 } | 1702 } |
1698 | 1703 |
1699 #undef __ | 1704 #undef __ |
1700 | 1705 |
1701 } // namespace compiler | 1706 } // namespace compiler |
1702 } // namespace internal | 1707 } // namespace internal |
1703 } // namespace v8 | 1708 } // namespace v8 |
OLD | NEW |