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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2818273002: Remove parent_level field of function type parameters. (Closed)
Patch Set: address comments 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 | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 7e40676888b99c48f8bed6b004fd645fbaee905e..be0e98ff019c8c5ae7e2d458e477f96462ba9f15 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -2214,7 +2214,7 @@ Fragment FlowGraphBuilder::TranslateInstantiatedTypeArguments(
} else {
instructions += NullConstant();
}
- if (!type_arguments.IsInstantiated(kCurrentFunction)) {
+ if (!type_arguments.IsInstantiated(kFunctions)) {
instructions += LoadFunctionTypeArguments();
} else {
instructions += NullConstant();
@@ -3839,7 +3839,7 @@ Fragment FlowGraphBuilder::AssertAssignable(const dart::AbstractType& dst_type,
}
Value* instantiator_type_args = Pop();
- if (!dst_type.IsInstantiated(kCurrentFunction)) {
+ if (!dst_type.IsInstantiated(kFunctions)) {
instructions += LoadFunctionTypeArguments();
} else {
instructions += NullConstant();
@@ -4688,7 +4688,7 @@ void FlowGraphBuilder::VisitTypeLiteral(TypeLiteral* node) {
} else {
instructions += NullConstant();
}
- if (!type.IsInstantiated(kCurrentFunction)) {
+ if (!type.IsInstantiated(kFunctions)) {
instructions += LoadFunctionTypeArguments();
} else {
instructions += NullConstant();
@@ -5125,7 +5125,7 @@ void FlowGraphBuilder::VisitIsExpression(IsExpression* node) {
}
instructions += PushArgument(); // Instantiator type arguments.
- if (!type.IsInstantiated(kCurrentFunction)) {
+ if (!type.IsInstantiated(kFunctions)) {
instructions += LoadFunctionTypeArguments();
} else {
instructions += NullConstant();
@@ -5173,7 +5173,7 @@ void FlowGraphBuilder::VisitAsExpression(AsExpression* node) {
}
instructions += PushArgument(); // Instantiator type arguments.
- if (!type.IsInstantiated(kCurrentFunction)) {
+ if (!type.IsInstantiated(kFunctions)) {
instructions += LoadFunctionTypeArguments();
} else {
instructions += NullConstant();
« no previous file with comments | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698