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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 350
351 bool LCodeGen::GenerateDeferredCode() { 351 bool LCodeGen::GenerateDeferredCode() {
352 DCHECK(is_generating()); 352 DCHECK(is_generating());
353 if (deferred_.length() > 0) { 353 if (deferred_.length() > 0) {
354 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 354 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
355 LDeferredCode* code = deferred_[i]; 355 LDeferredCode* code = deferred_[i];
356 356
357 HValue* value = 357 HValue* value =
358 instructions_->at(code->instruction_index())->hydrogen_value(); 358 instructions_->at(code->instruction_index())->hydrogen_value();
359 RecordAndWritePosition( 359 RecordAndWritePosition(value->position());
360 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
361 360
362 Comment(";;; <@%d,#%d> " 361 Comment(";;; <@%d,#%d> "
363 "-------------------- Deferred %s --------------------", 362 "-------------------- Deferred %s --------------------",
364 code->instruction_index(), 363 code->instruction_index(),
365 code->instr()->hydrogen_value()->id(), 364 code->instr()->hydrogen_value()->id(),
366 code->instr()->Mnemonic()); 365 code->instr()->Mnemonic());
367 __ bind(code->entry()); 366 __ bind(code->entry());
368 if (NeedsDeferredFrame()) { 367 if (NeedsDeferredFrame()) {
369 Comment(";;; Build frame"); 368 Comment(";;; Build frame");
370 DCHECK(!frame_is_built_); 369 DCHECK(!frame_is_built_);
(...skipping 5059 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 __ bind(deferred->exit()); 5429 __ bind(deferred->exit());
5431 __ bind(&done); 5430 __ bind(&done);
5432 } 5431 }
5433 5432
5434 #undef __ 5433 #undef __
5435 5434
5436 } // namespace internal 5435 } // namespace internal
5437 } // namespace v8 5436 } // namespace v8
5438 5437
5439 #endif // V8_TARGET_ARCH_X64 5438 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698