| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 __ subi(ip, ip, Operand(kPointerSize)); | 633 __ subi(ip, ip, Operand(kPointerSize)); |
| 634 __ LoadPX(r0, MemOperand(r5, ip)); | 634 __ LoadPX(r0, MemOperand(r5, ip)); |
| 635 __ StorePX(r0, MemOperand(sp, ip)); | 635 __ StorePX(r0, MemOperand(sp, ip)); |
| 636 __ bdnz(&loop); | 636 __ bdnz(&loop); |
| 637 __ bind(&no_args); | 637 __ bind(&no_args); |
| 638 | 638 |
| 639 // Call the function. | 639 // Call the function. |
| 640 // r3: number of arguments | 640 // r3: number of arguments |
| 641 // r4: constructor function | 641 // r4: constructor function |
| 642 // r6: new target | 642 // r6: new target |
| 643 | 643 { |
| 644 ParameterCount actual(r3); | 644 ConstantPoolUnavailableScope constant_pool_unavailable(masm); |
| 645 __ InvokeFunction(r4, r6, actual, CALL_FUNCTION, | 645 ParameterCount actual(r3); |
| 646 CheckDebugStepCallWrapper()); | 646 __ InvokeFunction(r4, r6, actual, CALL_FUNCTION, |
| 647 CheckDebugStepCallWrapper()); |
| 648 } |
| 647 | 649 |
| 648 // Store offset of return address for deoptimizer. | 650 // Store offset of return address for deoptimizer. |
| 649 if (create_implicit_receiver && !is_api_function) { | 651 if (create_implicit_receiver && !is_api_function) { |
| 650 masm->isolate()->heap()->SetConstructStubInvokeDeoptPCOffset( | 652 masm->isolate()->heap()->SetConstructStubInvokeDeoptPCOffset( |
| 651 masm->pc_offset()); | 653 masm->pc_offset()); |
| 652 } | 654 } |
| 653 | 655 |
| 654 // Restore context from the frame. | 656 // Restore context from the frame. |
| 655 // r3: result | 657 // r3: result |
| 656 // sp[0]: receiver | 658 // sp[0]: receiver |
| (...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3234 __ CallRuntime(Runtime::kThrowStackOverflow); | 3236 __ CallRuntime(Runtime::kThrowStackOverflow); |
| 3235 __ bkpt(0); | 3237 __ bkpt(0); |
| 3236 } | 3238 } |
| 3237 } | 3239 } |
| 3238 | 3240 |
| 3239 #undef __ | 3241 #undef __ |
| 3240 } // namespace internal | 3242 } // namespace internal |
| 3241 } // namespace v8 | 3243 } // namespace v8 |
| 3242 | 3244 |
| 3243 #endif // V8_TARGET_ARCH_PPC | 3245 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |