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

Unified Diff: runtime/vm/exceptions.cc

Issue 12049039: Fix source position for stack traces with optimized top function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebase Created 7 years, 11 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/deopt_instructions.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.cc
===================================================================
--- runtime/vm/exceptions.cc (revision 17754)
+++ runtime/vm/exceptions.cc (working copy)
@@ -63,9 +63,10 @@
break;
}
ASSERT(pc != 0);
- code = func.unoptimized_code();
- offset = Smi::New(pc - code.EntryPoint());
if (ShouldShowFunction(func)) {
+ code = func.unoptimized_code();
+ offset = Smi::New(pc - code.EntryPoint());
+ ASSERT(0 <= offset.Value() && offset.Value() < code.Size());
func_list.Add(func);
code_list.Add(code);
pc_offset_list.Add(offset);
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698