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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 321
322 bool LCodeGen::GenerateDeferredCode() { 322 bool LCodeGen::GenerateDeferredCode() {
323 DCHECK(is_generating()); 323 DCHECK(is_generating());
324 if (deferred_.length() > 0) { 324 if (deferred_.length() > 0) {
325 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 325 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
326 LDeferredCode* code = deferred_[i]; 326 LDeferredCode* code = deferred_[i];
327 327
328 HValue* value = 328 HValue* value =
329 instructions_->at(code->instruction_index())->hydrogen_value(); 329 instructions_->at(code->instruction_index())->hydrogen_value();
330 RecordAndWritePosition( 330 RecordAndWritePosition(value->position());
331 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
332 331
333 Comment(";;; <@%d,#%d> " 332 Comment(";;; <@%d,#%d> "
334 "-------------------- Deferred %s --------------------", 333 "-------------------- Deferred %s --------------------",
335 code->instruction_index(), 334 code->instruction_index(),
336 code->instr()->hydrogen_value()->id(), 335 code->instr()->hydrogen_value()->id(),
337 code->instr()->Mnemonic()); 336 code->instr()->Mnemonic());
338 __ bind(code->entry()); 337 __ bind(code->entry());
339 if (NeedsDeferredFrame()) { 338 if (NeedsDeferredFrame()) {
340 Comment(";;; Build frame"); 339 Comment(";;; Build frame");
341 DCHECK(!frame_is_built_); 340 DCHECK(!frame_is_built_);
(...skipping 4807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 __ bind(deferred->exit()); 5148 __ bind(deferred->exit());
5150 __ bind(&done); 5149 __ bind(&done);
5151 } 5150 }
5152 5151
5153 #undef __ 5152 #undef __
5154 5153
5155 } // namespace internal 5154 } // namespace internal
5156 } // namespace v8 5155 } // namespace v8
5157 5156
5158 #endif // V8_TARGET_ARCH_IA32 5157 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698