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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 1160763002: dart2js cps: 'is'-check directly against type variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase + status Created 5 years, 7 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 | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index cb87354e609e6cc853493ff01f70df3b8b687bbc..ae0544ca72dc7d6300ad000c71db18b9bc02e2b4 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -171,10 +171,16 @@ class Glue {
return _backend.getSetRuntimeTypeInfo();
}
+ /// checkSubtype(value, $isT, typeArgs, $asT)
FunctionElement getCheckSubtype() {
return _backend.getCheckSubtype();
}
+ /// checkSubtypeOfRuntime(value, runtimeType)
+ FunctionElement getCheckSubtypeOfRuntime() {
+ return _backend.getCheckSubtypeOfRuntimeType();
+ }
+
js.Expression getRuntimeTypeName(ClassElement cls) {
return js.string(_namer.runtimeTypeName(cls));
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698