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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 2948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2959 ParameterCount actual(argc); | 2959 ParameterCount actual(argc); |
2960 | 2960 |
2961 EmitLoadTypeFeedbackVector(masm, r2); | 2961 EmitLoadTypeFeedbackVector(masm, r2); |
2962 | 2962 |
2963 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4); | 2963 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4); |
2964 __ cmp(r1, r4); | 2964 __ cmp(r1, r4); |
2965 __ b(ne, &miss); | 2965 __ b(ne, &miss); |
2966 | 2966 |
2967 __ mov(r0, Operand(arg_count())); | 2967 __ mov(r0, Operand(arg_count())); |
2968 __ add(r4, r2, Operand::PointerOffsetFromSmiKey(r3)); | 2968 __ add(r4, r2, Operand::PointerOffsetFromSmiKey(r3)); |
2969 __ ldr(r2, FieldMemOperand(r4, FixedArray::kHeaderSize)); | 2969 __ ldr(r4, FieldMemOperand(r4, FixedArray::kHeaderSize)); |
2970 // Verify that r2 contains an AllocationSite | 2970 |
2971 __ AssertUndefinedOrAllocationSite(r2, r4); | 2971 // Verify that r4 contains an AllocationSite |
2972 __ ldr(r5, FieldMemOperand(r4, AllocationSite::kMapOffset)); | |
Toon Verwaest
2014/07/28 14:11:38
HeapObject::kMapOffset?
| |
2973 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); | |
2974 __ b(ne, &miss); | |
2975 | |
2976 __ mov(r2, r4); | |
2972 ArrayConstructorStub stub(masm->isolate(), arg_count()); | 2977 ArrayConstructorStub stub(masm->isolate(), arg_count()); |
2973 __ TailCallStub(&stub); | 2978 __ TailCallStub(&stub); |
2974 | 2979 |
2975 __ bind(&miss); | 2980 __ bind(&miss); |
2976 GenerateMiss(masm, IC::kCallIC_Customization_Miss); | 2981 GenerateMiss(masm, IC::kCallIC_Customization_Miss); |
2977 | 2982 |
2978 // The slow case, we need this no matter what to complete a call after a miss. | 2983 // The slow case, we need this no matter what to complete a call after a miss. |
2979 CallFunctionNoFeedback(masm, | 2984 CallFunctionNoFeedback(masm, |
2980 arg_count(), | 2985 arg_count(), |
2981 true, | 2986 true, |
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5064 MemOperand(fp, 6 * kPointerSize), | 5069 MemOperand(fp, 6 * kPointerSize), |
5065 NULL); | 5070 NULL); |
5066 } | 5071 } |
5067 | 5072 |
5068 | 5073 |
5069 #undef __ | 5074 #undef __ |
5070 | 5075 |
5071 } } // namespace v8::internal | 5076 } } // namespace v8::internal |
5072 | 5077 |
5073 #endif // V8_TARGET_ARCH_ARM | 5078 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |