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

Unified Diff: runtime/vm/object.h

Issue 2696783002: Properly resolve upper bounds of generic function's type parameters. (Closed)
Patch Set: 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/kernel_reader.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index ae65d2956b93165f3d54e6323d5b11f1e8d90b90..926564988bce728d836fba8bf3bc4a0075c48990 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2252,6 +2252,9 @@ class Function : public Object {
}
void set_type_parameters(const TypeArguments& value) const;
intptr_t NumTypeParameters(Thread* thread) const;
+ intptr_t NumTypeParameters() const {
+ return NumTypeParameters(Thread::Current());
+ }
// Return a TypeParameter if the type_name is a type parameter of this
// function or of one of its parent functions.
@@ -6121,6 +6124,7 @@ class TypeParameter : public AbstractType {
static RawTypeParameter* New(const Class& parameterized_class,
const Function& parameterized_function,
intptr_t index,
+ intptr_t parent_level,
const String& name,
const AbstractType& bound,
TokenPosition token_pos);
@@ -6133,7 +6137,7 @@ class TypeParameter : public AbstractType {
void set_parameterized_function(const Function& value) const;
void set_name(const String& value) const;
void set_token_pos(TokenPosition token_pos) const;
- void set_parent_level(uint8_t value) const;
+ void set_parent_level(intptr_t value) const;
void set_type_state(int8_t state) const;
static RawTypeParameter* New();
« no previous file with comments | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698