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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart

Issue 2932043003: fix #29789, avoid unneccessary dcalls and checks in dart:_runtime (Closed)
Patch Set: merged Created 3 years, 6 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
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
index a19c5af599db97cde1ac904535a6ca6e2541551a..23e1a2fd87769019481386a133ed9ea8beba8e05 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
@@ -110,7 +110,7 @@ _checkPrimitiveType(obj) {
getFunctionType(obj) {
// TODO(vsm): Encode this properly on the function for Dart-generated code.
- var args = JS('', 'Array(#.length).fill(#)', obj, dynamic);
+ var args = JS('List', 'Array(#.length).fill(#)', obj, dynamic);
return fnType(bottom, args, JS('', 'void 0'));
}

Powered by Google App Engine
This is Rietveld 408576698