OLD | NEW |
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...) Loading... |
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 4808 matching lines...) Loading... |
5150 __ bind(deferred->exit()); | 5149 __ bind(deferred->exit()); |
5151 __ bind(&done); | 5150 __ bind(&done); |
5152 } | 5151 } |
5153 | 5152 |
5154 #undef __ | 5153 #undef __ |
5155 | 5154 |
5156 } // namespace internal | 5155 } // namespace internal |
5157 } // namespace v8 | 5156 } // namespace v8 |
5158 | 5157 |
5159 #endif // V8_TARGET_ARCH_IA32 | 5158 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |