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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/mips64/lithium-codegen-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 1771
1772 // Do the allocation of all three objects in one go. 1772 // Do the allocation of all three objects in one go.
1773 __ Allocate(t1, v0, a3, a4, &runtime, TAG_OBJECT); 1773 __ Allocate(t1, v0, a3, a4, &runtime, TAG_OBJECT);
1774 1774
1775 // v0 = address of new object(s) (tagged) 1775 // v0 = address of new object(s) (tagged)
1776 // a2 = argument count (smi-tagged) 1776 // a2 = argument count (smi-tagged)
1777 // Get the arguments boilerplate from the current native context into a4. 1777 // Get the arguments boilerplate from the current native context into a4.
1778 const int kNormalOffset = 1778 const int kNormalOffset =
1779 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); 1779 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX);
1780 const int kAliasedOffset = 1780 const int kAliasedOffset =
1781 Context::SlotOffset(Context::ALIASED_ARGUMENTS_MAP_INDEX); 1781 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX);
1782 1782
1783 __ ld(a4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 1783 __ ld(a4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
1784 __ ld(a4, FieldMemOperand(a4, GlobalObject::kNativeContextOffset)); 1784 __ ld(a4, FieldMemOperand(a4, GlobalObject::kNativeContextOffset));
1785 Label skip2_ne, skip2_eq; 1785 Label skip2_ne, skip2_eq;
1786 __ Branch(&skip2_ne, ne, a1, Operand(zero_reg)); 1786 __ Branch(&skip2_ne, ne, a1, Operand(zero_reg));
1787 __ ld(a4, MemOperand(a4, kNormalOffset)); 1787 __ ld(a4, MemOperand(a4, kNormalOffset));
1788 __ bind(&skip2_ne); 1788 __ bind(&skip2_ne);
1789 1789
1790 __ Branch(&skip2_eq, eq, a1, Operand(zero_reg)); 1790 __ Branch(&skip2_eq, eq, a1, Operand(zero_reg));
1791 __ ld(a4, MemOperand(a4, kAliasedOffset)); 1791 __ ld(a4, MemOperand(a4, kAliasedOffset));
(...skipping 3823 matching lines...) Expand 10 before | Expand all | Expand 10 after
5615 MemOperand(fp, 6 * kPointerSize), NULL); 5615 MemOperand(fp, 6 * kPointerSize), NULL);
5616 } 5616 }
5617 5617
5618 5618
5619 #undef __ 5619 #undef __
5620 5620
5621 } // namespace internal 5621 } // namespace internal
5622 } // namespace v8 5622 } // namespace v8
5623 5623
5624 #endif // V8_TARGET_ARCH_MIPS64 5624 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698