| 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); |
| 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 142 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 142 ArrayConstructorStub stub(masm->isolate()); | 143 ArrayConstructorStub stub(masm->isolate()); |
| 143 __ TailCallStub(&stub); | 144 __ TailCallStub(&stub); |
| 144 } | 145 } |
| 145 | 146 |
| 146 | 147 |
| 147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { | 148 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
| 148 // ----------- S t a t e ------------- | 149 // ----------- S t a t e ------------- |
| 149 // -- a0 : number of arguments | 150 // -- a0 : number of arguments |
| 150 // -- a1 : constructor function | 151 // -- a1 : constructor function |
| (...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 __ break_(0xCC); | 1677 __ break_(0xCC); |
| 1677 } | 1678 } |
| 1678 } | 1679 } |
| 1679 | 1680 |
| 1680 | 1681 |
| 1681 #undef __ | 1682 #undef __ |
| 1682 | 1683 |
| 1683 } } // namespace v8::internal | 1684 } } // namespace v8::internal |
| 1684 | 1685 |
| 1685 #endif // V8_TARGET_ARCH_MIPS | 1686 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |