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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 // TODO(rmcilroy): List of things not currently dealt with here but done in | 984 // TODO(rmcilroy): List of things not currently dealt with here but done in |
985 // fullcodegen's EmitReturnSequence. | 985 // fullcodegen's EmitReturnSequence. |
986 // - Supporting FLAG_trace for Runtime::TraceExit. | 986 // - Supporting FLAG_trace for Runtime::TraceExit. |
987 // - Support profiler (specifically decrementing profiling_counter | 987 // - Support profiler (specifically decrementing profiling_counter |
988 // appropriately and calling out to HandleInterrupts if necessary). | 988 // appropriately and calling out to HandleInterrupts if necessary). |
989 | 989 |
990 // The return value is in accumulator, which is already in r3. | 990 // The return value is in accumulator, which is already in r3. |
991 | 991 |
992 // Leave the frame (also dropping the register file). | 992 // Leave the frame (also dropping the register file). |
993 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 993 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
994 // Drop receiver + arguments. | 994 |
995 __ Drop(1); // TODO(rmcilroy): Get number of arguments from BytecodeArray. | 995 // Drop receiver + arguments and return. |
| 996 __ lwz(r0, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
| 997 BytecodeArray::kParameterSizeOffset)); |
| 998 __ add(sp, sp, r0); |
996 __ blr(); | 999 __ blr(); |
997 } | 1000 } |
998 | 1001 |
999 | 1002 |
1000 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 1003 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
1001 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 1004 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
1002 GenerateTailCallToReturnedCode(masm); | 1005 GenerateTailCallToReturnedCode(masm); |
1003 } | 1006 } |
1004 | 1007 |
1005 | 1008 |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 __ bkpt(0); | 1928 __ bkpt(0); |
1926 } | 1929 } |
1927 } | 1930 } |
1928 | 1931 |
1929 | 1932 |
1930 #undef __ | 1933 #undef __ |
1931 } // namespace internal | 1934 } // namespace internal |
1932 } // namespace v8 | 1935 } // namespace v8 |
1933 | 1936 |
1934 #endif // V8_TARGET_ARCH_PPC | 1937 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |