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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 1815733003: Remove recently introduced FunctionType vm class by merging it into class Type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comment Created 4 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/exceptions.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('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 c411bbd2d9033f4602c452340389059a3b4d8745..6f7ff8d19090449800c2d188ebe3899374ba5bfe 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2505,9 +2505,8 @@ void EffectGraphVisitor::VisitClosureNode(ClosureNode* node) {
{ LocalVariable* closure_tmp_var = EnterTempLocalScope(closure_val,
node->token_pos());
// Store type arguments if scope class is generic.
- const FunctionType& function_type =
- FunctionType::ZoneHandle(Z, function.SignatureType());
- const Class& scope_cls = Class::ZoneHandle(Z, function_type.scope_class());
+ const Type& function_type = Type::ZoneHandle(Z, function.SignatureType());
+ const Class& scope_cls = Class::ZoneHandle(Z, function_type.type_class());
if (scope_cls.IsGeneric()) {
ASSERT(function.Owner() == scope_cls.raw());
Value* closure_tmp_val = Bind(new(Z) LoadLocalInstr(*closure_tmp_var,
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698