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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(TypeFeedbackVector::MegamorphicSentinel(isolate()))); | 1196 __ mov(r2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot.ToInt()))); | 1197 int vector_index = FeedbackVector()->GetIndex(slot); |
| 1198 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(vector_index))); |
1198 | 1199 |
1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check | 1200 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object | 1201 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object |
1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1202 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); | 1203 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); |
1203 __ b(gt, &non_proxy); | 1204 __ b(gt, &non_proxy); |
1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy | 1205 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy |
1205 __ bind(&non_proxy); | 1206 __ bind(&non_proxy); |
1206 __ Push(r1, r0); // Smi and array | 1207 __ Push(r1, r0); // Smi and array |
1207 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset)); | 1208 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset)); |
(...skipping 4054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5262 | 5263 |
5263 DCHECK(interrupt_address == | 5264 DCHECK(interrupt_address == |
5264 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5265 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5265 return OSR_AFTER_STACK_CHECK; | 5266 return OSR_AFTER_STACK_CHECK; |
5266 } | 5267 } |
5267 | 5268 |
5268 | 5269 |
5269 } } // namespace v8::internal | 5270 } } // namespace v8::internal |
5270 | 5271 |
5271 #endif // V8_TARGET_ARCH_ARM | 5272 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |