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

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

Issue 1702423002: [turbofan] Further fixing ES6 tail call elimination in Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-turbo
Patch Set: Addressing comments 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); 1902 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset));
1903 __ mov( 1903 __ mov(
1904 caller_args_count_reg, 1904 caller_args_count_reg,
1905 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); 1905 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset));
1906 __ SmiUntag(caller_args_count_reg); 1906 __ SmiUntag(caller_args_count_reg);
1907 1907
1908 __ bind(&formal_parameter_count_loaded); 1908 __ bind(&formal_parameter_count_loaded);
1909 1909
1910 ParameterCount callee_args_count(args_reg); 1910 ParameterCount callee_args_count(args_reg);
1911 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, 1911 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2,
1912 scratch3, ReturnAddressState::kOnStack); 1912 scratch3, ReturnAddressState::kOnStack, 0);
1913 __ bind(&done); 1913 __ bind(&done);
1914 } 1914 }
1915 } // namespace 1915 } // namespace
1916 1916
1917 // static 1917 // static
1918 void Builtins::Generate_CallFunction(MacroAssembler* masm, 1918 void Builtins::Generate_CallFunction(MacroAssembler* masm,
1919 ConvertReceiverMode mode, 1919 ConvertReceiverMode mode,
1920 TailCallMode tail_call_mode) { 1920 TailCallMode tail_call_mode) {
1921 // ----------- S t a t e ------------- 1921 // ----------- S t a t e -------------
1922 // -- eax : the number of arguments (not including the receiver) 1922 // -- eax : the number of arguments (not including the receiver)
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 2622
2623 __ bind(&ok); 2623 __ bind(&ok);
2624 __ ret(0); 2624 __ ret(0);
2625 } 2625 }
2626 2626
2627 #undef __ 2627 #undef __
2628 } // namespace internal 2628 } // namespace internal
2629 } // namespace v8 2629 } // namespace v8
2630 2630
2631 #endif // V8_TARGET_ARCH_IA32 2631 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698