OLD | NEW |
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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 | 1683 |
1684 // 2. Backing store. | 1684 // 2. Backing store. |
1685 __ SmiScale(t2, a5, kPointerSizeLog2); | 1685 __ SmiScale(t2, a5, kPointerSizeLog2); |
1686 __ Daddu(t1, t1, Operand(t2)); | 1686 __ Daddu(t1, t1, Operand(t2)); |
1687 __ Daddu(t1, t1, Operand(FixedArray::kHeaderSize)); | 1687 __ Daddu(t1, t1, Operand(FixedArray::kHeaderSize)); |
1688 | 1688 |
1689 // 3. Arguments object. | 1689 // 3. Arguments object. |
1690 __ Daddu(t1, t1, Operand(Heap::kSloppyArgumentsObjectSize)); | 1690 __ Daddu(t1, t1, Operand(Heap::kSloppyArgumentsObjectSize)); |
1691 | 1691 |
1692 // Do the allocation of all three objects in one go. | 1692 // Do the allocation of all three objects in one go. |
1693 __ Allocate(t1, v0, a4, t1, &runtime, TAG_OBJECT); | 1693 __ Allocate(t1, v0, t1, a4, &runtime, TAG_OBJECT); |
1694 | 1694 |
1695 // v0 = address of new object(s) (tagged) | 1695 // v0 = address of new object(s) (tagged) |
1696 // a2 = argument count (smi-tagged) | 1696 // a2 = argument count (smi-tagged) |
1697 // Get the arguments boilerplate from the current native context into a4. | 1697 // Get the arguments boilerplate from the current native context into a4. |
1698 const int kNormalOffset = | 1698 const int kNormalOffset = |
1699 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); | 1699 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); |
1700 const int kAliasedOffset = | 1700 const int kAliasedOffset = |
1701 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX); | 1701 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX); |
1702 | 1702 |
1703 __ ld(a4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 1703 __ ld(a4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
(...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5601 MemOperand(fp, 6 * kPointerSize), NULL); | 5601 MemOperand(fp, 6 * kPointerSize), NULL); |
5602 } | 5602 } |
5603 | 5603 |
5604 | 5604 |
5605 #undef __ | 5605 #undef __ |
5606 | 5606 |
5607 } // namespace internal | 5607 } // namespace internal |
5608 } // namespace v8 | 5608 } // namespace v8 |
5609 | 5609 |
5610 #endif // V8_TARGET_ARCH_MIPS64 | 5610 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |