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

Side by Side Diff: src/arm/code-stubs-arm.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 | « include/v8.h ('k') | src/arm/lithium-codegen-arm.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 1669
1670 // Do the allocation of all three objects in one go. 1670 // Do the allocation of all three objects in one go.
1671 __ Allocate(r9, r0, r3, r4, &runtime, TAG_OBJECT); 1671 __ Allocate(r9, r0, r3, r4, &runtime, TAG_OBJECT);
1672 1672
1673 // r0 = address of new object(s) (tagged) 1673 // r0 = address of new object(s) (tagged)
1674 // r2 = argument count (smi-tagged) 1674 // r2 = argument count (smi-tagged)
1675 // Get the arguments boilerplate from the current native context into r4. 1675 // Get the arguments boilerplate from the current native context into r4.
1676 const int kNormalOffset = 1676 const int kNormalOffset =
1677 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); 1677 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX);
1678 const int kAliasedOffset = 1678 const int kAliasedOffset =
1679 Context::SlotOffset(Context::ALIASED_ARGUMENTS_MAP_INDEX); 1679 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX);
1680 1680
1681 __ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 1681 __ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
1682 __ ldr(r4, FieldMemOperand(r4, GlobalObject::kNativeContextOffset)); 1682 __ ldr(r4, FieldMemOperand(r4, GlobalObject::kNativeContextOffset));
1683 __ cmp(r1, Operand::Zero()); 1683 __ cmp(r1, Operand::Zero());
1684 __ ldr(r4, MemOperand(r4, kNormalOffset), eq); 1684 __ ldr(r4, MemOperand(r4, kNormalOffset), eq);
1685 __ ldr(r4, MemOperand(r4, kAliasedOffset), ne); 1685 __ ldr(r4, MemOperand(r4, kAliasedOffset), ne);
1686 1686
1687 // r0 = address of new object (tagged) 1687 // r0 = address of new object (tagged)
1688 // r1 = mapped parameter count (tagged) 1688 // r1 = mapped parameter count (tagged)
1689 // r2 = argument count (smi-tagged) 1689 // r2 = argument count (smi-tagged)
(...skipping 3676 matching lines...) Expand 10 before | Expand all | Expand 10 after
5366 MemOperand(fp, 6 * kPointerSize), NULL); 5366 MemOperand(fp, 6 * kPointerSize), NULL);
5367 } 5367 }
5368 5368
5369 5369
5370 #undef __ 5370 #undef __
5371 5371
5372 } // namespace internal 5372 } // namespace internal
5373 } // namespace v8 5373 } // namespace v8
5374 5374
5375 #endif // V8_TARGET_ARCH_ARM 5375 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698