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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10232011: Implement simple dynamic type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor edits. Created 8 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
Index: lib/compiler/implementation/universe.dart
diff --git a/lib/compiler/implementation/universe.dart b/lib/compiler/implementation/universe.dart
index c368ac74d17f56e6946ae2399ad48b4bb61d6eeb..5cf6c6bbdcef4c0441b7daa306182768e1eec072 100644
--- a/lib/compiler/implementation/universe.dart
+++ b/lib/compiler/implementation/universe.dart
@@ -14,6 +14,7 @@ class Universe {
final Map<String, LibraryElement> libraries;
// TODO(ngeoffray): This should be a Set<Type>.
final Set<Element> isChecks;
+ final RuntimeTypeInformation rti;
Universe() : generatedCode = new Map<Element, String>(),
generatedBailoutCode = new Map<Element, String>(),
@@ -24,7 +25,8 @@ class Universe {
invokedNames = new Map<SourceString, Set<Selector>>(),
invokedGetters = new Map<SourceString, Set<Selector>>(),
invokedSetters = new Map<SourceString, Set<Selector>>(),
- isChecks = new Set<Element>();
+ isChecks = new Set<Element>(),
+ rti = new RuntimeTypeInformation();
void addGeneratedCode(WorkItem work, String code) {
generatedCode[work.element] = code;

Powered by Google App Engine
This is Rietveld 408576698