OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 } | 251 } |
252 | 252 |
253 bool LCodeGen::GenerateDeferredCode() { | 253 bool LCodeGen::GenerateDeferredCode() { |
254 DCHECK(is_generating()); | 254 DCHECK(is_generating()); |
255 if (deferred_.length() > 0) { | 255 if (deferred_.length() > 0) { |
256 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 256 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
257 LDeferredCode* code = deferred_[i]; | 257 LDeferredCode* code = deferred_[i]; |
258 | 258 |
259 HValue* value = | 259 HValue* value = |
260 instructions_->at(code->instruction_index())->hydrogen_value(); | 260 instructions_->at(code->instruction_index())->hydrogen_value(); |
261 RecordAndWritePosition( | 261 RecordAndWritePosition(value->position()); |
262 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
263 | 262 |
264 Comment( | 263 Comment( |
265 ";;; <@%d,#%d> " | 264 ";;; <@%d,#%d> " |
266 "-------------------- Deferred %s --------------------", | 265 "-------------------- Deferred %s --------------------", |
267 code->instruction_index(), code->instr()->hydrogen_value()->id(), | 266 code->instruction_index(), code->instr()->hydrogen_value()->id(), |
268 code->instr()->Mnemonic()); | 267 code->instr()->Mnemonic()); |
269 __ bind(code->entry()); | 268 __ bind(code->entry()); |
270 if (NeedsDeferredFrame()) { | 269 if (NeedsDeferredFrame()) { |
271 Comment(";;; Build frame"); | 270 Comment(";;; Build frame"); |
272 DCHECK(!frame_is_built_); | 271 DCHECK(!frame_is_built_); |
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5561 __ LoadP(result, | 5560 __ LoadP(result, |
5562 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5561 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5563 __ bind(deferred->exit()); | 5562 __ bind(deferred->exit()); |
5564 __ bind(&done); | 5563 __ bind(&done); |
5565 } | 5564 } |
5566 | 5565 |
5567 #undef __ | 5566 #undef __ |
5568 | 5567 |
5569 } // namespace internal | 5568 } // namespace internal |
5570 } // namespace v8 | 5569 } // namespace v8 |
OLD | NEW |