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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 253013006: Add flag —source-lines which emits appropriate source lines as code comments. Added token_pos to … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 35591)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -870,7 +870,8 @@
closure_call->PushArgumentAt(0)->value()->definition();
Definition* context = new LoadFieldInstr(new Value(closure),
Closure::context_offset(),
- Type::ZoneHandle());
+ Type::ZoneHandle(),
+ closure_call->token_pos());
context->set_ssa_temp_index(caller_graph()->alloc_ssa_temp_index());
context->InsertAfter(callee_entry);
StoreContextInstr* set_context =
@@ -1410,7 +1411,9 @@
cursor = AppendInstruction(cursor, redefinition);
if (inlined_variants_[i].cid == kSmiCid) {
CheckSmiInstr* check_smi =
- new CheckSmiInstr(new Value(redefinition), call_->deopt_id());
+ new CheckSmiInstr(new Value(redefinition),
+ call_->deopt_id(),
+ call_->token_pos());
check_smi->InheritDeoptTarget(call_);
cursor = AppendInstruction(cursor, check_smi);
} else {
@@ -1426,7 +1429,8 @@
CheckClassInstr* check_class =
new CheckClassInstr(new Value(redefinition),
call_->deopt_id(),
- new_checks);
+ new_checks,
+ call_->token_pos());
check_class->InheritDeoptTarget(call_);
cursor = AppendInstruction(cursor, check_class);
}
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698