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

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

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

Powered by Google App Engine
This is Rietveld 408576698