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

Unified Diff: runtime/vm/object.h

Issue 2831073004: Use trail in type tests involving the call function (fixes #29405). (Closed)
Patch Set: add comment 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 | « no previous file | 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 8eb2146c58adbeffbe6961dce0d9990c5343ced6..29893cf916beb5f74bddac7872cf15c6bf86ee27 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2679,22 +2679,26 @@ class Function : public Object {
// the other function.
bool IsSubtypeOf(const Function& other,
Error* bound_error,
+ TrailPtr bound_trail,
Heap::Space space) const {
- return TypeTest(kIsSubtypeOf, other, bound_error, space);
+ return TypeTest(kIsSubtypeOf, other, bound_error, bound_trail, space);
}
// Returns true if the type of this function is more specific than the type of
// the other function.
bool IsMoreSpecificThan(const Function& other,
Error* bound_error,
+ TrailPtr bound_trail,
Heap::Space space) const {
- return TypeTest(kIsMoreSpecificThan, other, bound_error, space);
+ return TypeTest(kIsMoreSpecificThan, other, bound_error, bound_trail,
+ space);
}
// Check the subtype or 'more specific' relationship.
bool TypeTest(TypeTestKind test_kind,
const Function& other,
Error* bound_error,
+ TrailPtr bound_trail,
Heap::Space space) const;
bool IsDispatcherOrImplicitAccessor() const {
@@ -3023,6 +3027,7 @@ class Function : public Object {
intptr_t other_parameter_position,
const Function& other,
Error* bound_error,
+ TrailPtr bound_trail,
Heap::Space space) const;
FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object);
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698