| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 __ bne(&skip); | 269 __ bne(&skip); |
| 270 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset)); | 270 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset)); |
| 271 __ bind(&skip); | 271 __ bind(&skip); |
| 272 | 272 |
| 273 // Check the marker in the calling frame. | 273 // Check the marker in the calling frame. |
| 274 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset)); | 274 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset)); |
| 275 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0); | 275 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0); |
| 276 Label non_construct_frame, done; | 276 Label non_construct_frame, done; |
| 277 | 277 |
| 278 __ bne(&non_construct_frame); | 278 __ bne(&non_construct_frame); |
| 279 __ LoadP(r3, MemOperand(r5, StandardFrameConstants::kExpressionsOffset - | 279 __ LoadP(r3, MemOperand( |
| 280 2 * kPointerSize)); | 280 r5, ConstructFrameConstants::kOriginalConstructorOffset)); |
| 281 __ b(&done); | 281 __ b(&done); |
| 282 | 282 |
| 283 __ bind(&non_construct_frame); | 283 __ bind(&non_construct_frame); |
| 284 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); | 284 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); |
| 285 __ bind(&done); | 285 __ bind(&done); |
| 286 | 286 |
| 287 SetVar(new_target_var, r3, r5, r6); | 287 SetVar(new_target_var, r3, r5, r6); |
| 288 } | 288 } |
| 289 | 289 |
| 290 // Possibly allocate RestParameters | 290 // Possibly allocate RestParameters |
| (...skipping 5300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5591 return ON_STACK_REPLACEMENT; | 5591 return ON_STACK_REPLACEMENT; |
| 5592 } | 5592 } |
| 5593 | 5593 |
| 5594 DCHECK(interrupt_address == | 5594 DCHECK(interrupt_address == |
| 5595 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5595 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5596 return OSR_AFTER_STACK_CHECK; | 5596 return OSR_AFTER_STACK_CHECK; |
| 5597 } | 5597 } |
| 5598 } // namespace internal | 5598 } // namespace internal |
| 5599 } // namespace v8 | 5599 } // namespace v8 |
| 5600 #endif // V8_TARGET_ARCH_PPC | 5600 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |