| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1984 __ Push(r4, r6, r3); | 1984 __ Push(r4, r6, r3); |
| 1985 __ CallRuntime(Runtime::kCreateListFromArrayLike); | 1985 __ CallRuntime(Runtime::kCreateListFromArrayLike); |
| 1986 __ Pop(r4, r6); | 1986 __ Pop(r4, r6); |
| 1987 __ LoadP(r5, FieldMemOperand(r3, FixedArray::kLengthOffset)); | 1987 __ LoadP(r5, FieldMemOperand(r3, FixedArray::kLengthOffset)); |
| 1988 __ SmiUntag(r5); | 1988 __ SmiUntag(r5); |
| 1989 } | 1989 } |
| 1990 __ b(&done_create); | 1990 __ b(&done_create); |
| 1991 | 1991 |
| 1992 // Try to create the list from an arguments object. | 1992 // Try to create the list from an arguments object. |
| 1993 __ bind(&create_arguments); | 1993 __ bind(&create_arguments); |
| 1994 __ LoadP(r5, FieldMemOperand( | 1994 __ LoadP(r5, FieldMemOperand(r3, JSArgumentsObject::kLengthOffset)); |
| 1995 r3, JSObject::kHeaderSize + | |
| 1996 Heap::kArgumentsLengthIndex * kPointerSize)); | |
| 1997 __ LoadP(r7, FieldMemOperand(r3, JSObject::kElementsOffset)); | 1995 __ LoadP(r7, FieldMemOperand(r3, JSObject::kElementsOffset)); |
| 1998 __ LoadP(ip, FieldMemOperand(r7, FixedArray::kLengthOffset)); | 1996 __ LoadP(ip, FieldMemOperand(r7, FixedArray::kLengthOffset)); |
| 1999 __ cmp(r5, ip); | 1997 __ cmp(r5, ip); |
| 2000 __ bne(&create_runtime); | 1998 __ bne(&create_runtime); |
| 2001 __ SmiUntag(r5); | 1999 __ SmiUntag(r5); |
| 2002 __ mr(r3, r7); | 2000 __ mr(r3, r7); |
| 2003 __ b(&done_create); | 2001 __ b(&done_create); |
| 2004 | 2002 |
| 2005 // Try to create the list from a JSArray object. | 2003 // Try to create the list from a JSArray object. |
| 2006 __ bind(&create_array); | 2004 __ bind(&create_array); |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2755 __ bkpt(0); | 2753 __ bkpt(0); |
| 2756 } | 2754 } |
| 2757 } | 2755 } |
| 2758 | 2756 |
| 2759 | 2757 |
| 2760 #undef __ | 2758 #undef __ |
| 2761 } // namespace internal | 2759 } // namespace internal |
| 2762 } // namespace v8 | 2760 } // namespace v8 |
| 2763 | 2761 |
| 2764 #endif // V8_TARGET_ARCH_PPC | 2762 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |