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/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2711 __ ldr(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); | 2711 __ ldr(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); |
2712 __ ldr(scratch2, NativeContextMemOperand()); | 2712 __ ldr(scratch2, NativeContextMemOperand()); |
2713 __ ldr(scratch2, | 2713 __ ldr(scratch2, |
2714 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); | 2714 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); |
2715 __ cmp(scratch, scratch2); | 2715 __ cmp(scratch, scratch2); |
2716 __ b(ne, &runtime_call); | 2716 __ b(ne, &runtime_call); |
2717 | 2717 |
2718 // Check that the ArrayPrototype hasn't been modified in a way that would | 2718 // Check that the ArrayPrototype hasn't been modified in a way that would |
2719 // affect iteration. | 2719 // affect iteration. |
2720 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); | 2720 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); |
2721 __ ldr(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); | 2721 __ ldr(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset)); |
2722 __ cmp(scratch, Operand(Smi::FromInt(Isolate::kProtectorValid))); | 2722 __ cmp(scratch, Operand(Smi::FromInt(Isolate::kProtectorValid))); |
2723 __ b(ne, &runtime_call); | 2723 __ b(ne, &runtime_call); |
2724 | 2724 |
2725 // Check that the map of the initial array iterator hasn't changed. | 2725 // Check that the map of the initial array iterator hasn't changed. |
2726 __ ldr(scratch2, NativeContextMemOperand()); | 2726 __ ldr(scratch2, NativeContextMemOperand()); |
2727 __ ldr(scratch, | 2727 __ ldr(scratch, |
2728 ContextMemOperand(scratch2, | 2728 ContextMemOperand(scratch2, |
2729 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); | 2729 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); |
2730 __ ldr(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); | 2730 __ ldr(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); |
2731 __ ldr(scratch2, | 2731 __ ldr(scratch2, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3122 __ bkpt(0); | 3122 __ bkpt(0); |
3123 } | 3123 } |
3124 } | 3124 } |
3125 | 3125 |
3126 #undef __ | 3126 #undef __ |
3127 | 3127 |
3128 } // namespace internal | 3128 } // namespace internal |
3129 } // namespace v8 | 3129 } // namespace v8 |
3130 | 3130 |
3131 #endif // V8_TARGET_ARCH_ARM | 3131 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |