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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 10941031: Reapply 'Add runtimeType() to Object which returns canonicalized instances of Type'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: compiler/java/com/google/dart/compiler/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index 30577f69bec0a31dc6afa3a86b9b9f56a5042deb..3d105c39269bde749c5232e2594c5fe0d8a8466f 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -864,13 +864,6 @@ public class DartCompiler {
srcCode += "\nvoid " + Elements.ASSERT_FUNCTION_NAME + "(x) {}";
}
- // inject "Type" type from 1.0 M1 specification
- // remove once it will be added into SDK
- // http://code.google.com/p/dart/issues/detail?id=3368
- if (dartSrc.getUri().toString().equals("dart://core/object.dart")) {
- srcCode += "\nclass Type {}";
- }
-
DartParser parser = new DartParser(dartSrc, srcCode, diet, libraryPrefixes, context,
context.getCompilerMetrics());
DartUnit unit = parser.parseUnit();
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/ssa/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698