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

Side by Side Diff: src/crankshaft/arm/lithium-arm.cc

Issue 1782743003: [crankshaft] Support inlining of function calls in tail position (in ES6 sense). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-crank-4
Patch Set: ppc, s390 and x87 ports 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 | « no previous file | src/crankshaft/arm64/lithium-arm64.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 #include "src/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2470 return AssignEnvironment( 2470 return AssignEnvironment(
2471 AssignPointerMap(new(zone()) LStackCheck(context))); 2471 AssignPointerMap(new(zone()) LStackCheck(context)));
2472 } 2472 }
2473 } 2473 }
2474 2474
2475 2475
2476 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 2476 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
2477 HEnvironment* outer = current_block_->last_environment(); 2477 HEnvironment* outer = current_block_->last_environment();
2478 outer->set_ast_id(instr->ReturnId()); 2478 outer->set_ast_id(instr->ReturnId());
2479 HConstant* undefined = graph()->GetConstantUndefined(); 2479 HConstant* undefined = graph()->GetConstantUndefined();
2480 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 2480 HEnvironment* inner = outer->CopyForInlining(
2481 instr->arguments_count(), 2481 instr->closure(), instr->arguments_count(), instr->function(), undefined,
2482 instr->function(), 2482 instr->inlining_kind(), instr->syntactic_tail_call_mode());
2483 undefined,
2484 instr->inlining_kind());
2485 // Only replay binding of arguments object if it wasn't removed from graph. 2483 // Only replay binding of arguments object if it wasn't removed from graph.
2486 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2484 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2487 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2485 inner->Bind(instr->arguments_var(), instr->arguments_object());
2488 } 2486 }
2489 inner->BindContext(instr->closure_context()); 2487 inner->BindContext(instr->closure_context());
2490 inner->set_entry(instr); 2488 inner->set_entry(instr);
2491 current_block_->UpdateEnvironment(inner); 2489 current_block_->UpdateEnvironment(inner);
2492 chunk_->AddInlinedFunction(instr->shared()); 2490 chunk_->AddInlinedFunction(instr->shared());
2493 return NULL; 2491 return NULL;
2494 } 2492 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 } 2541 }
2544 2542
2545 2543
2546 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2544 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2547 LOperand* context = UseRegisterAtStart(instr->context()); 2545 LOperand* context = UseRegisterAtStart(instr->context());
2548 return new(zone()) LStoreFrameContext(context); 2546 return new(zone()) LStoreFrameContext(context);
2549 } 2547 }
2550 2548
2551 } // namespace internal 2549 } // namespace internal
2552 } // namespace v8 2550 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698