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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 1325373004: More cleanups for background compilation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 3 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_type_propagator.cc
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc
index b0808ace80e076b85b0d93210fd8144d1c2c3a19..c80005dd942637abfbc9f28b6202c919d130395a 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -462,9 +462,10 @@ void CompileType::Union(CompileType* other) {
const AbstractType* compile_type = ToAbstractType();
const AbstractType* other_compile_type = other->ToAbstractType();
- if (compile_type->IsMoreSpecificThan(*other_compile_type, NULL)) {
+ if (compile_type->IsMoreSpecificThan(*other_compile_type, NULL, Heap::kOld)) {
type_ = other_compile_type;
- } else if (other_compile_type->IsMoreSpecificThan(*compile_type, NULL)) {
+ } else if (other_compile_type->
+ IsMoreSpecificThan(*compile_type, NULL, Heap::kOld)) {
// Nothing to do.
} else {
// Can't unify.
@@ -659,7 +660,7 @@ bool CompileType::CanComputeIsInstanceOf(const AbstractType& type,
return false;
}
- *is_instance = compile_type.IsMoreSpecificThan(type, NULL);
+ *is_instance = compile_type.IsMoreSpecificThan(type, NULL, Heap::kOld);
return *is_instance;
}
@@ -674,7 +675,7 @@ bool CompileType::IsMoreSpecificThan(const AbstractType& other) {
return IsNull();
}
- return ToAbstractType()->IsMoreSpecificThan(other, NULL);
+ return ToAbstractType()->IsMoreSpecificThan(other, NULL, Heap::kOld);
}
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698