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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 2603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2614 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2614 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2615 __ Move(vector_register, vector); | 2615 __ Move(vector_register, vector); |
2616 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2616 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
2617 int index = vector->GetIndex(slot); | 2617 int index = vector->GetIndex(slot); |
2618 __ mov(slot_register, Operand(Smi::FromInt(index))); | 2618 __ mov(slot_register, Operand(Smi::FromInt(index))); |
2619 } | 2619 } |
2620 | 2620 |
2621 | 2621 |
2622 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2622 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
2623 DCHECK(ToRegister(instr->context()).is(cp)); | 2623 DCHECK(ToRegister(instr->context()).is(cp)); |
2624 DCHECK(ToRegister(instr->global_object()) | |
2625 .is(LoadDescriptor::ReceiverRegister())); | |
2626 DCHECK(ToRegister(instr->result()).is(r0)); | 2624 DCHECK(ToRegister(instr->result()).is(r0)); |
2627 | 2625 |
2628 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
2629 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2626 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
2630 Handle<Code> ic = | 2627 Handle<Code> ic = |
2631 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2628 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
2632 .code(); | 2629 .code(); |
2633 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2630 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2634 } | 2631 } |
2635 | 2632 |
2636 | 2633 |
2637 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2634 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2638 Register context = ToRegister(instr->context()); | 2635 Register context = ToRegister(instr->context()); |
(...skipping 2908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5547 __ ldr(result, FieldMemOperand(scratch, | 5544 __ ldr(result, FieldMemOperand(scratch, |
5548 FixedArray::kHeaderSize - kPointerSize)); | 5545 FixedArray::kHeaderSize - kPointerSize)); |
5549 __ bind(deferred->exit()); | 5546 __ bind(deferred->exit()); |
5550 __ bind(&done); | 5547 __ bind(&done); |
5551 } | 5548 } |
5552 | 5549 |
5553 #undef __ | 5550 #undef __ |
5554 | 5551 |
5555 } // namespace internal | 5552 } // namespace internal |
5556 } // namespace v8 | 5553 } // namespace v8 |
OLD | NEW |