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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 | 237 |
238 bool LCodeGen::GenerateDeferredCode() { | 238 bool LCodeGen::GenerateDeferredCode() { |
239 DCHECK(is_generating()); | 239 DCHECK(is_generating()); |
240 if (deferred_.length() > 0) { | 240 if (deferred_.length() > 0) { |
241 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 241 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
242 LDeferredCode* code = deferred_[i]; | 242 LDeferredCode* code = deferred_[i]; |
243 | 243 |
244 HValue* value = | 244 HValue* value = |
245 instructions_->at(code->instruction_index())->hydrogen_value(); | 245 instructions_->at(code->instruction_index())->hydrogen_value(); |
246 RecordAndWritePosition( | 246 RecordAndWritePosition(value->position()); |
247 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
248 | 247 |
249 Comment(";;; <@%d,#%d> " | 248 Comment(";;; <@%d,#%d> " |
250 "-------------------- Deferred %s --------------------", | 249 "-------------------- Deferred %s --------------------", |
251 code->instruction_index(), | 250 code->instruction_index(), |
252 code->instr()->hydrogen_value()->id(), | 251 code->instr()->hydrogen_value()->id(), |
253 code->instr()->Mnemonic()); | 252 code->instr()->Mnemonic()); |
254 __ bind(code->entry()); | 253 __ bind(code->entry()); |
255 if (NeedsDeferredFrame()) { | 254 if (NeedsDeferredFrame()) { |
256 Comment(";;; Build frame"); | 255 Comment(";;; Build frame"); |
257 DCHECK(!frame_is_built_); | 256 DCHECK(!frame_is_built_); |
(...skipping 5346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5604 __ ld(result, FieldMemOperand(scratch, | 5603 __ ld(result, FieldMemOperand(scratch, |
5605 FixedArray::kHeaderSize - kPointerSize)); | 5604 FixedArray::kHeaderSize - kPointerSize)); |
5606 __ bind(deferred->exit()); | 5605 __ bind(deferred->exit()); |
5607 __ bind(&done); | 5606 __ bind(&done); |
5608 } | 5607 } |
5609 | 5608 |
5610 #undef __ | 5609 #undef __ |
5611 | 5610 |
5612 } // namespace internal | 5611 } // namespace internal |
5613 } // namespace v8 | 5612 } // namespace v8 |
OLD | NEW |