| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 // -- a2 : allocation site feedback. | 1213 // -- a2 : allocation site feedback. |
| 1214 // -- a3 : the address of the first argument to be pushed. Subsequent | 1214 // -- a3 : the address of the first argument to be pushed. Subsequent |
| 1215 // arguments should be consecutive above this, in the same order as | 1215 // arguments should be consecutive above this, in the same order as |
| 1216 // they are to be pushed onto the stack. | 1216 // they are to be pushed onto the stack. |
| 1217 // ----------------------------------- | 1217 // ----------------------------------- |
| 1218 Label stack_overflow; | 1218 Label stack_overflow; |
| 1219 | 1219 |
| 1220 // Push a slot for the receiver. | 1220 // Push a slot for the receiver. |
| 1221 __ push(zero_reg); | 1221 __ push(zero_reg); |
| 1222 | 1222 |
| 1223 Generate_StackOverflowCheck(masm, a4, a5, a6, &stack_overflow); | 1223 Generate_StackOverflowCheck(masm, a0, a5, a6, &stack_overflow); |
| 1224 | 1224 |
| 1225 // This function modifies a3, a5 and a6. | 1225 // This function modifies a3, a5 and a6. |
| 1226 Generate_InterpreterPushArgs(masm, a4, a3, a5, a6); | 1226 Generate_InterpreterPushArgs(masm, a0, a3, a5, a6); |
| 1227 | 1227 |
| 1228 // ArrayConstructor stub expects constructor in a3. Set it here. | 1228 // ArrayConstructor stub expects constructor in a3. Set it here. |
| 1229 __ mov(a3, a1); | 1229 __ mov(a3, a1); |
| 1230 | 1230 |
| 1231 ArrayConstructorStub stub(masm->isolate()); | 1231 ArrayConstructorStub stub(masm->isolate()); |
| 1232 __ TailCallStub(&stub); | 1232 __ TailCallStub(&stub); |
| 1233 | 1233 |
| 1234 __ bind(&stack_overflow); | 1234 __ bind(&stack_overflow); |
| 1235 { | 1235 { |
| 1236 __ TailCallRuntime(Runtime::kThrowStackOverflow); | 1236 __ TailCallRuntime(Runtime::kThrowStackOverflow); |
| (...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3110 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3110 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 3111 __ Jump(at); | 3111 __ Jump(at); |
| 3112 } | 3112 } |
| 3113 | 3113 |
| 3114 #undef __ | 3114 #undef __ |
| 3115 | 3115 |
| 3116 } // namespace internal | 3116 } // namespace internal |
| 3117 } // namespace v8 | 3117 } // namespace v8 |
| 3118 | 3118 |
| 3119 #endif // V8_TARGET_ARCH_MIPS64 | 3119 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |