| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 // Check the marker in the calling frame. | 268 // Check the marker in the calling frame. |
| 269 __ bind(&check_frame_marker); | 269 __ bind(&check_frame_marker); |
| 270 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); | 270 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
| 271 function_in_register_a1 = false; | 271 function_in_register_a1 = false; |
| 272 | 272 |
| 273 Label non_construct_frame, done; | 273 Label non_construct_frame, done; |
| 274 __ Branch(&non_construct_frame, ne, a1, | 274 __ Branch(&non_construct_frame, ne, a1, |
| 275 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 275 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
| 276 | 276 |
| 277 __ lw(v0, | 277 __ lw(v0, MemOperand(a2, ConstructFrameConstants::kNewTargetOffset)); |
| 278 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset)); | |
| 279 __ Branch(&done); | 278 __ Branch(&done); |
| 280 | 279 |
| 281 __ bind(&non_construct_frame); | 280 __ bind(&non_construct_frame); |
| 282 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); | 281 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
| 283 __ bind(&done); | 282 __ bind(&done); |
| 284 | 283 |
| 285 SetVar(new_target_var, v0, a2, a3); | 284 SetVar(new_target_var, v0, a2, a3); |
| 286 } | 285 } |
| 287 | 286 |
| 288 Variable* arguments = scope()->arguments(); | 287 Variable* arguments = scope()->arguments(); |
| (...skipping 4766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5055 reinterpret_cast<uint32_t>( | 5054 reinterpret_cast<uint32_t>( |
| 5056 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5055 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5057 return OSR_AFTER_STACK_CHECK; | 5056 return OSR_AFTER_STACK_CHECK; |
| 5058 } | 5057 } |
| 5059 | 5058 |
| 5060 | 5059 |
| 5061 } // namespace internal | 5060 } // namespace internal |
| 5062 } // namespace v8 | 5061 } // namespace v8 |
| 5063 | 5062 |
| 5064 #endif // V8_TARGET_ARCH_MIPS | 5063 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |