| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 263 | 263 | 
| 264 | 264 | 
| 265 bool LCodeGen::GenerateDeferredCode() { | 265 bool LCodeGen::GenerateDeferredCode() { | 
| 266   DCHECK(is_generating()); | 266   DCHECK(is_generating()); | 
| 267   if (deferred_.length() > 0) { | 267   if (deferred_.length() > 0) { | 
| 268     for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 268     for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 
| 269       LDeferredCode* code = deferred_[i]; | 269       LDeferredCode* code = deferred_[i]; | 
| 270 | 270 | 
| 271       HValue* value = | 271       HValue* value = | 
| 272           instructions_->at(code->instruction_index())->hydrogen_value(); | 272           instructions_->at(code->instruction_index())->hydrogen_value(); | 
| 273       RecordAndWritePosition( | 273       RecordAndWritePosition(value->position()); | 
| 274           chunk()->graph()->SourcePositionToScriptPosition(value->position())); |  | 
| 275 | 274 | 
| 276       Comment( | 275       Comment( | 
| 277           ";;; <@%d,#%d> " | 276           ";;; <@%d,#%d> " | 
| 278           "-------------------- Deferred %s --------------------", | 277           "-------------------- Deferred %s --------------------", | 
| 279           code->instruction_index(), code->instr()->hydrogen_value()->id(), | 278           code->instruction_index(), code->instr()->hydrogen_value()->id(), | 
| 280           code->instr()->Mnemonic()); | 279           code->instr()->Mnemonic()); | 
| 281       __ bind(code->entry()); | 280       __ bind(code->entry()); | 
| 282       if (NeedsDeferredFrame()) { | 281       if (NeedsDeferredFrame()) { | 
| 283         Comment(";;; Build frame"); | 282         Comment(";;; Build frame"); | 
| 284         DCHECK(!frame_is_built_); | 283         DCHECK(!frame_is_built_); | 
| (...skipping 5368 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5653   __ LoadP(result, | 5652   __ LoadP(result, | 
| 5654            FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5653            FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 
| 5655   __ bind(deferred->exit()); | 5654   __ bind(deferred->exit()); | 
| 5656   __ bind(&done); | 5655   __ bind(&done); | 
| 5657 } | 5656 } | 
| 5658 | 5657 | 
| 5659 #undef __ | 5658 #undef __ | 
| 5660 | 5659 | 
| 5661 }  // namespace internal | 5660 }  // namespace internal | 
| 5662 }  // namespace v8 | 5661 }  // namespace v8 | 
| OLD | NEW | 
|---|