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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 1127383008: Fix CompilerStats info (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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/compiler_stats.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 45749)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -862,6 +862,9 @@
const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint()));
code.set_exception_handlers(handlers);
+ INC_STAT(isolate(), total_code_size,
+ ExceptionHandlers::InstanceSize(handlers.num_entries()));
+ INC_STAT(isolate(), total_code_size, handlers.num_entries() * sizeof(uword));
}
@@ -947,8 +950,10 @@
void FlowGraphCompiler::FinalizeStaticCallTargetsTable(const Code& code) {
ASSERT(code.static_calls_target_table() == Array::null());
- code.set_static_calls_target_table(
- Array::Handle(Array::MakeArray(static_calls_target_table_)));
+ const Array& targets =
+ Array::Handle(Array::MakeArray(static_calls_target_table_));
+ code.set_static_calls_target_table(targets);
+ INC_STAT(isolate(), total_code_size, targets.Length() * sizeof(uword));
}
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698