Chromium Code Reviews| Index: runtime/vm/flow_graph_compiler.cc |
| diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
| index ab586c9fb5834f2acecbb0fb130f4e56963ed741..16870fe7686d2f52d8d00bbe32c44b045e23301b 100644 |
| --- a/runtime/vm/flow_graph_compiler.cc |
| +++ b/runtime/vm/flow_graph_compiler.cc |
| @@ -389,15 +389,15 @@ void FlowGraphCompiler::EmitSourceLine(Instruction* instr) { |
| if ((instr->token_pos() == Scanner::kNoSourcePos) || (instr->env() == NULL)) { |
| return; |
| } |
| - const Function& function = |
| - Function::Handle(instr->env()->code().function()); |
| - const Script& s = Script::Handle(function.script()); |
| + const Script& script = Script::Handle(instr->env()->function().script()); |
|
srdjan
2015/08/26 15:43:48
zone() (and below as well)
Florian Schneider
2015/08/27 09:32:31
Done.
|
| intptr_t line_nr; |
| intptr_t column_nr; |
| - s.GetTokenLocation(instr->token_pos(), &line_nr, &column_nr); |
| - const String& line = String::Handle(s.GetLine(line_nr)); |
| + script.GetTokenLocation(instr->token_pos(), &line_nr, &column_nr); |
| + const String& line = String::Handle(script.GetLine(line_nr)); |
| assembler()->Comment("Line %" Pd " in '%s':\n %s", |
| - line_nr, function.ToFullyQualifiedCString(), line.ToCString()); |
| + line_nr, |
| + instr->env()->function().ToFullyQualifiedCString(), |
| + line.ToCString()); |
| } |