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

Unified Diff: runtime/vm/aot_optimizer.cc

Issue 2761933002: Add Genericity enum in VM to distinguish how a type is uninstantiated. (Closed)
Patch Set: sync 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/constant_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/aot_optimizer.cc
diff --git a/runtime/vm/aot_optimizer.cc b/runtime/vm/aot_optimizer.cc
index cf4d90ca198338ff54cbfcf59e977e9405e62e43..7f10d520560e9f90c4b26f150deb420101fe7a94 100644
--- a/runtime/vm/aot_optimizer.cc
+++ b/runtime/vm/aot_optimizer.cc
@@ -1549,9 +1549,10 @@ void AotOptimizer::ReplaceWithInstanceOf(InstanceCallInstr* call) {
}
}
- InstanceOfInstr* instance_of =
- new (Z) InstanceOfInstr(call->token_pos(), new (Z) Value(left),
- new (Z) Value(type_args), type, call->deopt_id());
+ InstanceOfInstr* instance_of = new (Z) InstanceOfInstr(
+ call->token_pos(), new (Z) Value(left), new (Z) Value(type_args),
+ NULL, // TODO(regis): Pass function type args.
+ type, call->deopt_id());
ReplaceCall(call, instance_of);
}
@@ -1592,8 +1593,9 @@ void AotOptimizer::ReplaceWithTypeCast(InstanceCallInstr* call) {
}
}
AssertAssignableInstr* assert_as = new (Z) AssertAssignableInstr(
- call->token_pos(), new (Z) Value(left), new (Z) Value(type_args), type,
- Symbols::InTypeCast(), call->deopt_id());
+ call->token_pos(), new (Z) Value(left), new (Z) Value(type_args),
+ NULL, // TODO(regis): Pass function type arguments.
+ type, Symbols::InTypeCast(), call->deopt_id());
ReplaceCall(call, assert_as);
}
« no previous file with comments | « no previous file | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698