| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4225 __ lw(a3, MemOperand(a2)); | 4225 __ lw(a3, MemOperand(a2)); |
| 4226 __ Push(a3); | 4226 __ Push(a3); |
| 4227 __ Addu(a1, a1, Operand(-1)); | 4227 __ Addu(a1, a1, Operand(-1)); |
| 4228 __ Branch(&loop, ne, a1, Operand(zero_reg)); | 4228 __ Branch(&loop, ne, a1, Operand(zero_reg)); |
| 4229 } | 4229 } |
| 4230 | 4230 |
| 4231 __ bind(&args_set_up); | 4231 __ bind(&args_set_up); |
| 4232 __ sll(at, a0, kPointerSizeLog2); | 4232 __ sll(at, a0, kPointerSizeLog2); |
| 4233 __ Addu(at, at, Operand(sp)); | 4233 __ Addu(at, at, Operand(sp)); |
| 4234 __ lw(a1, MemOperand(at, 0)); | 4234 __ lw(a1, MemOperand(at, 0)); |
| 4235 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 4235 | 4236 |
| 4236 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4237 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 4237 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4238 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 4238 | 4239 |
| 4239 __ Drop(1); | 4240 __ Drop(1); |
| 4240 | 4241 |
| 4241 context()->Plug(result_register()); | 4242 context()->Plug(result_register()); |
| 4242 } | 4243 } |
| 4243 | 4244 |
| 4244 | 4245 |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5443 Assembler::target_address_at(pc_immediate_load_address)) == | 5444 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5444 reinterpret_cast<uint32_t>( | 5445 reinterpret_cast<uint32_t>( |
| 5445 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5446 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5446 return OSR_AFTER_STACK_CHECK; | 5447 return OSR_AFTER_STACK_CHECK; |
| 5447 } | 5448 } |
| 5448 | 5449 |
| 5449 | 5450 |
| 5450 } } // namespace v8::internal | 5451 } } // namespace v8::internal |
| 5451 | 5452 |
| 5452 #endif // V8_TARGET_ARCH_MIPS | 5453 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |