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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 HEnvironment* inner = outer->CopyForInlining( 2289 HEnvironment* inner = outer->CopyForInlining(
2290 instr->closure(), instr->arguments_count(), instr->function(), undefined, 2290 instr->closure(), instr->arguments_count(), instr->function(), undefined,
2291 instr->inlining_kind(), instr->syntactic_tail_call_mode()); 2291 instr->inlining_kind(), instr->syntactic_tail_call_mode());
2292 // Only replay binding of arguments object if it wasn't removed from graph. 2292 // Only replay binding of arguments object if it wasn't removed from graph.
2293 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { 2293 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) {
2294 inner->Bind(instr->arguments_var(), instr->arguments_object()); 2294 inner->Bind(instr->arguments_var(), instr->arguments_object());
2295 } 2295 }
2296 inner->BindContext(instr->closure_context()); 2296 inner->BindContext(instr->closure_context());
2297 inner->set_entry(instr); 2297 inner->set_entry(instr);
2298 current_block_->UpdateEnvironment(inner); 2298 current_block_->UpdateEnvironment(inner);
2299 chunk_->AddInlinedFunction(instr->shared());
2300 return NULL; 2299 return NULL;
2301 } 2300 }
2302 2301
2303 2302
2304 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2303 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2305 LInstruction* pop = NULL; 2304 LInstruction* pop = NULL;
2306 2305
2307 HEnvironment* env = current_block_->last_environment(); 2306 HEnvironment* env = current_block_->last_environment();
2308 2307
2309 if (env->entry()->arguments_pushed()) { 2308 if (env->entry()->arguments_pushed()) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 LOperand* index = UseTempRegister(instr->index()); 2345 LOperand* index = UseTempRegister(instr->index());
2347 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2346 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2348 LInstruction* result = DefineSameAsFirst(load); 2347 LInstruction* result = DefineSameAsFirst(load);
2349 return AssignPointerMap(result); 2348 return AssignPointerMap(result);
2350 } 2349 }
2351 2350
2352 } // namespace internal 2351 } // namespace internal
2353 } // namespace v8 2352 } // namespace v8
2354 2353
2355 #endif // V8_TARGET_ARCH_MIPS64 2354 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698