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

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
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 45719)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -864,6 +864,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));
}
@@ -949,8 +952,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));
}

Powered by Google App Engine
This is Rietveld 408576698