Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1696743002: PPC: [runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698