| 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 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1942 __ Push(r1, r3, r0); | 1942 __ Push(r1, r3, r0); |
| 1943 __ CallRuntime(Runtime::kCreateListFromArrayLike); | 1943 __ CallRuntime(Runtime::kCreateListFromArrayLike); |
| 1944 __ Pop(r1, r3); | 1944 __ Pop(r1, r3); |
| 1945 __ ldr(r2, FieldMemOperand(r0, FixedArray::kLengthOffset)); | 1945 __ ldr(r2, FieldMemOperand(r0, FixedArray::kLengthOffset)); |
| 1946 __ SmiUntag(r2); | 1946 __ SmiUntag(r2); |
| 1947 } | 1947 } |
| 1948 __ jmp(&done_create); | 1948 __ jmp(&done_create); |
| 1949 | 1949 |
| 1950 // Try to create the list from an arguments object. | 1950 // Try to create the list from an arguments object. |
| 1951 __ bind(&create_arguments); | 1951 __ bind(&create_arguments); |
| 1952 __ ldr(r2, | 1952 __ ldr(r2, FieldMemOperand(r0, JSArgumentsObject::kLengthOffset)); |
| 1953 FieldMemOperand(r0, JSObject::kHeaderSize + | |
| 1954 Heap::kArgumentsLengthIndex * kPointerSize)); | |
| 1955 __ ldr(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); | 1953 __ ldr(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); |
| 1956 __ ldr(ip, FieldMemOperand(r4, FixedArray::kLengthOffset)); | 1954 __ ldr(ip, FieldMemOperand(r4, FixedArray::kLengthOffset)); |
| 1957 __ cmp(r2, ip); | 1955 __ cmp(r2, ip); |
| 1958 __ b(ne, &create_runtime); | 1956 __ b(ne, &create_runtime); |
| 1959 __ SmiUntag(r2); | 1957 __ SmiUntag(r2); |
| 1960 __ mov(r0, r4); | 1958 __ mov(r0, r4); |
| 1961 __ b(&done_create); | 1959 __ b(&done_create); |
| 1962 | 1960 |
| 1963 // Try to create the list from a JSArray object. | 1961 // Try to create the list from a JSArray object. |
| 1964 __ bind(&create_array); | 1962 __ bind(&create_array); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2683 } | 2681 } |
| 2684 } | 2682 } |
| 2685 | 2683 |
| 2686 | 2684 |
| 2687 #undef __ | 2685 #undef __ |
| 2688 | 2686 |
| 2689 } // namespace internal | 2687 } // namespace internal |
| 2690 } // namespace v8 | 2688 } // namespace v8 |
| 2691 | 2689 |
| 2692 #endif // V8_TARGET_ARCH_ARM | 2690 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |