OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 | 248 |
249 bool LCodeGen::GenerateDeferredCode() { | 249 bool LCodeGen::GenerateDeferredCode() { |
250 DCHECK(is_generating()); | 250 DCHECK(is_generating()); |
251 if (deferred_.length() > 0) { | 251 if (deferred_.length() > 0) { |
252 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 252 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
253 LDeferredCode* code = deferred_[i]; | 253 LDeferredCode* code = deferred_[i]; |
254 | 254 |
255 HValue* value = | 255 HValue* value = |
256 instructions_->at(code->instruction_index())->hydrogen_value(); | 256 instructions_->at(code->instruction_index())->hydrogen_value(); |
257 RecordAndWritePosition( | 257 RecordAndWritePosition(value->position()); |
258 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
259 | 258 |
260 Comment( | 259 Comment( |
261 ";;; <@%d,#%d> " | 260 ";;; <@%d,#%d> " |
262 "-------------------- Deferred %s --------------------", | 261 "-------------------- Deferred %s --------------------", |
263 code->instruction_index(), code->instr()->hydrogen_value()->id(), | 262 code->instruction_index(), code->instr()->hydrogen_value()->id(), |
264 code->instr()->Mnemonic()); | 263 code->instr()->Mnemonic()); |
265 __ bind(code->entry()); | 264 __ bind(code->entry()); |
266 if (NeedsDeferredFrame()) { | 265 if (NeedsDeferredFrame()) { |
267 Comment(";;; Build frame"); | 266 Comment(";;; Build frame"); |
268 DCHECK(!frame_is_built_); | 267 DCHECK(!frame_is_built_); |
(...skipping 5369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5638 __ LoadP(result, | 5637 __ LoadP(result, |
5639 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5638 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
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 |
OLD | NEW |