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

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

Issue 1468073004: Reshuffle registers in JSConstructStub to avoid trashing costructor and new.target on fast path (so… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/arm/builtins-arm.cc ('k') | src/arm/macro-assembler-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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 __ add(r9, r9, Operand(kParameterMapHeaderSize), LeaveCC, ne); 1583 __ add(r9, r9, Operand(kParameterMapHeaderSize), LeaveCC, ne);
1584 1584
1585 // 2. Backing store. 1585 // 2. Backing store.
1586 __ add(r9, r9, Operand(r5, LSL, 1)); 1586 __ add(r9, r9, Operand(r5, LSL, 1));
1587 __ add(r9, r9, Operand(FixedArray::kHeaderSize)); 1587 __ add(r9, r9, Operand(FixedArray::kHeaderSize));
1588 1588
1589 // 3. Arguments object. 1589 // 3. Arguments object.
1590 __ add(r9, r9, Operand(Heap::kSloppyArgumentsObjectSize)); 1590 __ add(r9, r9, Operand(Heap::kSloppyArgumentsObjectSize));
1591 1591
1592 // Do the allocation of all three objects in one go. 1592 // Do the allocation of all three objects in one go.
1593 __ Allocate(r9, r0, r4, r9, &runtime, TAG_OBJECT); 1593 __ Allocate(r9, r0, r9, r4, &runtime, TAG_OBJECT);
1594 1594
1595 // r0 = address of new object(s) (tagged) 1595 // r0 = address of new object(s) (tagged)
1596 // r2 = argument count (smi-tagged) 1596 // r2 = argument count (smi-tagged)
1597 // Get the arguments boilerplate from the current native context into r4. 1597 // Get the arguments boilerplate from the current native context into r4.
1598 const int kNormalOffset = 1598 const int kNormalOffset =
1599 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); 1599 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX);
1600 const int kAliasedOffset = 1600 const int kAliasedOffset =
1601 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX); 1601 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX);
1602 1602
1603 __ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 1603 __ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
(...skipping 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after
5372 MemOperand(fp, 6 * kPointerSize), NULL); 5372 MemOperand(fp, 6 * kPointerSize), NULL);
5373 } 5373 }
5374 5374
5375 5375
5376 #undef __ 5376 #undef __
5377 5377
5378 } // namespace internal 5378 } // namespace internal
5379 } // namespace v8 5379 } // namespace v8
5380 5380
5381 #endif // V8_TARGET_ARCH_ARM 5381 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698