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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 4595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4606 | 4606 |
4607 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4607 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4608 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4608 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4609 LoadICStub stub(isolate(), state()); | 4609 LoadICStub stub(isolate(), state()); |
4610 stub.GenerateForTrampoline(masm); | 4610 stub.GenerateForTrampoline(masm); |
4611 } | 4611 } |
4612 | 4612 |
4613 | 4613 |
4614 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4614 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4615 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4615 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4616 KeyedLoadICStub stub(isolate()); | 4616 KeyedLoadICStub stub(isolate(), state()); |
4617 stub.GenerateForTrampoline(masm); | 4617 stub.GenerateForTrampoline(masm); |
4618 } | 4618 } |
4619 | 4619 |
4620 | 4620 |
4621 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4621 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
4622 EmitLoadTypeFeedbackVector(masm, r5); | 4622 EmitLoadTypeFeedbackVector(masm, r5); |
4623 CallICStub stub(isolate(), state()); | 4623 CallICStub stub(isolate(), state()); |
4624 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4624 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
4625 } | 4625 } |
4626 | 4626 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4823 Label polymorphic, try_poly_name; | 4823 Label polymorphic, try_poly_name; |
4824 __ bind(&polymorphic); | 4824 __ bind(&polymorphic); |
4825 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4825 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4826 scratch1, r10, true, &miss); | 4826 scratch1, r10, true, &miss); |
4827 | 4827 |
4828 __ bind(¬_array); | 4828 __ bind(¬_array); |
4829 // Is it generic? | 4829 // Is it generic? |
4830 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 4830 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
4831 __ bne(&try_poly_name); | 4831 __ bne(&try_poly_name); |
4832 Handle<Code> megamorphic_stub = | 4832 Handle<Code> megamorphic_stub = |
4833 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4833 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
4834 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4834 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
4835 | 4835 |
4836 __ bind(&try_poly_name); | 4836 __ bind(&try_poly_name); |
4837 // We might have a name in feedback, and a fixed array in the next slot. | 4837 // We might have a name in feedback, and a fixed array in the next slot. |
4838 __ cmp(key, feedback); | 4838 __ cmp(key, feedback); |
4839 __ bne(&miss); | 4839 __ bne(&miss); |
4840 // If the name comparison succeeded, we know we have a fixed array with | 4840 // If the name comparison succeeded, we know we have a fixed array with |
4841 // at least one map/handler pair. | 4841 // at least one map/handler pair. |
4842 __ SmiToPtrArrayOffset(r0, slot); | 4842 __ SmiToPtrArrayOffset(r0, slot); |
4843 __ add(feedback, vector, r0); | 4843 __ add(feedback, vector, r0); |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5666 kStackUnwindSpace, NULL, | 5666 kStackUnwindSpace, NULL, |
5667 MemOperand(fp, 6 * kPointerSize), NULL); | 5667 MemOperand(fp, 6 * kPointerSize), NULL); |
5668 } | 5668 } |
5669 | 5669 |
5670 | 5670 |
5671 #undef __ | 5671 #undef __ |
5672 } // namespace internal | 5672 } // namespace internal |
5673 } // namespace v8 | 5673 } // namespace v8 |
5674 | 5674 |
5675 #endif // V8_TARGET_ARCH_PPC | 5675 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |