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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 __ ld(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); | 270 __ ld(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
271 | 271 |
272 // Check the marker in the calling frame. | 272 // Check the marker in the calling frame. |
273 __ bind(&check_frame_marker); | 273 __ bind(&check_frame_marker); |
274 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); | 274 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
275 | 275 |
276 Label non_construct_frame, done; | 276 Label non_construct_frame, done; |
277 __ Branch(&non_construct_frame, ne, a1, | 277 __ Branch(&non_construct_frame, ne, a1, |
278 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 278 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
279 | 279 |
280 __ ld(v0, MemOperand(a2, StandardFrameConstants::kExpressionsOffset - | 280 __ ld(v0, |
281 2 * kPointerSize)); | 281 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset)); |
282 __ Branch(&done); | 282 __ Branch(&done); |
283 | 283 |
284 __ bind(&non_construct_frame); | 284 __ bind(&non_construct_frame); |
285 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); | 285 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
286 __ bind(&done); | 286 __ bind(&done); |
287 | 287 |
288 SetVar(new_target_var, v0, a2, a3); | 288 SetVar(new_target_var, v0, a2, a3); |
289 } | 289 } |
290 | 290 |
291 // Possibly allocate RestParameters | 291 // Possibly allocate RestParameters |
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5580 reinterpret_cast<uint64_t>( | 5580 reinterpret_cast<uint64_t>( |
5581 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5581 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5582 return OSR_AFTER_STACK_CHECK; | 5582 return OSR_AFTER_STACK_CHECK; |
5583 } | 5583 } |
5584 | 5584 |
5585 | 5585 |
5586 } // namespace internal | 5586 } // namespace internal |
5587 } // namespace v8 | 5587 } // namespace v8 |
5588 | 5588 |
5589 #endif // V8_TARGET_ARCH_MIPS64 | 5589 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |