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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4587 } | 4587 } |
4588 | 4588 |
4589 | 4589 |
4590 void VectorRawLoadStub::GenerateForTrampoline(MacroAssembler* masm) { | 4590 void VectorRawLoadStub::GenerateForTrampoline(MacroAssembler* masm) { |
4591 GenerateImpl(masm, true); | 4591 GenerateImpl(masm, true); |
4592 } | 4592 } |
4593 | 4593 |
4594 | 4594 |
4595 static void HandleArrayCases(MacroAssembler* masm, Register receiver, | 4595 static void HandleArrayCases(MacroAssembler* masm, Register receiver, |
4596 Register key, Register vector, Register slot, | 4596 Register key, Register vector, Register slot, |
4597 Register feedback, Register scratch1, | 4597 Register feedback, Register receiver_map, |
4598 Register scratch2, Register scratch3, | 4598 Register scratch1, Register scratch2, |
4599 bool is_polymorphic, Label* miss) { | 4599 bool is_polymorphic, Label* miss) { |
4600 // feedback initially contains the feedback array | 4600 // feedback initially contains the feedback array |
4601 Label next_loop, prepare_next; | 4601 Label next_loop, prepare_next; |
4602 Label load_smi_map, compare_map; | |
4603 Label start_polymorphic; | 4602 Label start_polymorphic; |
4604 | 4603 |
4605 Register receiver_map = scratch1; | 4604 Register cached_map = scratch1; |
4606 Register cached_map = scratch2; | |
4607 | 4605 |
4608 // Receiver might not be a heap object. | |
4609 __ JumpIfSmi(receiver, &load_smi_map); | |
4610 __ lw(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | |
4611 __ bind(&compare_map); | |
4612 __ lw(cached_map, | 4606 __ lw(cached_map, |
4613 FieldMemOperand(feedback, FixedArray::OffsetOfElementAt(0))); | 4607 FieldMemOperand(feedback, FixedArray::OffsetOfElementAt(0))); |
4614 __ lw(cached_map, FieldMemOperand(cached_map, WeakCell::kValueOffset)); | 4608 __ lw(cached_map, FieldMemOperand(cached_map, WeakCell::kValueOffset)); |
4615 __ Branch(&start_polymorphic, ne, receiver_map, Operand(cached_map)); | 4609 __ Branch(&start_polymorphic, ne, receiver_map, Operand(cached_map)); |
4616 // found, now call handler. | 4610 // found, now call handler. |
4617 Register handler = feedback; | 4611 Register handler = feedback; |
4618 __ lw(handler, FieldMemOperand(feedback, FixedArray::OffsetOfElementAt(1))); | 4612 __ lw(handler, FieldMemOperand(feedback, FixedArray::OffsetOfElementAt(1))); |
4619 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); | 4613 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); |
4620 __ Jump(t9); | 4614 __ Jump(t9); |
4621 | 4615 |
4622 | 4616 |
4623 Register length = scratch3; | 4617 Register length = scratch2; |
4624 __ bind(&start_polymorphic); | 4618 __ bind(&start_polymorphic); |
4625 __ lw(length, FieldMemOperand(feedback, FixedArray::kLengthOffset)); | 4619 __ lw(length, FieldMemOperand(feedback, FixedArray::kLengthOffset)); |
4626 if (!is_polymorphic) { | 4620 if (!is_polymorphic) { |
4627 // If the IC could be monomorphic we have to make sure we don't go past the | 4621 // If the IC could be monomorphic we have to make sure we don't go past the |
4628 // end of the feedback array. | 4622 // end of the feedback array. |
4629 __ Branch(miss, eq, length, Operand(Smi::FromInt(2))); | 4623 __ Branch(miss, eq, length, Operand(Smi::FromInt(2))); |
4630 } | 4624 } |
4631 | 4625 |
4632 Register too_far = length; | 4626 Register too_far = length; |
4633 Register pointer_reg = feedback; | 4627 Register pointer_reg = feedback; |
4634 | 4628 |
4635 // +-----+------+------+-----+-----+ ... ----+ | 4629 // +-----+------+------+-----+-----+ ... ----+ |
4636 // | map | len | wm0 | h0 | wm1 | hN | | 4630 // | map | len | wm0 | h0 | wm1 | hN | |
4637 // +-----+------+------+-----+-----+ ... ----+ | 4631 // +-----+------+------+-----+-----+ ... ----+ |
4638 // 0 1 2 len-1 | 4632 // 0 1 2 len-1 |
4639 // ^ ^ | 4633 // ^ ^ |
4640 // | | | 4634 // | | |
4641 // pointer_reg too_far | 4635 // pointer_reg too_far |
4642 // aka feedback scratch3 | 4636 // aka feedback scratch2 |
4643 // also need receiver_map (aka scratch1) | 4637 // also need receiver_map |
4644 // use cached_map (scratch2) to look in the weak map values. | 4638 // use cached_map (scratch1) to look in the weak map values. |
4645 __ sll(at, length, kPointerSizeLog2 - kSmiTagSize); | 4639 __ sll(at, length, kPointerSizeLog2 - kSmiTagSize); |
4646 __ Addu(too_far, feedback, Operand(at)); | 4640 __ Addu(too_far, feedback, Operand(at)); |
4647 __ Addu(too_far, too_far, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 4641 __ Addu(too_far, too_far, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
4648 __ Addu(pointer_reg, feedback, | 4642 __ Addu(pointer_reg, feedback, |
4649 Operand(FixedArray::OffsetOfElementAt(2) - kHeapObjectTag)); | 4643 Operand(FixedArray::OffsetOfElementAt(2) - kHeapObjectTag)); |
4650 | 4644 |
4651 __ bind(&next_loop); | 4645 __ bind(&next_loop); |
4652 __ lw(cached_map, MemOperand(pointer_reg)); | 4646 __ lw(cached_map, MemOperand(pointer_reg)); |
4653 __ lw(cached_map, FieldMemOperand(cached_map, WeakCell::kValueOffset)); | 4647 __ lw(cached_map, FieldMemOperand(cached_map, WeakCell::kValueOffset)); |
4654 __ Branch(&prepare_next, ne, receiver_map, Operand(cached_map)); | 4648 __ Branch(&prepare_next, ne, receiver_map, Operand(cached_map)); |
4655 __ lw(handler, MemOperand(pointer_reg, kPointerSize)); | 4649 __ lw(handler, MemOperand(pointer_reg, kPointerSize)); |
4656 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); | 4650 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); |
4657 __ Jump(t9); | 4651 __ Jump(t9); |
4658 | 4652 |
4659 __ bind(&prepare_next); | 4653 __ bind(&prepare_next); |
4660 __ Addu(pointer_reg, pointer_reg, Operand(kPointerSize * 2)); | 4654 __ Addu(pointer_reg, pointer_reg, Operand(kPointerSize * 2)); |
4661 __ Branch(&next_loop, lt, pointer_reg, Operand(too_far)); | 4655 __ Branch(&next_loop, lt, pointer_reg, Operand(too_far)); |
4662 | 4656 |
4663 // We exhausted our array of map handler pairs. | 4657 // We exhausted our array of map handler pairs. |
4664 __ jmp(miss); | 4658 __ jmp(miss); |
4665 | |
4666 __ bind(&load_smi_map); | |
4667 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | |
4668 __ jmp(&compare_map); | |
4669 } | 4659 } |
4670 | 4660 |
4671 | 4661 |
4672 static void HandleMonomorphicCase(MacroAssembler* masm, Register receiver, | 4662 static void HandleMonomorphicCase(MacroAssembler* masm, Register receiver, |
4673 Register key, Register vector, Register slot, | 4663 Register receiver_map, Register feedback, |
4674 Register weak_cell, Register scratch, | 4664 Register vector, Register slot, |
4675 Label* miss) { | 4665 Register scratch, Label* compare_map, |
4676 // feedback initially contains the feedback array | 4666 Label* load_smi_map, Label* try_array) { |
4677 Label compare_smi_map; | 4667 __ JumpIfSmi(receiver, load_smi_map); |
4678 Register receiver_map = scratch; | 4668 __ lw(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
4679 Register cached_map = weak_cell; | 4669 __ bind(compare_map); |
| 4670 Register cached_map = scratch; |
| 4671 // Move the weak map into the weak_cell register. |
| 4672 __ lw(cached_map, FieldMemOperand(feedback, WeakCell::kValueOffset)); |
| 4673 __ Branch(try_array, ne, cached_map, Operand(receiver_map)); |
| 4674 Register handler = feedback; |
4680 | 4675 |
4681 // Move the weak map into the weak_cell register. | |
4682 __ lw(cached_map, FieldMemOperand(weak_cell, WeakCell::kValueOffset)); | |
4683 | |
4684 // Receiver might not be a heap object. | |
4685 __ JumpIfSmi(receiver, &compare_smi_map); | |
4686 __ lw(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | |
4687 __ Branch(miss, ne, cached_map, Operand(receiver_map)); | |
4688 | |
4689 Register handler = weak_cell; | |
4690 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | 4676 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); |
4691 __ Addu(handler, vector, Operand(at)); | 4677 __ Addu(handler, vector, Operand(at)); |
4692 __ lw(handler, | 4678 __ lw(handler, |
4693 FieldMemOperand(handler, FixedArray::kHeaderSize + kPointerSize)); | |
4694 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); | |
4695 __ Jump(t9); | |
4696 | |
4697 // In microbenchmarks, it made sense to unroll this code so that the call to | |
4698 // the handler is duplicated for a HeapObject receiver and a Smi receiver. | |
4699 __ bind(&compare_smi_map); | |
4700 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); | |
4701 __ Branch(miss, ne, at, Operand(weak_cell)); | |
4702 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | |
4703 __ Addu(handler, vector, Operand(at)); | |
4704 __ lw(handler, | |
4705 FieldMemOperand(handler, FixedArray::kHeaderSize + kPointerSize)); | 4679 FieldMemOperand(handler, FixedArray::kHeaderSize + kPointerSize)); |
4706 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); | 4680 __ Addu(t9, handler, Operand(Code::kHeaderSize - kHeapObjectTag)); |
4707 __ Jump(t9); | 4681 __ Jump(t9); |
4708 } | 4682 } |
4709 | 4683 |
4710 | 4684 |
4711 void VectorRawLoadStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { | 4685 void VectorRawLoadStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
4712 Register receiver = VectorLoadICDescriptor::ReceiverRegister(); // a1 | 4686 Register receiver = VectorLoadICDescriptor::ReceiverRegister(); // a1 |
4713 Register name = VectorLoadICDescriptor::NameRegister(); // a2 | 4687 Register name = VectorLoadICDescriptor::NameRegister(); // a2 |
4714 Register vector = VectorLoadICDescriptor::VectorRegister(); // a3 | 4688 Register vector = VectorLoadICDescriptor::VectorRegister(); // a3 |
4715 Register slot = VectorLoadICDescriptor::SlotRegister(); // a0 | 4689 Register slot = VectorLoadICDescriptor::SlotRegister(); // a0 |
4716 Register feedback = t0; | 4690 Register feedback = t0; |
4717 Register scratch1 = t1; | 4691 Register receiver_map = t1; |
| 4692 Register scratch1 = t4; |
4718 | 4693 |
4719 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | 4694 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); |
4720 __ Addu(feedback, vector, Operand(at)); | 4695 __ Addu(feedback, vector, Operand(at)); |
4721 __ lw(feedback, FieldMemOperand(feedback, FixedArray::kHeaderSize)); | 4696 __ lw(feedback, FieldMemOperand(feedback, FixedArray::kHeaderSize)); |
4722 | 4697 |
4723 // Is it a weak cell? | 4698 // Try to quickly handle the monomorphic case without knowing for sure |
4724 Label try_array; | 4699 // if we have a weak cell in feedback. We do know it's safe to look |
4725 Label not_array, smi_key, key_okay, miss; | 4700 // at WeakCell::kValueOffset. |
4726 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 4701 Label try_array, load_smi_map, compare_map; |
4727 __ LoadRoot(at, Heap::kWeakCellMapRootIndex); | 4702 Label not_array, miss; |
4728 __ Branch(&try_array, ne, at, Operand(scratch1)); | 4703 HandleMonomorphicCase(masm, receiver, receiver_map, feedback, vector, slot, |
4729 HandleMonomorphicCase(masm, receiver, name, vector, slot, feedback, scratch1, | 4704 scratch1, &compare_map, &load_smi_map, &try_array); |
4730 &miss); | |
4731 | 4705 |
4732 // Is it a fixed array? | 4706 // Is it a fixed array? |
4733 __ bind(&try_array); | 4707 __ bind(&try_array); |
| 4708 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
4734 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 4709 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
4735 __ Branch(¬_array, ne, at, Operand(scratch1)); | 4710 __ Branch(¬_array, ne, at, Operand(scratch1)); |
4736 HandleArrayCases(masm, receiver, name, vector, slot, feedback, scratch1, t4, | 4711 HandleArrayCases(masm, receiver, name, vector, slot, feedback, receiver_map, |
4737 t5, true, &miss); | 4712 scratch1, t5, true, &miss); |
4738 | 4713 |
4739 __ bind(¬_array); | 4714 __ bind(¬_array); |
4740 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 4715 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
4741 __ Branch(&miss, ne, at, Operand(feedback)); | 4716 __ Branch(&miss, ne, at, Operand(feedback)); |
4742 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 4717 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( |
4743 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 4718 Code::ComputeHandlerFlags(Code::LOAD_IC)); |
4744 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 4719 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
4745 false, receiver, name, feedback, | 4720 false, receiver, name, feedback, |
4746 scratch1, t4, t5); | 4721 receiver_map, scratch1, t5); |
4747 | 4722 |
4748 __ bind(&miss); | 4723 __ bind(&miss); |
4749 LoadIC::GenerateMiss(masm); | 4724 LoadIC::GenerateMiss(masm); |
| 4725 |
| 4726 __ bind(&load_smi_map); |
| 4727 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 4728 __ jmp(&compare_map); |
4750 } | 4729 } |
4751 | 4730 |
4752 | 4731 |
4753 void VectorRawKeyedLoadStub::Generate(MacroAssembler* masm) { | 4732 void VectorRawKeyedLoadStub::Generate(MacroAssembler* masm) { |
4754 GenerateImpl(masm, false); | 4733 GenerateImpl(masm, false); |
4755 } | 4734 } |
4756 | 4735 |
4757 | 4736 |
4758 void VectorRawKeyedLoadStub::GenerateForTrampoline(MacroAssembler* masm) { | 4737 void VectorRawKeyedLoadStub::GenerateForTrampoline(MacroAssembler* masm) { |
4759 GenerateImpl(masm, true); | 4738 GenerateImpl(masm, true); |
4760 } | 4739 } |
4761 | 4740 |
4762 | 4741 |
4763 void VectorRawKeyedLoadStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { | 4742 void VectorRawKeyedLoadStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
4764 Register receiver = VectorLoadICDescriptor::ReceiverRegister(); // a1 | 4743 Register receiver = VectorLoadICDescriptor::ReceiverRegister(); // a1 |
4765 Register key = VectorLoadICDescriptor::NameRegister(); // a2 | 4744 Register key = VectorLoadICDescriptor::NameRegister(); // a2 |
4766 Register vector = VectorLoadICDescriptor::VectorRegister(); // a3 | 4745 Register vector = VectorLoadICDescriptor::VectorRegister(); // a3 |
4767 Register slot = VectorLoadICDescriptor::SlotRegister(); // a0 | 4746 Register slot = VectorLoadICDescriptor::SlotRegister(); // a0 |
4768 Register feedback = t0; | 4747 Register feedback = t0; |
4769 Register scratch1 = t1; | 4748 Register receiver_map = t1; |
| 4749 Register scratch1 = t4; |
4770 | 4750 |
4771 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | 4751 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); |
4772 __ Addu(feedback, vector, Operand(at)); | 4752 __ Addu(feedback, vector, Operand(at)); |
4773 __ lw(feedback, FieldMemOperand(feedback, FixedArray::kHeaderSize)); | 4753 __ lw(feedback, FieldMemOperand(feedback, FixedArray::kHeaderSize)); |
4774 | 4754 |
4775 // Is it a weak cell? | 4755 // Try to quickly handle the monomorphic case without knowing for sure |
4776 Label try_array; | 4756 // if we have a weak cell in feedback. We do know it's safe to look |
4777 Label not_array, smi_key, key_okay, miss; | 4757 // at WeakCell::kValueOffset. |
4778 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 4758 Label try_array, load_smi_map, compare_map; |
4779 __ LoadRoot(at, Heap::kWeakCellMapRootIndex); | 4759 Label not_array, miss; |
4780 __ Branch(&try_array, ne, at, Operand(scratch1)); | 4760 HandleMonomorphicCase(masm, receiver, receiver_map, feedback, vector, slot, |
4781 __ JumpIfNotSmi(key, &miss); | 4761 scratch1, &compare_map, &load_smi_map, &try_array); |
4782 HandleMonomorphicCase(masm, receiver, key, vector, slot, feedback, scratch1, | |
4783 &miss); | |
4784 | 4762 |
4785 __ bind(&try_array); | 4763 __ bind(&try_array); |
4786 // Is it a fixed array? | 4764 // Is it a fixed array? |
| 4765 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
4787 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 4766 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
4788 __ Branch(¬_array, ne, at, Operand(scratch1)); | 4767 __ Branch(¬_array, ne, at, Operand(scratch1)); |
4789 // We have a polymorphic element handler. | 4768 // We have a polymorphic element handler. |
4790 __ JumpIfNotSmi(key, &miss); | 4769 __ JumpIfNotSmi(key, &miss); |
4791 | 4770 |
4792 Label polymorphic, try_poly_name; | 4771 Label polymorphic, try_poly_name; |
4793 __ bind(&polymorphic); | 4772 __ bind(&polymorphic); |
4794 HandleArrayCases(masm, receiver, key, vector, slot, feedback, scratch1, t4, | 4773 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4795 t5, true, &miss); | 4774 scratch1, t5, true, &miss); |
4796 | 4775 |
4797 __ bind(¬_array); | 4776 __ bind(¬_array); |
4798 // Is it generic? | 4777 // Is it generic? |
4799 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 4778 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
4800 __ Branch(&try_poly_name, ne, at, Operand(feedback)); | 4779 __ Branch(&try_poly_name, ne, at, Operand(feedback)); |
4801 Handle<Code> megamorphic_stub = | 4780 Handle<Code> megamorphic_stub = |
4802 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4781 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); |
4803 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4782 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
4804 | 4783 |
4805 __ bind(&try_poly_name); | 4784 __ bind(&try_poly_name); |
4806 // We might have a name in feedback, and a fixed array in the next slot. | 4785 // We might have a name in feedback, and a fixed array in the next slot. |
4807 __ Branch(&miss, ne, key, Operand(feedback)); | 4786 __ Branch(&miss, ne, key, Operand(feedback)); |
4808 // If the name comparison succeeded, we know we have a fixed array with | 4787 // If the name comparison succeeded, we know we have a fixed array with |
4809 // at least one map/handler pair. | 4788 // at least one map/handler pair. |
4810 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | 4789 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); |
4811 __ Addu(feedback, vector, Operand(at)); | 4790 __ Addu(feedback, vector, Operand(at)); |
4812 __ lw(feedback, | 4791 __ lw(feedback, |
4813 FieldMemOperand(feedback, FixedArray::kHeaderSize + kPointerSize)); | 4792 FieldMemOperand(feedback, FixedArray::kHeaderSize + kPointerSize)); |
4814 HandleArrayCases(masm, receiver, key, vector, slot, feedback, scratch1, t4, | 4793 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4815 t5, false, &miss); | 4794 scratch1, t5, false, &miss); |
4816 | 4795 |
4817 __ bind(&miss); | 4796 __ bind(&miss); |
4818 KeyedLoadIC::GenerateMiss(masm); | 4797 KeyedLoadIC::GenerateMiss(masm); |
| 4798 |
| 4799 __ bind(&load_smi_map); |
| 4800 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 4801 __ jmp(&compare_map); |
4819 } | 4802 } |
4820 | 4803 |
4821 | 4804 |
4822 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4805 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
4823 if (masm->isolate()->function_entry_hook() != NULL) { | 4806 if (masm->isolate()->function_entry_hook() != NULL) { |
4824 ProfileEntryHookStub stub(masm->isolate()); | 4807 ProfileEntryHookStub stub(masm->isolate()); |
4825 __ push(ra); | 4808 __ push(ra); |
4826 __ CallStub(&stub); | 4809 __ CallStub(&stub); |
4827 __ pop(ra); | 4810 __ pop(ra); |
4828 } | 4811 } |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5503 kStackUnwindSpace, kInvalidStackOffset, | 5486 kStackUnwindSpace, kInvalidStackOffset, |
5504 MemOperand(fp, 6 * kPointerSize), NULL); | 5487 MemOperand(fp, 6 * kPointerSize), NULL); |
5505 } | 5488 } |
5506 | 5489 |
5507 | 5490 |
5508 #undef __ | 5491 #undef __ |
5509 | 5492 |
5510 } } // namespace v8::internal | 5493 } } // namespace v8::internal |
5511 | 5494 |
5512 #endif // V8_TARGET_ARCH_MIPS | 5495 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |