| 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 library dart2js.js_emitter.constant_ordering; | 5 library dart2js.js_emitter.constant_ordering; |
| 6 | 6 |
| 7 import '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 | 8 |
| 9 import '../common.dart'; | |
| 10 //import '../core_types.dart'; | |
| 11 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
| 12 import '../elements/elements.dart' | 10 import '../elements/elements.dart' |
| 13 show Element, | 11 show Element, |
| 14 Elements, | 12 Elements, |
| 15 FieldElement; | 13 FieldElement; |
| 16 import '../tree/tree.dart' show DartString; | 14 import '../tree/tree.dart' show DartString; |
| 17 import '../js_backend/js_backend.dart' show SyntheticConstantKind; | 15 import '../js_backend/js_backend.dart' show SyntheticConstantKind; |
| 18 | 16 |
| 19 /// A canonical but arbrary ordering of constants. The ordering is 'stable' | 17 /// A canonical but arbrary ordering of constants. The ordering is 'stable' |
| 20 /// under perturbation of the source. | 18 /// under perturbation of the source. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 int visitBool(BoolConstantValue a, _) => BOOL; | 202 int visitBool(BoolConstantValue a, _) => BOOL; |
| 205 int visitString(StringConstantValue a, _) => STRING; | 203 int visitString(StringConstantValue a, _) => STRING; |
| 206 int visitList(ListConstantValue a, _) => LIST; | 204 int visitList(ListConstantValue a, _) => LIST; |
| 207 int visitMap(MapConstantValue a, _) => MAP; | 205 int visitMap(MapConstantValue a, _) => MAP; |
| 208 int visitConstructed(ConstructedConstantValue a, _) => CONSTRUCTED; | 206 int visitConstructed(ConstructedConstantValue a, _) => CONSTRUCTED; |
| 209 int visitType(TypeConstantValue a, _) => TYPE; | 207 int visitType(TypeConstantValue a, _) => TYPE; |
| 210 int visitInterceptor(InterceptorConstantValue a, _) => INTERCEPTOR; | 208 int visitInterceptor(InterceptorConstantValue a, _) => INTERCEPTOR; |
| 211 int visitSynthetic(SyntheticConstantValue a, _) => SYNTHETIC; | 209 int visitSynthetic(SyntheticConstantValue a, _) => SYNTHETIC; |
| 212 int visitDeferred(DeferredConstantValue a, _) => DEFERRED; | 210 int visitDeferred(DeferredConstantValue a, _) => DEFERRED; |
| 213 } | 211 } |
| OLD | NEW |