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

Unified Diff: runtime/lib/function.cc

Issue 2859673002: Pass type argument vector to generic functions (if --reify-generic-functions is (Closed)
Patch Set: 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/lib/invocation_mirror_patch.dart » ('j') | runtime/vm/aot_optimizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/function.cc
diff --git a/runtime/lib/function.cc b/runtime/lib/function.cc
index 8ba93bafaa59c0c14ee02d4321c58a8c94558f7d..1b8733c7e385a2a70bac96330f0303b1fd7fd527 100644
--- a/runtime/lib/function.cc
+++ b/runtime/lib/function.cc
@@ -14,10 +14,11 @@
namespace dart {
DEFINE_NATIVE_ENTRY(Function_apply, 2) {
+ const int kTypeArgsLen = 0; // TODO(regis): Add support for generic function.
const Array& fun_arguments = Array::CheckedHandle(arguments->NativeArgAt(0));
const Array& fun_arg_names = Array::CheckedHandle(arguments->NativeArgAt(1));
- const Array& fun_args_desc = Array::Handle(
- ArgumentsDescriptor::New(fun_arguments.Length(), fun_arg_names));
+ const Array& fun_args_desc = Array::Handle(ArgumentsDescriptor::New(
+ kTypeArgsLen, fun_arguments.Length(), fun_arg_names));
const Object& result =
Object::Handle(DartEntry::InvokeClosure(fun_arguments, fun_args_desc));
if (result.IsError()) {
« no previous file with comments | « no previous file | runtime/lib/invocation_mirror_patch.dart » ('j') | runtime/vm/aot_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698