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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2796993002: Rename dart::Genericity::kClass to dart::Genericity::kCurrentClass to avoid (Closed)
Patch Set: Created 3 years, 8 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/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 46aeb72b2d2a968a766aca48655943621ce10861..9c3323befaff4982746299c4b720d1bd4cba8aae 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -1227,7 +1227,7 @@ void ValueGraphVisitor::VisitTypeNode(TypeNode* node) {
}
const TokenPosition token_pos = node->token_pos();
Value* instantiator_type_arguments = NULL;
- if (type.IsInstantiated(kClass)) {
+ if (type.IsInstantiated(kCurrentClass)) {
instantiator_type_arguments = BuildNullValue(token_pos);
} else {
instantiator_type_arguments = BuildInstantiatorTypeArguments(token_pos);
@@ -1421,7 +1421,7 @@ void ValueGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) {
PushArgumentInstr* EffectGraphVisitor::PushInstantiatorTypeArguments(
const AbstractType& type,
TokenPosition token_pos) {
- if (type.IsInstantiated(kClass)) {
+ if (type.IsInstantiated(kCurrentClass)) {
return PushArgument(BuildNullValue(token_pos));
} else {
Value* instantiator_type_args = BuildInstantiatorTypeArguments(token_pos);
@@ -1457,7 +1457,7 @@ AssertAssignableInstr* EffectGraphVisitor::BuildAssertAssignable(
// Build the type check computation.
Value* instantiator_type_arguments = NULL;
Value* function_type_arguments = NULL;
- if (dst_type.IsInstantiated(kClass)) {
+ if (dst_type.IsInstantiated(kCurrentClass)) {
instantiator_type_arguments = BuildNullValue(token_pos);
} else {
instantiator_type_arguments = BuildInstantiatorTypeArguments(token_pos);
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698