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

Side by Side Diff: src/mips64/lithium-mips64.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/mips64/lithium-codegen-mips64.cc ('k') | src/ppc/lithium-codegen-ppc.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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 instr->function(), 2543 instr->function(),
2544 undefined, 2544 undefined,
2545 instr->inlining_kind()); 2545 instr->inlining_kind());
2546 // Only replay binding of arguments object if it wasn't removed from graph. 2546 // Only replay binding of arguments object if it wasn't removed from graph.
2547 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2547 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2548 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2548 inner->Bind(instr->arguments_var(), instr->arguments_object());
2549 } 2549 }
2550 inner->BindContext(instr->closure_context()); 2550 inner->BindContext(instr->closure_context());
2551 inner->set_entry(instr); 2551 inner->set_entry(instr);
2552 current_block_->UpdateEnvironment(inner); 2552 current_block_->UpdateEnvironment(inner);
2553 chunk_->AddInlinedClosure(instr->closure()); 2553 chunk_->AddInlinedFunction(instr->shared());
2554 return NULL; 2554 return NULL;
2555 } 2555 }
2556 2556
2557 2557
2558 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2558 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2559 LInstruction* pop = NULL; 2559 LInstruction* pop = NULL;
2560 2560
2561 HEnvironment* env = current_block_->last_environment(); 2561 HEnvironment* env = current_block_->last_environment();
2562 2562
2563 if (env->entry()->arguments_pushed()) { 2563 if (env->entry()->arguments_pushed()) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2616 LOperand* function = UseRegisterAtStart(instr->function()); 2616 LOperand* function = UseRegisterAtStart(instr->function());
2617 LAllocateBlockContext* result = 2617 LAllocateBlockContext* result =
2618 new(zone()) LAllocateBlockContext(context, function); 2618 new(zone()) LAllocateBlockContext(context, function);
2619 return MarkAsCall(DefineFixed(result, cp), instr); 2619 return MarkAsCall(DefineFixed(result, cp), instr);
2620 } 2620 }
2621 2621
2622 2622
2623 } } // namespace v8::internal 2623 } } // namespace v8::internal
2624 2624
2625 #endif // V8_TARGET_ARCH_MIPS64 2625 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698