| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4227 __ ld(a3, MemOperand(a2)); | 4227 __ ld(a3, MemOperand(a2)); |
| 4228 __ Push(a3); | 4228 __ Push(a3); |
| 4229 __ Daddu(a1, a1, Operand(-1)); | 4229 __ Daddu(a1, a1, Operand(-1)); |
| 4230 __ Branch(&loop, ne, a1, Operand(zero_reg)); | 4230 __ Branch(&loop, ne, a1, Operand(zero_reg)); |
| 4231 } | 4231 } |
| 4232 | 4232 |
| 4233 __ bind(&args_set_up); | 4233 __ bind(&args_set_up); |
| 4234 __ dsll(at, a0, kPointerSizeLog2); | 4234 __ dsll(at, a0, kPointerSizeLog2); |
| 4235 __ Daddu(at, at, Operand(sp)); | 4235 __ Daddu(at, at, Operand(sp)); |
| 4236 __ ld(a1, MemOperand(at, 0)); | 4236 __ ld(a1, MemOperand(at, 0)); |
| 4237 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 4237 | 4238 |
| 4238 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4239 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 4239 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4240 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 4240 | 4241 |
| 4241 __ Drop(1); | 4242 __ Drop(1); |
| 4242 | 4243 |
| 4243 context()->Plug(result_register()); | 4244 context()->Plug(result_register()); |
| 4244 } | 4245 } |
| 4245 | 4246 |
| 4246 | 4247 |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5449 Assembler::target_address_at(pc_immediate_load_address)) == | 5450 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5450 reinterpret_cast<uint64_t>( | 5451 reinterpret_cast<uint64_t>( |
| 5451 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5452 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5452 return OSR_AFTER_STACK_CHECK; | 5453 return OSR_AFTER_STACK_CHECK; |
| 5453 } | 5454 } |
| 5454 | 5455 |
| 5455 | 5456 |
| 5456 } } // namespace v8::internal | 5457 } } // namespace v8::internal |
| 5457 | 5458 |
| 5458 #endif // V8_TARGET_ARCH_MIPS64 | 5459 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |