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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 HEnvironment* inner = outer->CopyForInlining( 2306 HEnvironment* inner = outer->CopyForInlining(
2307 instr->closure(), instr->arguments_count(), instr->function(), undefined, 2307 instr->closure(), instr->arguments_count(), instr->function(), undefined,
2308 instr->inlining_kind(), instr->syntactic_tail_call_mode()); 2308 instr->inlining_kind(), instr->syntactic_tail_call_mode());
2309 // Only replay binding of arguments object if it wasn't removed from graph. 2309 // Only replay binding of arguments object if it wasn't removed from graph.
2310 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2310 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2311 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2311 inner->Bind(instr->arguments_var(), instr->arguments_object());
2312 } 2312 }
2313 inner->BindContext(instr->closure_context()); 2313 inner->BindContext(instr->closure_context());
2314 inner->set_entry(instr); 2314 inner->set_entry(instr);
2315 current_block_->UpdateEnvironment(inner); 2315 current_block_->UpdateEnvironment(inner);
2316 chunk_->AddInlinedFunction(instr->shared());
2317 return NULL; 2316 return NULL;
2318 } 2317 }
2319 2318
2320 2319
2321 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2320 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2322 LInstruction* pop = NULL; 2321 LInstruction* pop = NULL;
2323 2322
2324 HEnvironment* env = current_block_->last_environment(); 2323 HEnvironment* env = current_block_->last_environment();
2325 2324
2326 if (env->entry()->arguments_pushed()) { 2325 if (env->entry()->arguments_pushed()) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2362 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2361 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2363 LOperand* object = UseRegister(instr->object()); 2362 LOperand* object = UseRegister(instr->object());
2364 LOperand* index = UseTempRegister(instr->index()); 2363 LOperand* index = UseTempRegister(instr->index());
2365 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2364 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2366 LInstruction* result = DefineSameAsFirst(load); 2365 LInstruction* result = DefineSameAsFirst(load);
2367 return AssignPointerMap(result); 2366 return AssignPointerMap(result);
2368 } 2367 }
2369 2368
2370 } // namespace internal 2369 } // namespace internal
2371 } // namespace v8 2370 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698