| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 __ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); | 274 __ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
| 275 | 275 |
| 276 // Check the marker in the calling frame. | 276 // Check the marker in the calling frame. |
| 277 __ bind(&check_frame_marker); | 277 __ bind(&check_frame_marker); |
| 278 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); | 278 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
| 279 | 279 |
| 280 Label non_construct_frame, done; | 280 Label non_construct_frame, done; |
| 281 __ Branch(&non_construct_frame, ne, a1, | 281 __ Branch(&non_construct_frame, ne, a1, |
| 282 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 282 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
| 283 | 283 |
| 284 __ lw(v0, MemOperand(a2, StandardFrameConstants::kExpressionsOffset - | 284 __ lw(v0, |
| 285 2 * kPointerSize)); | 285 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset)); |
| 286 __ Branch(&done); | 286 __ Branch(&done); |
| 287 | 287 |
| 288 __ bind(&non_construct_frame); | 288 __ bind(&non_construct_frame); |
| 289 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); | 289 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
| 290 __ bind(&done); | 290 __ bind(&done); |
| 291 | 291 |
| 292 SetVar(new_target_var, v0, a2, a3); | 292 SetVar(new_target_var, v0, a2, a3); |
| 293 } | 293 } |
| 294 | 294 |
| 295 // Possibly allocate RestParameters | 295 // Possibly allocate RestParameters |
| (...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5572 reinterpret_cast<uint32_t>( | 5572 reinterpret_cast<uint32_t>( |
| 5573 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5573 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5574 return OSR_AFTER_STACK_CHECK; | 5574 return OSR_AFTER_STACK_CHECK; |
| 5575 } | 5575 } |
| 5576 | 5576 |
| 5577 | 5577 |
| 5578 } // namespace internal | 5578 } // namespace internal |
| 5579 } // namespace v8 | 5579 } // namespace v8 |
| 5580 | 5580 |
| 5581 #endif // V8_TARGET_ARCH_MIPS | 5581 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |