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/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 674 |
675 | 675 |
676 bool LCodeGen::GenerateDeferredCode() { | 676 bool LCodeGen::GenerateDeferredCode() { |
677 DCHECK(is_generating()); | 677 DCHECK(is_generating()); |
678 if (deferred_.length() > 0) { | 678 if (deferred_.length() > 0) { |
679 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) { | 679 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) { |
680 LDeferredCode* code = deferred_[i]; | 680 LDeferredCode* code = deferred_[i]; |
681 | 681 |
682 HValue* value = | 682 HValue* value = |
683 instructions_->at(code->instruction_index())->hydrogen_value(); | 683 instructions_->at(code->instruction_index())->hydrogen_value(); |
684 RecordAndWritePosition( | 684 RecordAndWritePosition(value->position()); |
685 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
686 | 685 |
687 Comment(";;; <@%d,#%d> " | 686 Comment(";;; <@%d,#%d> " |
688 "-------------------- Deferred %s --------------------", | 687 "-------------------- Deferred %s --------------------", |
689 code->instruction_index(), | 688 code->instruction_index(), |
690 code->instr()->hydrogen_value()->id(), | 689 code->instr()->hydrogen_value()->id(), |
691 code->instr()->Mnemonic()); | 690 code->instr()->Mnemonic()); |
692 | 691 |
693 __ Bind(code->entry()); | 692 __ Bind(code->entry()); |
694 | 693 |
695 if (NeedsDeferredFrame()) { | 694 if (NeedsDeferredFrame()) { |
(...skipping 4870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5566 // Index is equal to negated out of object property index plus 1. | 5565 // Index is equal to negated out of object property index plus 1. |
5567 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5566 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5568 __ Ldr(result, FieldMemOperand(result, | 5567 __ Ldr(result, FieldMemOperand(result, |
5569 FixedArray::kHeaderSize - kPointerSize)); | 5568 FixedArray::kHeaderSize - kPointerSize)); |
5570 __ Bind(deferred->exit()); | 5569 __ Bind(deferred->exit()); |
5571 __ Bind(&done); | 5570 __ Bind(&done); |
5572 } | 5571 } |
5573 | 5572 |
5574 } // namespace internal | 5573 } // namespace internal |
5575 } // namespace v8 | 5574 } // namespace v8 |
OLD | NEW |