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

Unified Diff: runtime/vm/intermediate_language.h

Issue 1149713002: With --noopt run unoptimized code through optimizer, more optimizations can be done later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: m 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/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 1216a6ad5ed02ca33b40921d1b464b18b9f0f72d..c9436800f88e6818215170134db905fc7623ed6d 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -3191,7 +3191,9 @@ class StaticCallInstr : public TemplateDefinition<0, Throws> {
return (*arguments_)[index];
}
- virtual intptr_t CallCount() const { return ic_data()->AggregateCount(); }
+ virtual intptr_t CallCount() const {
+ return ic_data() == NULL ? 0 : ic_data()->AggregateCount();
+ }
virtual void PrintOperandsTo(BufferFormatter* f) const;
@@ -8044,7 +8046,6 @@ class Environment : public ZoneAllocated {
deopt_id_(deopt_id),
parsed_function_(parsed_function),
outer_(outer) {
- ASSERT(!parsed_function_.code().IsNull());
}
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698