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

Unified Diff: runtime/vm/object.cc

Issue 2567163002: Use kFunctionCid instead of kIllegalCid to indicate that a generic function (Closed)
Patch Set: Created 4 years 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/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index f60ab345f95fa026c43b842d891884eb83e7c579..d8cdad4407d5525d7d758e9a6d455a39608625ff 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -17610,7 +17610,7 @@ bool TypeParameter::IsEquivalent(const Instance& other, TrailPtr trail) const {
void TypeParameter::set_parameterized_class(const Class& value) const {
// Set value may be null.
- classid_t cid = kIllegalCid;
+ classid_t cid = kFunctionCid; // Denotes a function type parameter.
if (!value.IsNull()) {
cid = value.id();
}
@@ -17625,7 +17625,7 @@ classid_t TypeParameter::parameterized_class_id() const {
RawClass* TypeParameter::parameterized_class() const {
classid_t cid = parameterized_class_id();
- if (cid == kIllegalCid) {
+ if (cid == kFunctionCid) {
return Class::null();
}
return Isolate::Current()->class_table()->At(cid);
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698