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

Unified Diff: tool/input_sdk/private/ddc_runtime/operations.dart

Issue 1930323004: instantiate generic tear-offs, fixes #525 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 4 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 | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/rtti.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/operations.dart
diff --git a/tool/input_sdk/private/ddc_runtime/operations.dart b/tool/input_sdk/private/ddc_runtime/operations.dart
index 9bf841f0614251be15c2999bcf298d71e69109a1..0a5b69bdbdb4406215f5762c8a2184877094048b 100644
--- a/tool/input_sdk/private/ddc_runtime/operations.dart
+++ b/tool/input_sdk/private/ddc_runtime/operations.dart
@@ -104,7 +104,7 @@ _checkAndCall(f, ftype, obj, typeArgs, args, name) => JS('', '''(() => {
// then it should have been a function valued field, so
// get the type from the function.
if ($ftype === void 0) {
- $ftype = $read($f);
+ $ftype = $_getRuntimeType($f);
}
if (!$ftype) {
@@ -150,12 +150,12 @@ _checkAndCall(f, ftype, obj, typeArgs, args, name) => JS('', '''(() => {
$throwNoSuchMethodFunc($obj, $name, $args, originalFunction);
})()''');
-dcall(f, @rest args) =>
- _checkAndCall(f, read(f), JS('', 'void 0'), null, args, 'call');
+dcall(f, @rest args) => _checkAndCall(
+ f, _getRuntimeType(f), JS('', 'void 0'), null, args, 'call');
-dgcall(f, typeArgs, @rest args) =>
- _checkAndCall(f, read(f), JS('', 'void 0'), typeArgs, args, 'call');
+dgcall(f, typeArgs, @rest args) => _checkAndCall(
+ f, _getRuntimeType(f), JS('', 'void 0'), typeArgs, args, 'call');
/// Shared code for dsend, dindex, and dsetindex.
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/rtti.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698