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

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

Issue 1143003003: X87: [crankshaft] Record inlined shared function infos instead of closures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/x87/lithium-codegen-x87.cc ('k') | no next file » | 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 instr->function(), 2662 instr->function(),
2663 undefined, 2663 undefined,
2664 instr->inlining_kind()); 2664 instr->inlining_kind());
2665 // Only replay binding of arguments object if it wasn't removed from graph. 2665 // Only replay binding of arguments object if it wasn't removed from graph.
2666 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2666 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2667 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2667 inner->Bind(instr->arguments_var(), instr->arguments_object());
2668 } 2668 }
2669 inner->BindContext(instr->closure_context()); 2669 inner->BindContext(instr->closure_context());
2670 inner->set_entry(instr); 2670 inner->set_entry(instr);
2671 current_block_->UpdateEnvironment(inner); 2671 current_block_->UpdateEnvironment(inner);
2672 chunk_->AddInlinedClosure(instr->closure()); 2672 chunk_->AddInlinedFunction(instr->shared());
2673 return NULL; 2673 return NULL;
2674 } 2674 }
2675 2675
2676 2676
2677 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2677 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2678 LInstruction* pop = NULL; 2678 LInstruction* pop = NULL;
2679 2679
2680 HEnvironment* env = current_block_->last_environment(); 2680 HEnvironment* env = current_block_->last_environment();
2681 2681
2682 if (env->entry()->arguments_pushed()) { 2682 if (env->entry()->arguments_pushed()) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 LOperand* function = UseRegisterAtStart(instr->function()); 2735 LOperand* function = UseRegisterAtStart(instr->function());
2736 LAllocateBlockContext* result = 2736 LAllocateBlockContext* result =
2737 new(zone()) LAllocateBlockContext(context, function); 2737 new(zone()) LAllocateBlockContext(context, function);
2738 return MarkAsCall(DefineFixed(result, esi), instr); 2738 return MarkAsCall(DefineFixed(result, esi), instr);
2739 } 2739 }
2740 2740
2741 2741
2742 } } // namespace v8::internal 2742 } } // namespace v8::internal
2743 2743
2744 #endif // V8_TARGET_ARCH_X87 2744 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698