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

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

Issue 1926283002: implement generic method runtime behavior, fixes #301 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 | « test/codegen/language/issue12284_test.dart ('k') | tool/input_sdk/private/ddc_runtime/generators.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/classes.dart
diff --git a/tool/input_sdk/private/ddc_runtime/classes.dart b/tool/input_sdk/private/ddc_runtime/classes.dart
index c2e708b93fa3348d959c68708fc2bd4cac6316ca..27c25427184a938f89ed3d74978f5d7a6189e45a 100644
--- a/tool/input_sdk/private/ddc_runtime/classes.dart
+++ b/tool/input_sdk/private/ddc_runtime/classes.dart
@@ -192,7 +192,7 @@ _setStaticTypes(f, names) => JS('', '''(() => {
for (let name of $names) {
// TODO(vsm): Need to generate static methods.
if (!$f[name]) continue;
- $tagMemoized($f[name], function() {
+ $tagLazy($f[name], function() {
let parts = $f[$_staticSig][name];
return $definiteFunctionType.apply(null, parts);
})
@@ -223,7 +223,7 @@ setSignature(f, signature) => JS('', '''(() => {
$_setMethodSignature($f, methods);
$_setStaticSignature($f, statics);
$_setStaticTypes($f, names);
- $tagMemoized($f, () => $Type);
+ $tagLazy($f, () => $Type);
})()''');
hasMethod(obj, name) => JS('', '$getMethodType($obj, $name) !== void 0');
« no previous file with comments | « test/codegen/language/issue12284_test.dart ('k') | tool/input_sdk/private/ddc_runtime/generators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698