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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-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/compiler/x64/instruction-selector-x64.cc ('k') | src/ia32/builtins-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3476 __ SmiUntag(caller_args_count_reg); 3476 __ SmiUntag(caller_args_count_reg);
3477 __ jmp(&formal_parameter_count_loaded, Label::kNear); 3477 __ jmp(&formal_parameter_count_loaded, Label::kNear);
3478 3478
3479 __ bind(&no_arguments_adaptor); 3479 __ bind(&no_arguments_adaptor);
3480 // Load caller's formal parameter count. 3480 // Load caller's formal parameter count.
3481 __ mov(caller_args_count_reg, 3481 __ mov(caller_args_count_reg,
3482 Immediate(info()->literal()->parameter_count())); 3482 Immediate(info()->literal()->parameter_count()));
3483 3483
3484 __ bind(&formal_parameter_count_loaded); 3484 __ bind(&formal_parameter_count_loaded);
3485 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, 3485 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3,
3486 ReturnAddressState::kNotOnStack); 3486 ReturnAddressState::kNotOnStack, 0);
3487 Comment(";;; }"); 3487 Comment(";;; }");
3488 } 3488 }
3489 3489
3490 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { 3490 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) {
3491 HInvokeFunction* hinstr = instr->hydrogen(); 3491 HInvokeFunction* hinstr = instr->hydrogen();
3492 DCHECK(ToRegister(instr->context()).is(esi)); 3492 DCHECK(ToRegister(instr->context()).is(esi));
3493 DCHECK(ToRegister(instr->function()).is(edi)); 3493 DCHECK(ToRegister(instr->function()).is(edi));
3494 DCHECK(instr->HasPointerMap()); 3494 DCHECK(instr->HasPointerMap());
3495 3495
3496 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; 3496 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow;
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
5284 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); 5284 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5285 } 5285 }
5286 5286
5287 5287
5288 #undef __ 5288 #undef __
5289 5289
5290 } // namespace internal 5290 } // namespace internal
5291 } // namespace v8 5291 } // namespace v8
5292 5292
5293 #endif // V8_TARGET_ARCH_IA32 5293 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698