Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1308373003: PPC: [Interpreter] Add support for parameter variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698