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 #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 Loading... |
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 5060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5431 __ bind(deferred->exit()); | 5430 __ bind(deferred->exit()); |
5432 __ bind(&done); | 5431 __ bind(&done); |
5433 } | 5432 } |
5434 | 5433 |
5435 #undef __ | 5434 #undef __ |
5436 | 5435 |
5437 } // namespace internal | 5436 } // namespace internal |
5438 } // namespace v8 | 5437 } // namespace v8 |
5439 | 5438 |
5440 #endif // V8_TARGET_ARCH_X64 | 5439 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |