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

Unified Diff: runtime/vm/object.cc

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/intermediate_language.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index ead0845c6bccc2b7b33f4a80feb8c4372d88f909..0dd2a0aeca730e4c76650e2d4f296a692ce930fb 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6722,7 +6722,7 @@ void Function::RestoreICDataMap(
ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data) const {
Zone* zone = Thread::Current()->zone();
const Array& saved_icd = Array::Handle(zone, ic_data_array());
- if (saved_icd.Length() == 0) {
+ if (saved_icd.IsNull() || (saved_icd.Length() == 0)) {
deopt_id_to_ic_data->Clear();
return;
}
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698