Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 697
698 698
699 bool LCodeGen::GenerateDeferredCode() { 699 bool LCodeGen::GenerateDeferredCode() {
700 DCHECK(is_generating()); 700 DCHECK(is_generating());
701 if (deferred_.length() > 0) { 701 if (deferred_.length() > 0) {
702 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) { 702 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) {
703 LDeferredCode* code = deferred_[i]; 703 LDeferredCode* code = deferred_[i];
704 704
705 HValue* value = 705 HValue* value =
706 instructions_->at(code->instruction_index())->hydrogen_value(); 706 instructions_->at(code->instruction_index())->hydrogen_value();
707 RecordAndWritePosition( 707 RecordAndWritePosition(value->position());
708 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
709 708
710 Comment(";;; <@%d,#%d> " 709 Comment(";;; <@%d,#%d> "
711 "-------------------- Deferred %s --------------------", 710 "-------------------- Deferred %s --------------------",
712 code->instruction_index(), 711 code->instruction_index(),
713 code->instr()->hydrogen_value()->id(), 712 code->instr()->hydrogen_value()->id(),
714 code->instr()->Mnemonic()); 713 code->instr()->Mnemonic());
715 714
716 __ Bind(code->entry()); 715 __ Bind(code->entry());
717 716
718 if (NeedsDeferredFrame()) { 717 if (NeedsDeferredFrame()) {
(...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5588 // Index is equal to negated out of object property index plus 1. 5587 // Index is equal to negated out of object property index plus 1.
5589 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5588 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5590 __ Ldr(result, FieldMemOperand(result, 5589 __ Ldr(result, FieldMemOperand(result,
5591 FixedArray::kHeaderSize - kPointerSize)); 5590 FixedArray::kHeaderSize - kPointerSize));
5592 __ Bind(deferred->exit()); 5591 __ Bind(deferred->exit());
5593 __ Bind(&done); 5592 __ Bind(&done);
5594 } 5593 }
5595 5594
5596 } // namespace internal 5595 } // namespace internal
5597 } // namespace v8 5596 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698