| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 // static | 1006 // static |
| 1007 void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) { | 1007 void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) { |
| 1008 // ----------- S t a t e ------------- | 1008 // ----------- S t a t e ------------- |
| 1009 // -- r3 : argument count (not including receiver) | 1009 // -- r3 : argument count (not including receiver) |
| 1010 // -- r6 : new target | 1010 // -- r6 : new target |
| 1011 // -- r4 : constructor to call | 1011 // -- r4 : constructor to call |
| 1012 // -- r5 : address of the first argument | 1012 // -- r5 : address of the first argument |
| 1013 // ----------------------------------- | 1013 // ----------------------------------- |
| 1014 | 1014 |
| 1015 // Push a slot for the receiver to be constructed. | 1015 // Push a slot for the receiver to be constructed. |
| 1016 __ push(r3); | 1016 __ li(r0, Operand::Zero()); |
| 1017 __ push(r0); |
| 1017 | 1018 |
| 1018 // Push the arguments (skip if none). | 1019 // Push the arguments (skip if none). |
| 1019 Label skip; | 1020 Label skip; |
| 1020 __ cmpi(r3, Operand::Zero()); | 1021 __ cmpi(r3, Operand::Zero()); |
| 1021 __ beq(&skip); | 1022 __ beq(&skip); |
| 1022 Generate_InterpreterPushArgs(masm, r5, r3, r7); | 1023 Generate_InterpreterPushArgs(masm, r5, r3, r7); |
| 1023 __ bind(&skip); | 1024 __ bind(&skip); |
| 1024 | 1025 |
| 1025 // Call the constructor with r3, r4, and r6 unmodified. | 1026 // Call the constructor with r3, r4, and r6 unmodified. |
| 1026 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); | 1027 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2498 __ bkpt(0); | 2499 __ bkpt(0); |
| 2499 } | 2500 } |
| 2500 } | 2501 } |
| 2501 | 2502 |
| 2502 | 2503 |
| 2503 #undef __ | 2504 #undef __ |
| 2504 } // namespace internal | 2505 } // namespace internal |
| 2505 } // namespace v8 | 2506 } // namespace v8 |
| 2506 | 2507 |
| 2507 #endif // V8_TARGET_ARCH_PPC | 2508 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |