| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 3809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3820 scratch1, &compare_map, &load_smi_map, &try_array); | 3820 scratch1, &compare_map, &load_smi_map, &try_array); |
| 3821 | 3821 |
| 3822 // Is it a fixed array? | 3822 // Is it a fixed array? |
| 3823 __ Bind(&try_array); | 3823 __ Bind(&try_array); |
| 3824 __ Ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3824 __ Ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 3825 __ JumpIfNotRoot(scratch1, Heap::kFixedArrayMapRootIndex, ¬_array); | 3825 __ JumpIfNotRoot(scratch1, Heap::kFixedArrayMapRootIndex, ¬_array); |
| 3826 HandleArrayCases(masm, feedback, receiver_map, scratch1, x7, true, &miss); | 3826 HandleArrayCases(masm, feedback, receiver_map, scratch1, x7, true, &miss); |
| 3827 | 3827 |
| 3828 __ Bind(¬_array); | 3828 __ Bind(¬_array); |
| 3829 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, &miss); | 3829 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, &miss); |
| 3830 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3830 Code::Flags code_flags = |
| 3831 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3831 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
| 3832 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 3832 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
| 3833 receiver, name, feedback, | 3833 receiver, name, feedback, |
| 3834 receiver_map, scratch1, x7); | 3834 receiver_map, scratch1, x7); |
| 3835 | 3835 |
| 3836 __ Bind(&miss); | 3836 __ Bind(&miss); |
| 3837 LoadIC::GenerateMiss(masm); | 3837 LoadIC::GenerateMiss(masm); |
| 3838 | 3838 |
| 3839 __ Bind(&load_smi_map); | 3839 __ Bind(&load_smi_map); |
| 3840 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3840 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3841 __ jmp(&compare_map); | 3841 __ jmp(&compare_map); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3956 scratch1, &compare_map, &load_smi_map, &try_array); | 3956 scratch1, &compare_map, &load_smi_map, &try_array); |
| 3957 | 3957 |
| 3958 // Is it a fixed array? | 3958 // Is it a fixed array? |
| 3959 __ Bind(&try_array); | 3959 __ Bind(&try_array); |
| 3960 __ Ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3960 __ Ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 3961 __ JumpIfNotRoot(scratch1, Heap::kFixedArrayMapRootIndex, ¬_array); | 3961 __ JumpIfNotRoot(scratch1, Heap::kFixedArrayMapRootIndex, ¬_array); |
| 3962 HandleArrayCases(masm, feedback, receiver_map, scratch1, x8, true, &miss); | 3962 HandleArrayCases(masm, feedback, receiver_map, scratch1, x8, true, &miss); |
| 3963 | 3963 |
| 3964 __ Bind(¬_array); | 3964 __ Bind(¬_array); |
| 3965 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, &miss); | 3965 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, &miss); |
| 3966 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3966 Code::Flags code_flags = |
| 3967 Code::ComputeHandlerFlags(Code::STORE_IC)); | 3967 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 3968 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, | 3968 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, |
| 3969 receiver, key, feedback, | 3969 receiver, key, feedback, |
| 3970 receiver_map, scratch1, x8); | 3970 receiver_map, scratch1, x8); |
| 3971 | 3971 |
| 3972 __ Bind(&miss); | 3972 __ Bind(&miss); |
| 3973 StoreIC::GenerateMiss(masm); | 3973 StoreIC::GenerateMiss(masm); |
| 3974 | 3974 |
| 3975 __ Bind(&load_smi_map); | 3975 __ Bind(&load_smi_map); |
| 3976 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3976 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3977 __ jmp(&compare_map); | 3977 __ jmp(&compare_map); |
| (...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5939 return_value_operand, NULL); | 5939 return_value_operand, NULL); |
| 5940 } | 5940 } |
| 5941 | 5941 |
| 5942 | 5942 |
| 5943 #undef __ | 5943 #undef __ |
| 5944 | 5944 |
| 5945 } // namespace internal | 5945 } // namespace internal |
| 5946 } // namespace v8 | 5946 } // namespace v8 |
| 5947 | 5947 |
| 5948 #endif // V8_TARGET_ARCH_ARM64 | 5948 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |