| 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; |
| 6 |
| 5 /** | 7 /** |
| 6 * The [ConstantHandler] keeps track of compile-time constants, | 8 * The [ConstantHandler] keeps track of compile-time constants, |
| 7 * initializations of global and static fields, and default values of | 9 * initializations of global and static fields, and default values of |
| 8 * optional parameters. | 10 * optional parameters. |
| 9 */ | 11 */ |
| 10 class ConstantHandler extends CompilerTask { | 12 class ConstantHandler extends CompilerTask { |
| 11 final ConstantSystem constantSystem; | 13 final ConstantSystem constantSystem; |
| 12 | 14 |
| 13 /** | 15 /** |
| 14 * Contains the initial value of fields. Must contain all static and global | 16 * Contains the initial value of fields. Must contain all static and global |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 // Use the default value. | 810 // Use the default value. |
| 809 fieldValue = compiler.compileConstant(field); | 811 fieldValue = compiler.compileConstant(field); |
| 810 } | 812 } |
| 811 jsNewArguments.add(fieldValue); | 813 jsNewArguments.add(fieldValue); |
| 812 }, | 814 }, |
| 813 includeBackendMembers: true, | 815 includeBackendMembers: true, |
| 814 includeSuperMembers: true); | 816 includeSuperMembers: true); |
| 815 return jsNewArguments; | 817 return jsNewArguments; |
| 816 } | 818 } |
| 817 } | 819 } |
| OLD | NEW |