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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 3832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3843 // Is it a fixed array? | 3843 // Is it a fixed array? |
3844 __ bind(&try_array); | 3844 __ bind(&try_array); |
3845 __ ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3845 __ ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
3846 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); | 3846 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
3847 __ b(ne, ¬_array); | 3847 __ b(ne, ¬_array); |
3848 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss); | 3848 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss); |
3849 | 3849 |
3850 __ bind(¬_array); | 3850 __ bind(¬_array); |
3851 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3851 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
3852 __ b(ne, &miss); | 3852 __ b(ne, &miss); |
3853 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3853 Code::Flags code_flags = |
3854 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3854 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
3855 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 3855 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
3856 receiver, name, feedback, | 3856 receiver, name, feedback, |
3857 receiver_map, scratch1, r9); | 3857 receiver_map, scratch1, r9); |
3858 | 3858 |
3859 __ bind(&miss); | 3859 __ bind(&miss); |
3860 LoadIC::GenerateMiss(masm); | 3860 LoadIC::GenerateMiss(masm); |
3861 | 3861 |
3862 __ bind(&load_smi_map); | 3862 __ bind(&load_smi_map); |
3863 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3863 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
3864 __ jmp(&compare_map); | 3864 __ jmp(&compare_map); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3988 // We are using register r8, which is used for the embedded constant pool | 3988 // We are using register r8, which is used for the embedded constant pool |
3989 // when FLAG_enable_embedded_constant_pool is true. | 3989 // when FLAG_enable_embedded_constant_pool is true. |
3990 DCHECK(!FLAG_enable_embedded_constant_pool); | 3990 DCHECK(!FLAG_enable_embedded_constant_pool); |
3991 Register scratch2 = r8; | 3991 Register scratch2 = r8; |
3992 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 3992 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
3993 &miss); | 3993 &miss); |
3994 | 3994 |
3995 __ bind(¬_array); | 3995 __ bind(¬_array); |
3996 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3996 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
3997 __ b(ne, &miss); | 3997 __ b(ne, &miss); |
3998 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3998 Code::Flags code_flags = |
3999 Code::ComputeHandlerFlags(Code::STORE_IC)); | 3999 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
4000 masm->isolate()->stub_cache()->GenerateProbe( | 4000 masm->isolate()->stub_cache()->GenerateProbe( |
4001 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, | 4001 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, |
4002 scratch1, scratch2); | 4002 scratch1, scratch2); |
4003 | 4003 |
4004 __ bind(&miss); | 4004 __ bind(&miss); |
4005 StoreIC::GenerateMiss(masm); | 4005 StoreIC::GenerateMiss(masm); |
4006 | 4006 |
4007 __ bind(&load_smi_map); | 4007 __ bind(&load_smi_map); |
4008 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 4008 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
4009 __ jmp(&compare_map); | 4009 __ jmp(&compare_map); |
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5552 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5552 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5553 } | 5553 } |
5554 | 5554 |
5555 | 5555 |
5556 #undef __ | 5556 #undef __ |
5557 | 5557 |
5558 } // namespace internal | 5558 } // namespace internal |
5559 } // namespace v8 | 5559 } // namespace v8 |
5560 | 5560 |
5561 #endif // V8_TARGET_ARCH_ARM | 5561 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |