| 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/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 4783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4794 // Will both indicate a NULL and a Smi. | 4794 // Will both indicate a NULL and a Smi. |
| 4795 __ tst(r4, Operand(kSmiTagMask)); | 4795 __ tst(r4, Operand(kSmiTagMask)); |
| 4796 __ Assert(ne, kUnexpectedInitialMapForArrayFunction); | 4796 __ Assert(ne, kUnexpectedInitialMapForArrayFunction); |
| 4797 __ CompareObjectType(r4, r4, r5, MAP_TYPE); | 4797 __ CompareObjectType(r4, r4, r5, MAP_TYPE); |
| 4798 __ Assert(eq, kUnexpectedInitialMapForArrayFunction); | 4798 __ Assert(eq, kUnexpectedInitialMapForArrayFunction); |
| 4799 | 4799 |
| 4800 // We should either have undefined in r2 or a valid AllocationSite | 4800 // We should either have undefined in r2 or a valid AllocationSite |
| 4801 __ AssertUndefinedOrAllocationSite(r2, r4); | 4801 __ AssertUndefinedOrAllocationSite(r2, r4); |
| 4802 } | 4802 } |
| 4803 | 4803 |
| 4804 // Enter the context of the Array function. |
| 4805 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
| 4806 |
| 4804 Label subclassing; | 4807 Label subclassing; |
| 4805 __ cmp(r3, r1); | 4808 __ cmp(r3, r1); |
| 4806 __ b(ne, &subclassing); | 4809 __ b(ne, &subclassing); |
| 4807 | 4810 |
| 4808 Label no_info; | 4811 Label no_info; |
| 4809 // Get the elements kind and case on that. | 4812 // Get the elements kind and case on that. |
| 4810 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); | 4813 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); |
| 4811 __ b(eq, &no_info); | 4814 __ b(eq, &no_info); |
| 4812 | 4815 |
| 4813 __ ldr(r3, FieldMemOperand(r2, AllocationSite::kTransitionInfoOffset)); | 4816 __ ldr(r3, FieldMemOperand(r2, AllocationSite::kTransitionInfoOffset)); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5382 MemOperand(fp, 6 * kPointerSize), NULL); | 5385 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5383 } | 5386 } |
| 5384 | 5387 |
| 5385 | 5388 |
| 5386 #undef __ | 5389 #undef __ |
| 5387 | 5390 |
| 5388 } // namespace internal | 5391 } // namespace internal |
| 5389 } // namespace v8 | 5392 } // namespace v8 |
| 5390 | 5393 |
| 5391 #endif // V8_TARGET_ARCH_ARM | 5394 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |