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

Unified Diff: runtime/vm/unit_test.h

Issue 2859673002: Pass type argument vector to generic functions (if --reify-generic-functions is (Closed)
Patch Set: address review comments and sync Created 3 years, 7 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/stub_code_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.h
diff --git a/runtime/vm/unit_test.h b/runtime/vm/unit_test.h
index 40b8adad5e25c664285803710256bdc0c7c02ccb..44300b9f6f4efb8b91b40a671247cbaa2449d603 100644
--- a/runtime/vm/unit_test.h
+++ b/runtime/vm/unit_test.h
@@ -478,7 +478,10 @@ class AssemblerTest {
COMPILE_ASSERT(!is_double<Arg3Type>::value);
const Object& arg1obj = Object::Handle(reinterpret_cast<RawObject*>(arg1));
const Object& arg2obj = Object::Handle(reinterpret_cast<RawObject*>(arg2));
- const Array& argdesc = Array::Handle(ArgumentsDescriptor::New(2));
+ const intptr_t kTypeArgsLen = 0;
+ const intptr_t kNumArgs = 2;
+ const Array& argdesc =
+ Array::Handle(ArgumentsDescriptor::New(kTypeArgsLen, kNumArgs));
const Array& arguments = Array::Handle(Array::New(2));
arguments.SetAt(0, arg1obj);
arguments.SetAt(1, arg2obj);
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698