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/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 | 1186 |
1187 __ bind(&no_descriptors); | 1187 __ bind(&no_descriptors); |
1188 __ Drop(1); | 1188 __ Drop(1); |
1189 __ jmp(&exit); | 1189 __ jmp(&exit); |
1190 | 1190 |
1191 // We got a fixed array in register r0. Iterate through that. | 1191 // We got a fixed array in register r0. Iterate through that. |
1192 Label non_proxy; | 1192 Label non_proxy; |
1193 __ bind(&fixed_array); | 1193 __ bind(&fixed_array); |
1194 | 1194 |
1195 __ Move(r1, FeedbackVector()); | 1195 __ Move(r1, FeedbackVector()); |
1196 __ mov(r2, Operand(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); | 1196 __ mov(r2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot))); | 1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot))); |
1198 | 1198 |
1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check | 1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object | 1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object |
1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); | 1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); |
1203 __ b(gt, &non_proxy); | 1203 __ b(gt, &non_proxy); |
1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy | 1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy |
1205 __ bind(&non_proxy); | 1205 __ bind(&non_proxy); |
1206 __ Push(r1, r0); // Smi and array | 1206 __ Push(r1, r0); // Smi and array |
(...skipping 3715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4922 | 4922 |
4923 DCHECK(interrupt_address == | 4923 DCHECK(interrupt_address == |
4924 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4924 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4925 return OSR_AFTER_STACK_CHECK; | 4925 return OSR_AFTER_STACK_CHECK; |
4926 } | 4926 } |
4927 | 4927 |
4928 | 4928 |
4929 } } // namespace v8::internal | 4929 } } // namespace v8::internal |
4930 | 4930 |
4931 #endif // V8_TARGET_ARCH_ARM | 4931 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |