| 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 part of dart2js.js_emitter; | 5 part of dart2js.js_emitter; |
| 6 | 6 |
| 7 const USE_LAZY_EMITTER = const bool.fromEnvironment("dart2js.use.lazy.emitter"); | 7 const USE_LAZY_EMITTER = const bool.fromEnvironment("dart2js.use.lazy.emitter"); |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Generates the code for all used classes in the program. Static fields (even | 10 * Generates the code for all used classes in the program. Static fields (even |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 int compareConstants(ConstantValue a, ConstantValue b); | 222 int compareConstants(ConstantValue a, ConstantValue b); |
| 223 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant); | 223 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant); |
| 224 | 224 |
| 225 /// Returns the JS code for accessing the given [constant]. | 225 /// Returns the JS code for accessing the given [constant]. |
| 226 jsAst.Expression constantReference(ConstantValue constant); | 226 jsAst.Expression constantReference(ConstantValue constant); |
| 227 | 227 |
| 228 /// Returns the JS template for the given [builtin]. | 228 /// Returns the JS template for the given [builtin]. |
| 229 jsAst.Template templateForBuiltin(JsBuiltin builtin); | 229 jsAst.Template templateForBuiltin(JsBuiltin builtin); |
| 230 | 230 |
| 231 /// Returns the size of the code generated for a given output [unit]. |
| 232 int generatedSize(OutputUnit unit); |
| 233 |
| 231 void invalidateCaches(); | 234 void invalidateCaches(); |
| 232 } | 235 } |
| OLD | NEW |