| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library('mirrors.dart2js'); | 5 #library('mirrors.dart2js'); |
| 6 | 6 |
| 7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); | 7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); |
| 8 #import('../../../lib/compiler/implementation/elements/elements.dart'); | 8 #import('../../../lib/compiler/implementation/elements/elements.dart'); |
| 9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); | 9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); |
| 10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); | 10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void runCompilerList(List<Uri> uriList) { | 225 void runCompilerList(List<Uri> uriList) { |
| 226 scanBuiltinLibraries(); | 226 scanBuiltinLibraries(); |
| 227 var elementList = <LibraryElement>[]; | 227 var elementList = <LibraryElement>[]; |
| 228 for (var uri in uriList) { | 228 for (var uri in uriList) { |
| 229 elementList.add(scanner.loadLibrary(uri, null, uri)); | 229 elementList.add(scanner.loadLibrary(uri, null, uri)); |
| 230 } | 230 } |
| 231 libraries.forEach((_, library) { | 231 libraries.forEach((_, library) { |
| 232 maybeEnableJSHelper(library); | 232 maybeEnableJSHelper(library); |
| 233 }); | 233 }); |
| 234 | 234 |
| 235 world.populate(this); | 235 world.populate(); |
| 236 | 236 |
| 237 log('Resolving...'); | 237 log('Resolving...'); |
| 238 phase = Compiler.PHASE_RESOLVING; | 238 phase = Compiler.PHASE_RESOLVING; |
| 239 backend.enqueueHelpers(enqueuer.resolution); | 239 backend.enqueueHelpers(enqueuer.resolution); |
| 240 processQueueList(enqueuer.resolution, elementList); | 240 processQueueList(enqueuer.resolution, elementList); |
| 241 log('Resolved ${enqueuer.resolution.resolvedElements.length} elements.'); | 241 log('Resolved ${enqueuer.resolution.resolvedElements.length} elements.'); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void processQueueList(Enqueuer world, List<LibraryElement> elements) { | 244 void processQueueList(Enqueuer world, List<LibraryElement> elements) { |
| 245 backend.processNativeClasses(world, libraries.getValues()); | 245 backend.processNativeClasses(world, libraries.getValues()); |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 if (node !== null) { | 1383 if (node !== null) { |
| 1384 var span = system.compiler.spanFromNode(node, script.uri); | 1384 var span = system.compiler.spanFromNode(node, script.uri); |
| 1385 return new Dart2JsLocation(script, span); | 1385 return new Dart2JsLocation(script, span); |
| 1386 } else { | 1386 } else { |
| 1387 var span = system.compiler.spanFromElement(_variable); | 1387 var span = system.compiler.spanFromElement(_variable); |
| 1388 return new Dart2JsLocation(script, span); | 1388 return new Dart2JsLocation(script, span); |
| 1389 } | 1389 } |
| 1390 } | 1390 } |
| 1391 } | 1391 } |
| 1392 | 1392 |
| OLD | NEW |