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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 2759393005: Cleanup change. (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 | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 3c12a3c625a521852fb61fa4f38baa1e5f52fd41..65c497e51a6aa9ff4bc968c25e67dae66c334f0f 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2073,10 +2073,11 @@ Definition* AssertAssignableInstr::Canonicalize(FlowGraph* flow_graph) {
// or null and dst_type does not refer to parent function type parameters.
ConstantInstr* constant_type_args =
instantiator_type_arguments()->definition()->AsConstant();
- if (constant_type_args != NULL && !constant_type_args->value().IsNull() &&
- constant_type_args->value().IsTypeArguments()) {
- const TypeArguments& instantiator_type_args =
- TypeArguments::Cast(constant_type_args->value());
+ if (constant_type_args != NULL) {
+ ASSERT(constant_type_args->value().IsNull() ||
+ constant_type_args->value().IsTypeArguments());
+ TypeArguments& instantiator_type_args = TypeArguments::Handle();
+ instantiator_type_args ^= constant_type_args->value().raw();
Error& bound_error = Error::Handle();
AbstractType& new_dst_type =
AbstractType::Handle(dst_type().InstantiateFrom(
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698