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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 bool LCodeGen::GenerateDeferredCode() { | 323 bool LCodeGen::GenerateDeferredCode() { |
324 DCHECK(is_generating()); | 324 DCHECK(is_generating()); |
325 if (deferred_.length() > 0) { | 325 if (deferred_.length() > 0) { |
326 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 326 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
327 LDeferredCode* code = deferred_[i]; | 327 LDeferredCode* code = deferred_[i]; |
328 X87Stack copy(code->x87_stack()); | 328 X87Stack copy(code->x87_stack()); |
329 x87_stack_ = copy; | 329 x87_stack_ = copy; |
330 | 330 |
331 HValue* value = | 331 HValue* value = |
332 instructions_->at(code->instruction_index())->hydrogen_value(); | 332 instructions_->at(code->instruction_index())->hydrogen_value(); |
333 RecordAndWritePosition( | 333 RecordAndWritePosition(value->position()); |
334 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
335 | 334 |
336 Comment(";;; <@%d,#%d> " | 335 Comment(";;; <@%d,#%d> " |
337 "-------------------- Deferred %s --------------------", | 336 "-------------------- Deferred %s --------------------", |
338 code->instruction_index(), | 337 code->instruction_index(), |
339 code->instr()->hydrogen_value()->id(), | 338 code->instr()->hydrogen_value()->id(), |
340 code->instr()->Mnemonic()); | 339 code->instr()->Mnemonic()); |
341 __ bind(code->entry()); | 340 __ bind(code->entry()); |
342 if (NeedsDeferredFrame()) { | 341 if (NeedsDeferredFrame()) { |
343 Comment(";;; Build frame"); | 342 Comment(";;; Build frame"); |
344 DCHECK(!frame_is_built_); | 343 DCHECK(!frame_is_built_); |
(...skipping 5295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5640 __ bind(deferred->exit()); | 5639 __ bind(deferred->exit()); |
5641 __ bind(&done); | 5640 __ bind(&done); |
5642 } | 5641 } |
5643 | 5642 |
5644 #undef __ | 5643 #undef __ |
5645 | 5644 |
5646 } // namespace internal | 5645 } // namespace internal |
5647 } // namespace v8 | 5646 } // namespace v8 |
5648 | 5647 |
5649 #endif // V8_TARGET_ARCH_X87 | 5648 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |