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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.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_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after
2629 instr->function(), 2629 instr->function(),
2630 undefined, 2630 undefined,
2631 instr->inlining_kind()); 2631 instr->inlining_kind());
2632 // Only replay binding of arguments object if it wasn't removed from graph. 2632 // Only replay binding of arguments object if it wasn't removed from graph.
2633 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2633 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2634 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2634 inner->Bind(instr->arguments_var(), instr->arguments_object());
2635 } 2635 }
2636 inner->BindContext(instr->closure_context()); 2636 inner->BindContext(instr->closure_context());
2637 inner->set_entry(instr); 2637 inner->set_entry(instr);
2638 current_block_->UpdateEnvironment(inner); 2638 current_block_->UpdateEnvironment(inner);
2639 chunk_->AddInlinedClosure(instr->closure()); 2639 chunk_->AddInlinedFunction(instr->shared());
2640 return NULL; 2640 return NULL;
2641 } 2641 }
2642 2642
2643 2643
2644 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2644 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2645 LInstruction* pop = NULL; 2645 LInstruction* pop = NULL;
2646 2646
2647 HEnvironment* env = current_block_->last_environment(); 2647 HEnvironment* env = current_block_->last_environment();
2648 2648
2649 if (env->entry()->arguments_pushed()) { 2649 if (env->entry()->arguments_pushed()) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2703 LOperand* function = UseRegisterAtStart(instr->function()); 2703 LOperand* function = UseRegisterAtStart(instr->function());
2704 LAllocateBlockContext* result = 2704 LAllocateBlockContext* result =
2705 new(zone()) LAllocateBlockContext(context, function); 2705 new(zone()) LAllocateBlockContext(context, function);
2706 return MarkAsCall(DefineFixed(result, rsi), instr); 2706 return MarkAsCall(DefineFixed(result, rsi), instr);
2707 } 2707 }
2708 2708
2709 2709
2710 } } // namespace v8::internal 2710 } } // namespace v8::internal
2711 2711
2712 #endif // V8_TARGET_ARCH_X64 2712 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698