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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 235
236 bool LCodeGen::GenerateDeferredCode() { 236 bool LCodeGen::GenerateDeferredCode() {
237 DCHECK(is_generating()); 237 DCHECK(is_generating());
238 if (deferred_.length() > 0) { 238 if (deferred_.length() > 0) {
239 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 239 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
240 LDeferredCode* code = deferred_[i]; 240 LDeferredCode* code = deferred_[i];
241 241
242 HValue* value = 242 HValue* value =
243 instructions_->at(code->instruction_index())->hydrogen_value(); 243 instructions_->at(code->instruction_index())->hydrogen_value();
244 RecordAndWritePosition( 244 RecordAndWritePosition(value->position());
245 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
246 245
247 Comment( 246 Comment(
248 ";;; <@%d,#%d> " 247 ";;; <@%d,#%d> "
249 "-------------------- Deferred %s --------------------", 248 "-------------------- Deferred %s --------------------",
250 code->instruction_index(), code->instr()->hydrogen_value()->id(), 249 code->instruction_index(), code->instr()->hydrogen_value()->id(),
251 code->instr()->Mnemonic()); 250 code->instr()->Mnemonic());
252 __ bind(code->entry()); 251 __ bind(code->entry());
253 if (NeedsDeferredFrame()) { 252 if (NeedsDeferredFrame()) {
254 Comment(";;; Build frame"); 253 Comment(";;; Build frame");
255 DCHECK(!frame_is_built_); 254 DCHECK(!frame_is_built_);
(...skipping 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after
5540 __ LoadP(result, 5539 __ LoadP(result,
5541 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5540 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5542 __ bind(deferred->exit()); 5541 __ bind(deferred->exit());
5543 __ bind(&done); 5542 __ bind(&done);
5544 } 5543 }
5545 5544
5546 #undef __ 5545 #undef __
5547 5546
5548 } // namespace internal 5547 } // namespace internal
5549 } // namespace v8 5548 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698