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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 | 1772 |
1773 // Do the allocation of all three objects in one go. | 1773 // Do the allocation of all three objects in one go. |
1774 __ Allocate(t5, v0, a3, t0, &runtime, TAG_OBJECT); | 1774 __ Allocate(t5, v0, a3, t0, &runtime, TAG_OBJECT); |
1775 | 1775 |
1776 // v0 = address of new object(s) (tagged) | 1776 // v0 = address of new object(s) (tagged) |
1777 // a2 = argument count (smi-tagged) | 1777 // a2 = argument count (smi-tagged) |
1778 // Get the arguments boilerplate from the current native context into t0. | 1778 // Get the arguments boilerplate from the current native context into t0. |
1779 const int kNormalOffset = | 1779 const int kNormalOffset = |
1780 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); | 1780 Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX); |
1781 const int kAliasedOffset = | 1781 const int kAliasedOffset = |
1782 Context::SlotOffset(Context::ALIASED_ARGUMENTS_MAP_INDEX); | 1782 Context::SlotOffset(Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX); |
1783 | 1783 |
1784 __ lw(t0, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 1784 __ lw(t0, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
1785 __ lw(t0, FieldMemOperand(t0, GlobalObject::kNativeContextOffset)); | 1785 __ lw(t0, FieldMemOperand(t0, GlobalObject::kNativeContextOffset)); |
1786 Label skip2_ne, skip2_eq; | 1786 Label skip2_ne, skip2_eq; |
1787 __ Branch(&skip2_ne, ne, a1, Operand(zero_reg)); | 1787 __ Branch(&skip2_ne, ne, a1, Operand(zero_reg)); |
1788 __ lw(t0, MemOperand(t0, kNormalOffset)); | 1788 __ lw(t0, MemOperand(t0, kNormalOffset)); |
1789 __ bind(&skip2_ne); | 1789 __ bind(&skip2_ne); |
1790 | 1790 |
1791 __ Branch(&skip2_eq, eq, a1, Operand(zero_reg)); | 1791 __ Branch(&skip2_eq, eq, a1, Operand(zero_reg)); |
1792 __ lw(t0, MemOperand(t0, kAliasedOffset)); | 1792 __ lw(t0, MemOperand(t0, kAliasedOffset)); |
(...skipping 3781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5574 MemOperand(fp, 6 * kPointerSize), NULL); | 5574 MemOperand(fp, 6 * kPointerSize), NULL); |
5575 } | 5575 } |
5576 | 5576 |
5577 | 5577 |
5578 #undef __ | 5578 #undef __ |
5579 | 5579 |
5580 } // namespace internal | 5580 } // namespace internal |
5581 } // namespace v8 | 5581 } // namespace v8 |
5582 | 5582 |
5583 #endif // V8_TARGET_ARCH_MIPS | 5583 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |