| 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); |
| 140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 141 ArrayConstructorStub stub(masm->isolate()); | 142 ArrayConstructorStub stub(masm->isolate()); |
| 142 __ TailCallStub(&stub); | 143 __ TailCallStub(&stub); |
| 143 } | 144 } |
| 144 | 145 |
| 145 | 146 |
| 146 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { | 147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
| 147 // ----------- S t a t e ------------- | 148 // ----------- S t a t e ------------- |
| 148 // -- a0 : number of arguments | 149 // -- a0 : number of arguments |
| 149 // -- a1 : constructor function | 150 // -- a1 : constructor function |
| (...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1685 __ break_(0xCC); | 1686 __ break_(0xCC); |
| 1686 } | 1687 } |
| 1687 } | 1688 } |
| 1688 | 1689 |
| 1689 | 1690 |
| 1690 #undef __ | 1691 #undef __ |
| 1691 | 1692 |
| 1692 } } // namespace v8::internal | 1693 } } // namespace v8::internal |
| 1693 | 1694 |
| 1694 #endif // V8_TARGET_ARCH_MIPS64 | 1695 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |