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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-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/compiler/x87/instruction-selector-x87.cc ('k') | src/x87/builtins-x87.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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3813 matching lines...) Expand 10 before | Expand all | Expand 10 after
3824 __ SmiUntag(caller_args_count_reg); 3824 __ SmiUntag(caller_args_count_reg);
3825 __ jmp(&formal_parameter_count_loaded, Label::kNear); 3825 __ jmp(&formal_parameter_count_loaded, Label::kNear);
3826 3826
3827 __ bind(&no_arguments_adaptor); 3827 __ bind(&no_arguments_adaptor);
3828 // Load caller's formal parameter count. 3828 // Load caller's formal parameter count.
3829 __ mov(caller_args_count_reg, 3829 __ mov(caller_args_count_reg,
3830 Immediate(info()->literal()->parameter_count())); 3830 Immediate(info()->literal()->parameter_count()));
3831 3831
3832 __ bind(&formal_parameter_count_loaded); 3832 __ bind(&formal_parameter_count_loaded);
3833 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, 3833 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3,
3834 ReturnAddressState::kNotOnStack); 3834 ReturnAddressState::kNotOnStack, 0);
3835 Comment(";;; }"); 3835 Comment(";;; }");
3836 } 3836 }
3837 3837
3838 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { 3838 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) {
3839 HInvokeFunction* hinstr = instr->hydrogen(); 3839 HInvokeFunction* hinstr = instr->hydrogen();
3840 DCHECK(ToRegister(instr->context()).is(esi)); 3840 DCHECK(ToRegister(instr->context()).is(esi));
3841 DCHECK(ToRegister(instr->function()).is(edi)); 3841 DCHECK(ToRegister(instr->function()).is(edi));
3842 DCHECK(instr->HasPointerMap()); 3842 DCHECK(instr->HasPointerMap());
3843 3843
3844 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; 3844 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow;
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
5840 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); 5840 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5841 } 5841 }
5842 5842
5843 5843
5844 #undef __ 5844 #undef __
5845 5845
5846 } // namespace internal 5846 } // namespace internal
5847 } // namespace v8 5847 } // namespace v8
5848 5848
5849 #endif // V8_TARGET_ARCH_X87 5849 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698