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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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
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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2409 HEnvironment* inner = outer->CopyForInlining( 2409 HEnvironment* inner = outer->CopyForInlining(
2410 instr->closure(), instr->arguments_count(), instr->function(), undefined, 2410 instr->closure(), instr->arguments_count(), instr->function(), undefined,
2411 instr->inlining_kind(), instr->syntactic_tail_call_mode()); 2411 instr->inlining_kind(), instr->syntactic_tail_call_mode());
2412 // Only replay binding of arguments object if it wasn't removed from graph. 2412 // Only replay binding of arguments object if it wasn't removed from graph.
2413 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2413 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2414 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2414 inner->Bind(instr->arguments_var(), instr->arguments_object());
2415 } 2415 }
2416 inner->BindContext(instr->closure_context()); 2416 inner->BindContext(instr->closure_context());
2417 inner->set_entry(instr); 2417 inner->set_entry(instr);
2418 current_block_->UpdateEnvironment(inner); 2418 current_block_->UpdateEnvironment(inner);
2419 chunk_->AddInlinedFunction(instr->shared());
2420 return NULL; 2419 return NULL;
2421 } 2420 }
2422 2421
2423 2422
2424 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2423 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2425 LInstruction* pop = NULL; 2424 LInstruction* pop = NULL;
2426 2425
2427 HEnvironment* env = current_block_->last_environment(); 2426 HEnvironment* env = current_block_->last_environment();
2428 2427
2429 if (env->entry()->arguments_pushed()) { 2428 if (env->entry()->arguments_pushed()) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2467 LOperand* index = UseTempRegister(instr->index()); 2466 LOperand* index = UseTempRegister(instr->index());
2468 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2467 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2469 LInstruction* result = DefineSameAsFirst(load); 2468 LInstruction* result = DefineSameAsFirst(load);
2470 return AssignPointerMap(result); 2469 return AssignPointerMap(result);
2471 } 2470 }
2472 2471
2473 } // namespace internal 2472 } // namespace internal
2474 } // namespace v8 2473 } // namespace v8
2475 2474
2476 #endif // V8_TARGET_ARCH_X64 2475 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698