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

Unified Diff: tool/input_sdk/private/ddc_runtime/types.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/rtti.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/types.dart
diff --git a/tool/input_sdk/private/ddc_runtime/types.dart b/tool/input_sdk/private/ddc_runtime/types.dart
index c4045a4bff657f9cda99c7e85e72a2aa7aff36d2..c5470d1a5fbb291d5f57a1b150eb2c12e6657c8b 100644
--- a/tool/input_sdk/private/ddc_runtime/types.dart
+++ b/tool/input_sdk/private/ddc_runtime/types.dart
@@ -293,13 +293,13 @@ definiteFunctionType(returnType, args, extra) =>
typedef(name, closure) => JS('', 'new #(#, #)', Typedef, name, closure);
-bool isDartType(type) => JS('bool', '#(#) === #', read, type, Type);
+bool isDartType(type) => JS('bool', '#(#) === #', _getRuntimeType, type, Type);
typeName(type) => JS('', '''(() => {
// Non-instance types
if ($type instanceof $TypeRep) return $type.toString();
// Instance types
- let tag = $read($type);
+ let tag = $_getRuntimeType($type);
if (tag === $Type) {
let name = $type.name;
let args = $getGenericArgs($type);
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/rtti.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698