| 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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 3699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3710 // Is it a fixed array? | 3710 // Is it a fixed array? |
| 3711 __ bind(&try_array); | 3711 __ bind(&try_array); |
| 3712 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3712 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 3713 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 3713 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
| 3714 __ Branch(¬_array, ne, at, Operand(scratch1)); | 3714 __ Branch(¬_array, ne, at, Operand(scratch1)); |
| 3715 HandleArrayCases(masm, feedback, receiver_map, scratch1, t5, true, &miss); | 3715 HandleArrayCases(masm, feedback, receiver_map, scratch1, t5, true, &miss); |
| 3716 | 3716 |
| 3717 __ bind(¬_array); | 3717 __ bind(¬_array); |
| 3718 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 3718 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
| 3719 __ Branch(&miss, ne, at, Operand(feedback)); | 3719 __ Branch(&miss, ne, at, Operand(feedback)); |
| 3720 Code::Flags code_flags = | 3720 masm->isolate()->load_stub_cache()->GenerateProbe( |
| 3721 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3721 masm, receiver, name, feedback, receiver_map, scratch1, t5); |
| 3722 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | |
| 3723 receiver, name, feedback, | |
| 3724 receiver_map, scratch1, t5); | |
| 3725 | 3722 |
| 3726 __ bind(&miss); | 3723 __ bind(&miss); |
| 3727 LoadIC::GenerateMiss(masm); | 3724 LoadIC::GenerateMiss(masm); |
| 3728 | 3725 |
| 3729 __ bind(&load_smi_map); | 3726 __ bind(&load_smi_map); |
| 3730 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3727 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3731 __ jmp(&compare_map); | 3728 __ jmp(&compare_map); |
| 3732 } | 3729 } |
| 3733 | 3730 |
| 3734 | 3731 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3852 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 3849 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
| 3853 __ Branch(¬_array, ne, scratch1, Operand(at)); | 3850 __ Branch(¬_array, ne, scratch1, Operand(at)); |
| 3854 | 3851 |
| 3855 Register scratch2 = t4; | 3852 Register scratch2 = t4; |
| 3856 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 3853 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
| 3857 &miss); | 3854 &miss); |
| 3858 | 3855 |
| 3859 __ bind(¬_array); | 3856 __ bind(¬_array); |
| 3860 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 3857 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
| 3861 __ Branch(&miss, ne, feedback, Operand(at)); | 3858 __ Branch(&miss, ne, feedback, Operand(at)); |
| 3862 Code::Flags code_flags = | 3859 masm->isolate()->store_stub_cache()->GenerateProbe( |
| 3863 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 3860 masm, receiver, key, feedback, receiver_map, scratch1, scratch2); |
| 3864 masm->isolate()->stub_cache()->GenerateProbe( | |
| 3865 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, | |
| 3866 scratch1, scratch2); | |
| 3867 | 3861 |
| 3868 __ bind(&miss); | 3862 __ bind(&miss); |
| 3869 StoreIC::GenerateMiss(masm); | 3863 StoreIC::GenerateMiss(masm); |
| 3870 | 3864 |
| 3871 __ bind(&load_smi_map); | 3865 __ bind(&load_smi_map); |
| 3872 __ Branch(USE_DELAY_SLOT, &compare_map); | 3866 __ Branch(USE_DELAY_SLOT, &compare_map); |
| 3873 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. | 3867 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. |
| 3874 } | 3868 } |
| 3875 | 3869 |
| 3876 | 3870 |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5421 kStackUnwindSpace, kInvalidStackOffset, | 5415 kStackUnwindSpace, kInvalidStackOffset, |
| 5422 return_value_operand, NULL); | 5416 return_value_operand, NULL); |
| 5423 } | 5417 } |
| 5424 | 5418 |
| 5425 #undef __ | 5419 #undef __ |
| 5426 | 5420 |
| 5427 } // namespace internal | 5421 } // namespace internal |
| 5428 } // namespace v8 | 5422 } // namespace v8 |
| 5429 | 5423 |
| 5430 #endif // V8_TARGET_ARCH_MIPS | 5424 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |