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

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

Issue 1303403004: [Interpreter] Add support for parameter variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_add_bytecodes
Patch Set: Address review comments 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 | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 // TODO(rmcilroy): List of things not currently dealt with here but done in 996 // TODO(rmcilroy): List of things not currently dealt with here but done in
997 // fullcodegen's EmitReturnSequence. 997 // fullcodegen's EmitReturnSequence.
998 // - Supporting FLAG_trace for Runtime::TraceExit. 998 // - Supporting FLAG_trace for Runtime::TraceExit.
999 // - Support profiler (specifically decrementing profiling_counter 999 // - Support profiler (specifically decrementing profiling_counter
1000 // appropriately and calling out to HandleInterrupts if necessary). 1000 // appropriately and calling out to HandleInterrupts if necessary).
1001 1001
1002 // The return value is in accumulator, which is already in r0. 1002 // The return value is in accumulator, which is already in r0.
1003 1003
1004 // Leave the frame (also dropping the register file). 1004 // Leave the frame (also dropping the register file).
1005 __ LeaveFrame(StackFrame::JAVA_SCRIPT); 1005 __ LeaveFrame(StackFrame::JAVA_SCRIPT);
1006 // Drop receiver + arguments. 1006
1007 __ Drop(1); // TODO(rmcilroy): Get number of arguments from BytecodeArray. 1007 // Drop receiver + arguments and return.
1008 __ ldr(ip, FieldMemOperand(kInterpreterBytecodeArrayRegister,
1009 BytecodeArray::kParameterSizeOffset));
1010 __ add(sp, sp, ip, LeaveCC);
1008 __ Jump(lr); 1011 __ Jump(lr);
1009 } 1012 }
1010 1013
1011 1014
1012 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 1015 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
1013 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 1016 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
1014 GenerateTailCallToReturnedCode(masm); 1017 GenerateTailCallToReturnedCode(masm);
1015 } 1018 }
1016 1019
1017 1020
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 } 1870 }
1868 } 1871 }
1869 1872
1870 1873
1871 #undef __ 1874 #undef __
1872 1875
1873 } // namespace internal 1876 } // namespace internal
1874 } // namespace v8 1877 } // namespace v8
1875 1878
1876 #endif // V8_TARGET_ARCH_ARM 1879 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698