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 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 // Check the marker in the calling frame. | 266 // Check the marker in the calling frame. |
267 __ bind(&check_frame_marker); | 267 __ bind(&check_frame_marker); |
268 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); | 268 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
269 function_in_register_a1 = false; | 269 function_in_register_a1 = false; |
270 | 270 |
271 Label non_construct_frame, done; | 271 Label non_construct_frame, done; |
272 __ Branch(&non_construct_frame, ne, a1, | 272 __ Branch(&non_construct_frame, ne, a1, |
273 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 273 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
274 | 274 |
275 __ ld(v0, | 275 __ ld(v0, MemOperand(a2, ConstructFrameConstants::kNewTargetOffset)); |
276 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset)); | |
277 __ Branch(&done); | 276 __ Branch(&done); |
278 | 277 |
279 __ bind(&non_construct_frame); | 278 __ bind(&non_construct_frame); |
280 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); | 279 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
281 __ bind(&done); | 280 __ bind(&done); |
282 | 281 |
283 SetVar(new_target_var, v0, a2, a3); | 282 SetVar(new_target_var, v0, a2, a3); |
284 } | 283 } |
285 | 284 |
286 Variable* arguments = scope()->arguments(); | 285 Variable* arguments = scope()->arguments(); |
(...skipping 4776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5063 reinterpret_cast<uint64_t>( | 5062 reinterpret_cast<uint64_t>( |
5064 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5063 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5065 return OSR_AFTER_STACK_CHECK; | 5064 return OSR_AFTER_STACK_CHECK; |
5066 } | 5065 } |
5067 | 5066 |
5068 | 5067 |
5069 } // namespace internal | 5068 } // namespace internal |
5070 } // namespace v8 | 5069 } // namespace v8 |
5071 | 5070 |
5072 #endif // V8_TARGET_ARCH_MIPS64 | 5071 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |