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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 __ SmiTst(a2, a4); | 130 __ SmiTst(a2, a4); |
131 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, | 131 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, |
132 a4, Operand(zero_reg)); | 132 a4, Operand(zero_reg)); |
133 __ GetObjectType(a2, a3, a4); | 133 __ GetObjectType(a2, a3, a4); |
134 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, | 134 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, |
135 a4, Operand(MAP_TYPE)); | 135 a4, Operand(MAP_TYPE)); |
136 } | 136 } |
137 | 137 |
138 // Run the native code for the Array function called as a normal function. | 138 // Run the native code for the Array function called as a normal function. |
139 // Tail call a stub. | 139 // Tail call a stub. |
140 __ mov(a3, a1); | |
141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
142 ArrayConstructorStub stub(masm->isolate()); | 141 ArrayConstructorStub stub(masm->isolate()); |
143 __ TailCallStub(&stub); | 142 __ TailCallStub(&stub); |
144 } | 143 } |
145 | 144 |
146 | 145 |
147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { | 146 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
148 // ----------- S t a t e ------------- | 147 // ----------- S t a t e ------------- |
149 // -- a0 : number of arguments | 148 // -- a0 : number of arguments |
150 // -- a1 : constructor function | 149 // -- a1 : constructor function |
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 __ break_(0xCC); | 1685 __ break_(0xCC); |
1687 } | 1686 } |
1688 } | 1687 } |
1689 | 1688 |
1690 | 1689 |
1691 #undef __ | 1690 #undef __ |
1692 | 1691 |
1693 } } // namespace v8::internal | 1692 } } // namespace v8::internal |
1694 | 1693 |
1695 #endif // V8_TARGET_ARCH_MIPS64 | 1694 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |