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

Side by Side Diff: src/ppc/code-stubs-ppc.cc

Issue 1221713003: Distinguish slow from fast sloppy arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/objects-printer.cc ('k') | src/ppc/lithium-codegen-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 1788
1789 // Do the allocation of all three objects in one go. 1789 // Do the allocation of all three objects in one go.
1790 __ Allocate(r11, r3, r6, r7, &runtime, TAG_OBJECT); 1790 __ Allocate(r11, r3, r6, r7, &runtime, TAG_OBJECT);
1791 1791
1792 // r3 = address of new object(s) (tagged) 1792 // r3 = address of new object(s) (tagged)
1793 // r5 = argument count (smi-tagged) 1793 // r5 = argument count (smi-tagged)
1794 // Get the arguments boilerplate from the current native context into r4. 1794 // Get the arguments boilerplate from the current native context into r4.
1795 const int kNormalOffset = 1795 const int kNormalOffset =
1796 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); 1796 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX);
1797 const int kAliasedOffset = 1797 const int kAliasedOffset =
1798 Context::SlotOffset(Context::ALIASED_ARGUMENTS_MAP_INDEX); 1798 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX);
1799 1799
1800 __ LoadP(r7, 1800 __ LoadP(r7,
1801 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 1801 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
1802 __ LoadP(r7, FieldMemOperand(r7, GlobalObject::kNativeContextOffset)); 1802 __ LoadP(r7, FieldMemOperand(r7, GlobalObject::kNativeContextOffset));
1803 __ cmpi(r4, Operand::Zero()); 1803 __ cmpi(r4, Operand::Zero());
1804 if (CpuFeatures::IsSupported(ISELECT)) { 1804 if (CpuFeatures::IsSupported(ISELECT)) {
1805 __ LoadP(r11, MemOperand(r7, kNormalOffset)); 1805 __ LoadP(r11, MemOperand(r7, kNormalOffset));
1806 __ LoadP(r7, MemOperand(r7, kAliasedOffset)); 1806 __ LoadP(r7, MemOperand(r7, kAliasedOffset));
1807 __ isel(eq, r7, r11, r7); 1807 __ isel(eq, r7, r11, r7);
1808 } else { 1808 } else {
(...skipping 3857 matching lines...) Expand 10 before | Expand all | Expand 10 after
5666 kStackUnwindSpace, NULL, 5666 kStackUnwindSpace, NULL,
5667 MemOperand(fp, 6 * kPointerSize), NULL); 5667 MemOperand(fp, 6 * kPointerSize), NULL);
5668 } 5668 }
5669 5669
5670 5670
5671 #undef __ 5671 #undef __
5672 } // namespace internal 5672 } // namespace internal
5673 } // namespace v8 5673 } // namespace v8
5674 5674
5675 #endif // V8_TARGET_ARCH_PPC 5675 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698