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 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2626 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2627 __ li(vector_register, vector); | 2627 __ li(vector_register, vector); |
2628 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2628 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
2629 int index = vector->GetIndex(slot); | 2629 int index = vector->GetIndex(slot); |
2630 __ li(slot_register, Operand(Smi::FromInt(index))); | 2630 __ li(slot_register, Operand(Smi::FromInt(index))); |
2631 } | 2631 } |
2632 | 2632 |
2633 | 2633 |
2634 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2634 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
2635 DCHECK(ToRegister(instr->context()).is(cp)); | 2635 DCHECK(ToRegister(instr->context()).is(cp)); |
2636 DCHECK(ToRegister(instr->global_object()) | |
2637 .is(LoadDescriptor::ReceiverRegister())); | |
2638 DCHECK(ToRegister(instr->result()).is(v0)); | 2636 DCHECK(ToRegister(instr->result()).is(v0)); |
2639 | 2637 |
2640 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
2641 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2638 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
2642 Handle<Code> ic = | 2639 Handle<Code> ic = |
2643 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2640 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
2644 .code(); | 2641 .code(); |
2645 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2642 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2646 } | 2643 } |
2647 | 2644 |
2648 | 2645 |
2649 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2646 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2650 Register context = ToRegister(instr->context()); | 2647 Register context = ToRegister(instr->context()); |
(...skipping 3098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5749 __ ld(result, FieldMemOperand(scratch, | 5746 __ ld(result, FieldMemOperand(scratch, |
5750 FixedArray::kHeaderSize - kPointerSize)); | 5747 FixedArray::kHeaderSize - kPointerSize)); |
5751 __ bind(deferred->exit()); | 5748 __ bind(deferred->exit()); |
5752 __ bind(&done); | 5749 __ bind(&done); |
5753 } | 5750 } |
5754 | 5751 |
5755 #undef __ | 5752 #undef __ |
5756 | 5753 |
5757 } // namespace internal | 5754 } // namespace internal |
5758 } // namespace v8 | 5755 } // namespace v8 |
OLD | NEW |