| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 __ SmiTst(a2, t0); | 131 __ SmiTst(a2, t0); |
| 132 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, | 132 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, |
| 133 t0, Operand(zero_reg)); | 133 t0, Operand(zero_reg)); |
| 134 __ GetObjectType(a2, a3, t0); | 134 __ GetObjectType(a2, a3, t0); |
| 135 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, | 135 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, |
| 136 t0, Operand(MAP_TYPE)); | 136 t0, Operand(MAP_TYPE)); |
| 137 } | 137 } |
| 138 | 138 |
| 139 // Run the native code for the Array function called as a normal function. | 139 // Run the native code for the Array function called as a normal function. |
| 140 // Tail call a stub. | 140 // Tail call a stub. |
| 141 __ mov(a3, a1); | |
| 142 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 143 ArrayConstructorStub stub(masm->isolate()); | 142 ArrayConstructorStub stub(masm->isolate()); |
| 144 __ TailCallStub(&stub); | 143 __ TailCallStub(&stub); |
| 145 } | 144 } |
| 146 | 145 |
| 147 | 146 |
| 148 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { | 147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
| 149 // ----------- S t a t e ------------- | 148 // ----------- S t a t e ------------- |
| 150 // -- a0 : number of arguments | 149 // -- a0 : number of arguments |
| 151 // -- a1 : constructor function | 150 // -- a1 : constructor function |
| (...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 __ break_(0xCC); | 1676 __ break_(0xCC); |
| 1678 } | 1677 } |
| 1679 } | 1678 } |
| 1680 | 1679 |
| 1681 | 1680 |
| 1682 #undef __ | 1681 #undef __ |
| 1683 | 1682 |
| 1684 } } // namespace v8::internal | 1683 } } // namespace v8::internal |
| 1685 | 1684 |
| 1686 #endif // V8_TARGET_ARCH_MIPS | 1685 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |