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

Unified Diff: runtime/vm/assembler_dbc_test.cc

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/aot_optimizer.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_dbc_test.cc
diff --git a/runtime/vm/assembler_dbc_test.cc b/runtime/vm/assembler_dbc_test.cc
index a8d2fdfe70c88161283c3eb3dc190903611897c3..12bca45fd67ebf71b78afe6c858dad8d8ac84fc2 100644
--- a/runtime/vm/assembler_dbc_test.cc
+++ b/runtime/vm/assembler_dbc_test.cc
@@ -14,9 +14,11 @@ namespace dart {
static RawObject* ExecuteTest(const Code& code) {
Thread* thread = Thread::Current();
TransitionToGenerated transition(thread);
- return Simulator::Current()->Call(code,
- Array::Handle(ArgumentsDescriptor::New(0)),
- Array::Handle(Array::New(0)), thread);
+ const intptr_t kTypeArgsLen = 0;
+ const intptr_t kNumArgs = 0;
+ return Simulator::Current()->Call(
+ code, Array::Handle(ArgumentsDescriptor::New(kTypeArgsLen, kNumArgs)),
+ Array::Handle(Array::New(0)), thread);
}
@@ -79,8 +81,10 @@ static void MakeDummyInstanceCall(Assembler* assembler, const Object& result) {
dummy_instance_function.AttachCode(code);
// Make a dummy ICData.
+ const intptr_t kTypeArgsLen = 0;
+ const intptr_t kNumArgs = 2;
const Array& dummy_arguments_descriptor =
- Array::Handle(ArgumentsDescriptor::New(2));
+ Array::Handle(ArgumentsDescriptor::New(kTypeArgsLen, kNumArgs));
const ICData& ic_data = ICData::Handle(ICData::New(
dummy_instance_function, String::Handle(dummy_instance_function.name()),
dummy_arguments_descriptor, Thread::kNoDeoptId, 2,
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698