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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 2739643002: VM: Remove ZoneCompileType class. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7e88f12e77687684fab3ec84e10a51ce0aad2ac6..f7264d90ff41ef919522e2ee4018dd46cacbcf0d 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -182,7 +182,7 @@ void FlowGraphTypePropagator::SetTypeOf(Definition* def, CompileType* type) {
void FlowGraphTypePropagator::SetCid(Definition* def, intptr_t cid) {
CompileType* current = TypeOf(def);
if (current->IsNone() || (current->ToCid() != cid)) {
- SetTypeOf(def, ZoneCompileType::Wrap(CompileType::FromCid(cid)));
+ SetTypeOf(def, new CompileType(CompileType::FromCid(cid)));
}
}
@@ -275,7 +275,7 @@ void FlowGraphTypePropagator::VisitGuardFieldClass(
(current->is_nullable() && !guard->field().is_nullable())) {
const bool is_nullable =
guard->field().is_nullable() && current->is_nullable();
- SetTypeOf(def, ZoneCompileType::Wrap(CompileType(is_nullable, cid, NULL)));
+ SetTypeOf(def, new CompileType(is_nullable, cid, NULL));
}
}
@@ -283,7 +283,7 @@ void FlowGraphTypePropagator::VisitGuardFieldClass(
void FlowGraphTypePropagator::VisitAssertAssignable(
AssertAssignableInstr* instr) {
SetTypeOf(instr->value()->definition(),
- ZoneCompileType::Wrap(instr->ComputeType()));
+ new CompileType(instr->ComputeType()));
}
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698