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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10832292: Reduce space used for stackmaps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restore inadvertently deleted code. Created 8 years, 4 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
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 28b4a649502b0a875866fe37351f599d16bf778b..ebfde00c1d249c1b7a0f87e8aaa4553e76e40e8f 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -87,7 +87,7 @@ FlowGraphCompiler::FlowGraphCompiler(
current_block_(NULL),
exception_handlers_list_(NULL),
pc_descriptors_list_(NULL),
- stackmap_table_builder_(is_ssa ? new StackmapTableBuilder() : NULL),
+ stackmap_table_builder_(NULL),
block_info_(block_order.length()),
deopt_stubs_(),
object_table_(GrowableObjectArray::Handle(GrowableObjectArray::New())),
@@ -102,6 +102,9 @@ FlowGraphCompiler::FlowGraphCompiler(
parallel_move_resolver_(this) {
ASSERT(assembler != NULL);
ASSERT(is_optimizing_ || !is_ssa_);
+ if (is_ssa_) {
+ stackmap_table_builder_ = new StackmapTableBuilder(StackSize());
+ }
}

Powered by Google App Engine
This is Rietveld 408576698