| 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 'dart:io'; | 7 import 'dart:io'; |
| 8 import 'dart:uri'; | 8 import 'dart:uri'; |
| 9 | 9 |
| 10 import '../../compiler.dart' as diagnostics; | 10 import '../../compiler.dart' as diagnostics; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 world.populate(); | 258 world.populate(); |
| 259 | 259 |
| 260 log('Resolving...'); | 260 log('Resolving...'); |
| 261 phase = Compiler.PHASE_RESOLVING; | 261 phase = Compiler.PHASE_RESOLVING; |
| 262 backend.enqueueHelpers(enqueuer.resolution); | 262 backend.enqueueHelpers(enqueuer.resolution); |
| 263 processQueueList(enqueuer.resolution, elementList); | 263 processQueueList(enqueuer.resolution, elementList); |
| 264 log('Resolved ${enqueuer.resolution.resolvedElements.length} elements.'); | 264 log('Resolved ${enqueuer.resolution.resolvedElements.length} elements.'); |
| 265 } | 265 } |
| 266 | 266 |
| 267 void processQueueList(Enqueuer world, List<LibraryElement> elements) { | 267 void processQueueList(Enqueuer world, List<LibraryElement> elements) { |
| 268 backend.processNativeClasses(world, libraries.values); | 268 world.nativeEnqueuer.processNativeClasses(libraries.values); |
| 269 for (var library in elements) { | 269 for (var library in elements) { |
| 270 library.forEachLocalMember((element) { | 270 library.forEachLocalMember((element) { |
| 271 world.addToWorkList(element); | 271 world.addToWorkList(element); |
| 272 }); | 272 }); |
| 273 } | 273 } |
| 274 progress.reset(); | 274 progress.reset(); |
| 275 world.forEach((WorkItem work) { | 275 world.forEach((WorkItem work) { |
| 276 withCurrentElement(work.element, () => work.run(this, world)); | 276 withCurrentElement(work.element, () => work.run(this, world)); |
| 277 }); | 277 }); |
| 278 } | 278 } |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1545 var node = _variable.variables.parseNode(_diagnosticListener); | 1545 var node = _variable.variables.parseNode(_diagnosticListener); |
| 1546 if (node != null) { | 1546 if (node != null) { |
| 1547 var span = mirrors.compiler.spanFromNode(node, script.uri); | 1547 var span = mirrors.compiler.spanFromNode(node, script.uri); |
| 1548 return new Dart2JsSourceLocation(script, span); | 1548 return new Dart2JsSourceLocation(script, span); |
| 1549 } else { | 1549 } else { |
| 1550 var span = mirrors.compiler.spanFromElement(_variable); | 1550 var span = mirrors.compiler.spanFromElement(_variable); |
| 1551 return new Dart2JsSourceLocation(script, span); | 1551 return new Dart2JsSourceLocation(script, span); |
| 1552 } | 1552 } |
| 1553 } | 1553 } |
| 1554 } | 1554 } |
| 1555 | |
| OLD | NEW |