| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4635 | 4635 |
| 4636 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4636 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4637 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4637 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
| 4638 LoadICStub stub(isolate(), state()); | 4638 LoadICStub stub(isolate(), state()); |
| 4639 stub.GenerateForTrampoline(masm); | 4639 stub.GenerateForTrampoline(masm); |
| 4640 } | 4640 } |
| 4641 | 4641 |
| 4642 | 4642 |
| 4643 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4643 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4644 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4644 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
| 4645 KeyedLoadICStub stub(isolate()); | 4645 KeyedLoadICStub stub(isolate(), state()); |
| 4646 stub.GenerateForTrampoline(masm); | 4646 stub.GenerateForTrampoline(masm); |
| 4647 } | 4647 } |
| 4648 | 4648 |
| 4649 | 4649 |
| 4650 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4650 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4651 EmitLoadTypeFeedbackVector(masm, a2); | 4651 EmitLoadTypeFeedbackVector(masm, a2); |
| 4652 CallICStub stub(isolate(), state()); | 4652 CallICStub stub(isolate(), state()); |
| 4653 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4653 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4654 } | 4654 } |
| 4655 | 4655 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4846 Label polymorphic, try_poly_name; | 4846 Label polymorphic, try_poly_name; |
| 4847 __ bind(&polymorphic); | 4847 __ bind(&polymorphic); |
| 4848 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4848 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
| 4849 scratch1, a7, true, &miss); | 4849 scratch1, a7, true, &miss); |
| 4850 | 4850 |
| 4851 __ bind(¬_array); | 4851 __ bind(¬_array); |
| 4852 // Is it generic? | 4852 // Is it generic? |
| 4853 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 4853 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
| 4854 __ Branch(&try_poly_name, ne, feedback, Operand(at)); | 4854 __ Branch(&try_poly_name, ne, feedback, Operand(at)); |
| 4855 Handle<Code> megamorphic_stub = | 4855 Handle<Code> megamorphic_stub = |
| 4856 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4856 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
| 4857 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4857 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
| 4858 | 4858 |
| 4859 __ bind(&try_poly_name); | 4859 __ bind(&try_poly_name); |
| 4860 // We might have a name in feedback, and a fixed array in the next slot. | 4860 // We might have a name in feedback, and a fixed array in the next slot. |
| 4861 __ Branch(&miss, ne, key, Operand(feedback)); | 4861 __ Branch(&miss, ne, key, Operand(feedback)); |
| 4862 // If the name comparison succeeded, we know we have a fixed array with | 4862 // If the name comparison succeeded, we know we have a fixed array with |
| 4863 // at least one map/handler pair. | 4863 // at least one map/handler pair. |
| 4864 __ SmiScale(feedback, slot, kPointerSizeLog2); | 4864 __ SmiScale(feedback, slot, kPointerSizeLog2); |
| 4865 __ Daddu(feedback, vector, Operand(feedback)); | 4865 __ Daddu(feedback, vector, Operand(feedback)); |
| 4866 __ ld(feedback, | 4866 __ ld(feedback, |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5615 MemOperand(fp, 6 * kPointerSize), NULL); | 5615 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5616 } | 5616 } |
| 5617 | 5617 |
| 5618 | 5618 |
| 5619 #undef __ | 5619 #undef __ |
| 5620 | 5620 |
| 5621 } // namespace internal | 5621 } // namespace internal |
| 5622 } // namespace v8 | 5622 } // namespace v8 |
| 5623 | 5623 |
| 5624 #endif // V8_TARGET_ARCH_MIPS64 | 5624 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |