| 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 class WorkItem { | 5 class WorkItem { |
| 6 final Element element; | 6 final Element element; |
| 7 TreeElements resolutionTree; | 7 TreeElements resolutionTree; |
| 8 Function run; | 8 Function run; |
| 9 Map<int, BailoutInfo> bailouts = null; | 9 Map<int, BailoutInfo> bailouts = null; |
| 10 bool allowSpeculativeOptimization = true; | 10 bool allowSpeculativeOptimization = true; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 Object compileVariable(VariableElement element) { | 362 Object compileVariable(VariableElement element) { |
| 363 return withCurrentElement(element, () { | 363 return withCurrentElement(element, () { |
| 364 compile(new WorkItem.toCompile(element)); | 364 compile(new WorkItem.toCompile(element)); |
| 365 return constantHandler.compileVariable(element); | 365 return constantHandler.compileVariable(element); |
| 366 }); | 366 }); |
| 367 } | 367 } |
| 368 | 368 |
| 369 reportWarning(Node node, var message) {} | 369 reportWarning(Node node, var message) {} |
| 370 reportError(Node node, var message) {} | 370 |
| 371 reportError(Node node, var message) => cancel(message, node: node); |
| 371 | 372 |
| 372 Script readScript(Uri uri, [ScriptTag node]) { | 373 Script readScript(Uri uri, [ScriptTag node]) { |
| 373 unimplemented('Compiler.readScript'); | 374 unimplemented('Compiler.readScript'); |
| 374 } | 375 } |
| 375 | 376 |
| 376 String get legDirectory() { | 377 String get legDirectory() { |
| 377 unimplemented('Compiler.legDirectory'); | 378 unimplemented('Compiler.legDirectory'); |
| 378 } | 379 } |
| 379 | 380 |
| 380 Element findHelper(SourceString name) => jsHelperLibrary.find(name); | 381 Element findHelper(SourceString name) => jsHelperLibrary.find(name); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 423 |
| 423 // TODO(ahe): Remove when the VM supports implicit interfaces. | 424 // TODO(ahe): Remove when the VM supports implicit interfaces. |
| 424 class LTracer implements Tracer { | 425 class LTracer implements Tracer { |
| 425 const LTracer(); | 426 const LTracer(); |
| 426 final bool enabled = false; | 427 final bool enabled = false; |
| 427 void traceGraph(String name, var graph) { | 428 void traceGraph(String name, var graph) { |
| 428 } | 429 } |
| 429 void close() { | 430 void close() { |
| 430 } | 431 } |
| 431 } | 432 } |
| OLD | NEW |