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