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

Unified Diff: runtime/vm/code_generator.cc

Issue 2719603002: Rename Closure instance field type_arguments_ to instantiator_. (Closed)
Patch Set: work in progress Created 3 years, 10 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/bootstrap_nocore.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 5af05c99d4154258b541ac7228f32655f6656ae5..f5492312d7f8f0c195f6e936bd6fab535cf1a206 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -398,17 +398,16 @@ static void UpdateTypeTestCache(
}
const Class& instance_class = Class::Handle(instance.clazz());
Object& instance_class_id_or_function = Object::Handle();
+ TypeArguments& instance_type_arguments = TypeArguments::Handle();
if (instance_class.IsClosureClass()) {
instance_class_id_or_function = Closure::Cast(instance).function();
+ instance_type_arguments = Closure::Cast(instance).instantiator();
} else {
instance_class_id_or_function = Smi::New(instance_class.id());
+ if (instance_class.NumTypeArguments() > 0) {
+ instance_type_arguments = instance.GetTypeArguments();
+ }
}
- TypeArguments& instance_type_arguments = TypeArguments::Handle();
- if (instance_class.IsClosureClass() ||
- (instance_class.NumTypeArguments() > 0)) {
- instance_type_arguments = instance.GetTypeArguments();
- }
-
const intptr_t len = new_cache.NumberOfChecks();
if (len >= FLAG_max_subtype_cache_entries) {
return;
« no previous file with comments | « runtime/vm/bootstrap_nocore.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698