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

Side by Side Diff: src/x64/builtins-x64.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 | « src/objects-inl.h ('k') | test/cctest/interpreter/test-bytecode-generator.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 // TODO(rmcilroy): List of things not currently dealt with here but done in 795 // TODO(rmcilroy): List of things not currently dealt with here but done in
796 // fullcodegen's EmitReturnSequence. 796 // fullcodegen's EmitReturnSequence.
797 // - Supporting FLAG_trace for Runtime::TraceExit. 797 // - Supporting FLAG_trace for Runtime::TraceExit.
798 // - Support profiler (specifically decrementing profiling_counter 798 // - Support profiler (specifically decrementing profiling_counter
799 // appropriately and calling out to HandleInterrupts if necessary). 799 // appropriately and calling out to HandleInterrupts if necessary).
800 800
801 // The return value is in accumulator, which is already in rax. 801 // The return value is in accumulator, which is already in rax.
802 802
803 // Leave the frame (also dropping the register file). 803 // Leave the frame (also dropping the register file).
804 __ leave(); 804 __ leave();
805 // Return droping receiver + arguments. 805
806 // TODO(rmcilroy): Get number of arguments from BytecodeArray. 806 // Drop receiver + arguments and return.
807 __ Ret(1 * kPointerSize, rcx); 807 __ movl(rbx, FieldOperand(kInterpreterBytecodeArrayRegister,
808 BytecodeArray::kParameterSizeOffset));
809 __ PopReturnAddressTo(rcx);
810 __ addp(rsp, rbx);
811 __ PushReturnAddressFrom(rcx);
812 __ ret(0);
808 } 813 }
809 814
810 815
811 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 816 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
812 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 817 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
813 GenerateTailCallToReturnedCode(masm); 818 GenerateTailCallToReturnedCode(masm);
814 } 819 }
815 820
816 821
817 static void CallCompileOptimized(MacroAssembler* masm, 822 static void CallCompileOptimized(MacroAssembler* masm,
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 __ ret(0); 1855 __ ret(0);
1851 } 1856 }
1852 1857
1853 1858
1854 #undef __ 1859 #undef __
1855 1860
1856 } // namespace internal 1861 } // namespace internal
1857 } // namespace v8 1862 } // namespace v8
1858 1863
1859 #endif // V8_TARGET_ARCH_X64 1864 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698