| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 library.define(new ForeignElement( | 255 library.define(new ForeignElement( |
| 256 const SourceString('JS'), library), this); | 256 const SourceString('JS'), library), this); |
| 257 library.define(new ForeignElement( | 257 library.define(new ForeignElement( |
| 258 const SourceString('UNINTERCEPTED'), library), this); | 258 const SourceString('UNINTERCEPTED'), library), this); |
| 259 library.define(new ForeignElement( | 259 library.define(new ForeignElement( |
| 260 const SourceString('JS_HAS_EQUALS'), library), this); | 260 const SourceString('JS_HAS_EQUALS'), library), this); |
| 261 library.define(new ForeignElement( | 261 library.define(new ForeignElement( |
| 262 const SourceString('JS_CURRENT_ISOLATE'), library), this); | 262 const SourceString('JS_CURRENT_ISOLATE'), library), this); |
| 263 library.define(new ForeignElement( | 263 library.define(new ForeignElement( |
| 264 const SourceString('JS_CALL_IN_ISOLATE'), library), this); | 264 const SourceString('JS_CALL_IN_ISOLATE'), library), this); |
| 265 library.define(new ForeignElement( |
| 266 const SourceString('JS_TO_CLOSURE'), library), this); |
| 265 } | 267 } |
| 266 | 268 |
| 267 void runCompiler(Uri uri) { | 269 void runCompiler(Uri uri) { |
| 268 scanBuiltinLibraries(); | 270 scanBuiltinLibraries(); |
| 269 mainApp = scanner.loadLibrary(uri, null); | 271 mainApp = scanner.loadLibrary(uri, null); |
| 270 Element element; | 272 Element element; |
| 271 withCurrentElement(mainApp, () { | 273 withCurrentElement(mainApp, () { |
| 272 element = mainApp.find(MAIN); | 274 element = mainApp.find(MAIN); |
| 273 if (element === null) cancel('Could not find $MAIN'); | 275 if (element === null) cancel('Could not find $MAIN'); |
| 274 }); | 276 }); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 } | 518 } |
| 517 } | 519 } |
| 518 | 520 |
| 519 class SourceSpan { | 521 class SourceSpan { |
| 520 final Uri uri; | 522 final Uri uri; |
| 521 final int begin; | 523 final int begin; |
| 522 final int end; | 524 final int end; |
| 523 | 525 |
| 524 const SourceSpan(this.uri, this.begin, this.end); | 526 const SourceSpan(this.uri, this.begin, this.end); |
| 525 } | 527 } |
| OLD | NEW |