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

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

Issue 1777563002: X87: [turbofan] Further fixing ES6 tail call elimination in Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/x87/macro-assembler-x87.h » ('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_X87 5 #if V8_TARGET_ARCH_X87
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 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); 1928 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset));
1929 __ mov( 1929 __ mov(
1930 caller_args_count_reg, 1930 caller_args_count_reg,
1931 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); 1931 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset));
1932 __ SmiUntag(caller_args_count_reg); 1932 __ SmiUntag(caller_args_count_reg);
1933 1933
1934 __ bind(&formal_parameter_count_loaded); 1934 __ bind(&formal_parameter_count_loaded);
1935 1935
1936 ParameterCount callee_args_count(args_reg); 1936 ParameterCount callee_args_count(args_reg);
1937 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, 1937 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2,
1938 scratch3, ReturnAddressState::kOnStack); 1938 scratch3, ReturnAddressState::kOnStack, 0);
1939 __ bind(&done); 1939 __ bind(&done);
1940 } 1940 }
1941 } // namespace 1941 } // namespace
1942 1942
1943 // static 1943 // static
1944 void Builtins::Generate_CallFunction(MacroAssembler* masm, 1944 void Builtins::Generate_CallFunction(MacroAssembler* masm,
1945 ConvertReceiverMode mode, 1945 ConvertReceiverMode mode,
1946 TailCallMode tail_call_mode) { 1946 TailCallMode tail_call_mode) {
1947 // ----------- S t a t e ------------- 1947 // ----------- S t a t e -------------
1948 // -- eax : the number of arguments (not including the receiver) 1948 // -- eax : the number of arguments (not including the receiver)
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 // And "return" to the OSR entry point of the function. 2630 // And "return" to the OSR entry point of the function.
2631 __ ret(0); 2631 __ ret(0);
2632 } 2632 }
2633 2633
2634 2634
2635 #undef __ 2635 #undef __
2636 } // namespace internal 2636 } // namespace internal
2637 } // namespace v8 2637 } // namespace v8
2638 2638
2639 #endif // V8_TARGET_ARCH_X87 2639 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698