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 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2661 AllowDeferredHandleDereference vector_structure_check; | 2661 AllowDeferredHandleDereference vector_structure_check; |
2662 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2662 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2663 __ Move(vector_register, vector); | 2663 __ Move(vector_register, vector); |
2664 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2664 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
2665 int index = vector->GetIndex(slot); | 2665 int index = vector->GetIndex(slot); |
2666 __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); | 2666 __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); |
2667 } | 2667 } |
2668 | 2668 |
2669 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2669 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
2670 DCHECK(ToRegister(instr->context()).is(cp)); | 2670 DCHECK(ToRegister(instr->context()).is(cp)); |
2671 DCHECK(ToRegister(instr->global_object()) | |
2672 .is(LoadDescriptor::ReceiverRegister())); | |
2673 DCHECK(ToRegister(instr->result()).is(r2)); | 2671 DCHECK(ToRegister(instr->result()).is(r2)); |
2674 | 2672 |
2675 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
2676 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2673 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
2677 Handle<Code> ic = | 2674 Handle<Code> ic = |
2678 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2675 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
2679 .code(); | 2676 .code(); |
2680 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2677 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2681 } | 2678 } |
2682 | 2679 |
2683 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2680 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2684 Register context = ToRegister(instr->context()); | 2681 Register context = ToRegister(instr->context()); |
2685 Register result = ToRegister(instr->result()); | 2682 Register result = ToRegister(instr->result()); |
(...skipping 3001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5687 __ LoadP(result, | 5684 __ LoadP(result, |
5688 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5685 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5689 __ bind(deferred->exit()); | 5686 __ bind(deferred->exit()); |
5690 __ bind(&done); | 5687 __ bind(&done); |
5691 } | 5688 } |
5692 | 5689 |
5693 #undef __ | 5690 #undef __ |
5694 | 5691 |
5695 } // namespace internal | 5692 } // namespace internal |
5696 } // namespace v8 | 5693 } // namespace v8 |
OLD | NEW |