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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 19670)
+++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy)
@@ -155,6 +155,17 @@
bool isNullImplementation(ClassElement cls) {
return cls == compiler.nullClass;
}
+ ClassElement get intImplementation => compiler.intClass;
+ ClassElement get doubleImplementation => compiler.doubleClass;
+ ClassElement get numImplementation => compiler.numClass;
+ ClassElement get stringImplementation => compiler.stringClass;
+ ClassElement get listImplementation => compiler.listClass;
+ ClassElement get mapImplementation => compiler.mapClass;
+ ClassElement get constMapImplementation => compiler.mapClass;
+ ClassElement get functionImplementation => compiler.functionClass;
+ ClassElement get typeImplementation => compiler.typeClass;
+ ClassElement get boolImplementation => compiler.boolClass;
+ ClassElement get nullImplementation => compiler.nullClass;
}
/**
@@ -265,7 +276,6 @@
ClassElement listClass;
ClassElement typeClass;
ClassElement mapClass;
- ClassElement mapLiteralClass;
ClassElement jsInvocationMirrorClass;
/// Document class from dart:mirrors.
ClassElement documentClass;
@@ -344,7 +354,8 @@
static const int PHASE_SCANNING = 0;
static const int PHASE_RESOLVING = 1;
- static const int PHASE_COMPILING = 2;
+ static const int PHASE_DONE_RESOLVING = 2;
+ static const int PHASE_COMPILING = 3;
int phase;
bool compilationFailed = false;
@@ -560,8 +571,6 @@
listClass = lookupCoreClass('List');
typeClass = lookupCoreClass('Type');
mapClass = lookupCoreClass('Map');
- // TODO: find a proper way to get to the implementation class.
- mapLiteralClass = lookupCoreClass('LinkedHashMap');
if (!missingCoreClasses.isEmpty) {
internalErrorOnElement(coreLibrary,
'dart:core library does not contain required classes: '
@@ -691,6 +700,7 @@
if (compilationFailed) return;
if (analyzeOnly) return;
assert(main != null);
+ phase = PHASE_DONE_RESOLVING;
// TODO(ahe): Remove this line. Eventually, enqueuer.resolution
// should know this.
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698