Chromium Code Reviews| Index: lib/compiler/implementation/compiler.dart |
| diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart |
| index 23797006b1f4a05d250d98e8961a7876c762c991..cafe2d5d0cc5129aa86574daac08c1efa68cb2eb 100644 |
| --- a/lib/compiler/implementation/compiler.dart |
| +++ b/lib/compiler/implementation/compiler.dart |
| @@ -343,6 +343,14 @@ class Compiler implements DiagnosticListener { |
| jsIndexingBehaviorInterface = |
| findHelper(const SourceString('JavaScriptIndexingBehavior')); |
| + |
| + // Register is-checks for all special classes. |
|
ngeoffray
2012/08/30 11:03:33
Why? Is checks are for emitting the is$ClassName m
karlklose
2012/08/30 13:04:31
Done.
I added internalErrors when elements were n
|
| + for (ClassElement cls in [objectClass, boolClass, numClass, intClass, |
| + doubleClass, stringClass, functionClass, |
| + listClass, closureClass, dynamicClass, |
| + jsIndexingBehaviorInterface]) { |
| + registerIsCheck(cls.computeType(this)); |
| + } |
| } |
| void scanBuiltinLibraries() { |
| @@ -359,9 +367,6 @@ class Compiler implements DiagnosticListener { |
| assertMethod = coreLibrary.find(const SourceString('assert')); |
| initializeSpecialClasses(); |
| - |
| - //patchDartLibrary(coreLibrary, 'core'); |
| - //patchDartLibrary(coreImplLibrary, 'coreimpl'); |
| } |
| void importCoreLibrary(LibraryElement library) { |
| @@ -833,6 +838,11 @@ class Compiler implements DiagnosticListener { |
| => interceptorsLibrary.findLocal(name); |
| bool get isMockCompilation => false; |
| + |
| + registerIsCheck(Type type) { |
|
ngeoffray
2012/08/30 11:03:33
Please remove this helper method, it is too confus
karlklose
2012/08/30 13:04:31
Done.
|
| + enqueuer.codegen.registerIsCheck(type); |
| + enqueuer.resolution.registerIsCheck(type); |
| + } |
| } |
| class CompilerTask { |