| 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 2679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2690 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2690 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
| 2691 __ Move(vector_register, vector); | 2691 __ Move(vector_register, vector); |
| 2692 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2692 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
| 2693 int index = vector->GetIndex(slot); | 2693 int index = vector->GetIndex(slot); |
| 2694 __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); | 2694 __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); |
| 2695 } | 2695 } |
| 2696 | 2696 |
| 2697 | 2697 |
| 2698 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2698 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2699 DCHECK(ToRegister(instr->context()).is(cp)); | 2699 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2700 DCHECK(ToRegister(instr->global_object()) | |
| 2701 .is(LoadDescriptor::ReceiverRegister())); | |
| 2702 DCHECK(ToRegister(instr->result()).is(r3)); | 2700 DCHECK(ToRegister(instr->result()).is(r3)); |
| 2703 | 2701 |
| 2704 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
| 2705 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2702 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
| 2706 Handle<Code> ic = | 2703 Handle<Code> ic = |
| 2707 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2704 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
| 2708 .code(); | 2705 .code(); |
| 2709 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2706 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2710 } | 2707 } |
| 2711 | 2708 |
| 2712 | 2709 |
| 2713 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2710 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2714 Register context = ToRegister(instr->context()); | 2711 Register context = ToRegister(instr->context()); |
| (...skipping 3088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5803 __ LoadP(result, | 5800 __ LoadP(result, |
| 5804 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5801 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5805 __ bind(deferred->exit()); | 5802 __ bind(deferred->exit()); |
| 5806 __ bind(&done); | 5803 __ bind(&done); |
| 5807 } | 5804 } |
| 5808 | 5805 |
| 5809 #undef __ | 5806 #undef __ |
| 5810 | 5807 |
| 5811 } // namespace internal | 5808 } // namespace internal |
| 5812 } // namespace v8 | 5809 } // namespace v8 |
| OLD | NEW |