Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/constant_ordering.dart

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import '../dart_types.dart'; 8 import '../elements/resolution_types.dart';
9 import '../elements/elements.dart' show Element, Elements, FieldElement; 9 import '../elements/elements.dart' show Element, Elements, FieldElement;
10 import '../js_backend/js_backend.dart' show SyntheticConstantKind; 10 import '../js_backend/js_backend.dart' show SyntheticConstantKind;
11 import '../tree/dartstring.dart' show DartString; 11 import '../tree/dartstring.dart' show DartString;
12 12
13 /// A canonical but arbrary ordering of constants. The ordering is 'stable' 13 /// A canonical but arbrary ordering of constants. The ordering is 'stable'
14 /// under perturbation of the source. 14 /// under perturbation of the source.
15 int deepCompareConstants(ConstantValue a, ConstantValue b) { 15 int deepCompareConstants(ConstantValue a, ConstantValue b) {
16 return _CompareVisitor.compareValues(a, b); 16 return _CompareVisitor.compareValues(a, b);
17 } 17 }
18 18
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int visitBool(BoolConstantValue a, _) => BOOL; 205 int visitBool(BoolConstantValue a, _) => BOOL;
206 int visitString(StringConstantValue a, _) => STRING; 206 int visitString(StringConstantValue a, _) => STRING;
207 int visitList(ListConstantValue a, _) => LIST; 207 int visitList(ListConstantValue a, _) => LIST;
208 int visitMap(MapConstantValue a, _) => MAP; 208 int visitMap(MapConstantValue a, _) => MAP;
209 int visitConstructed(ConstructedConstantValue a, _) => CONSTRUCTED; 209 int visitConstructed(ConstructedConstantValue a, _) => CONSTRUCTED;
210 int visitType(TypeConstantValue a, _) => TYPE; 210 int visitType(TypeConstantValue a, _) => TYPE;
211 int visitInterceptor(InterceptorConstantValue a, _) => INTERCEPTOR; 211 int visitInterceptor(InterceptorConstantValue a, _) => INTERCEPTOR;
212 int visitSynthetic(SyntheticConstantValue a, _) => SYNTHETIC; 212 int visitSynthetic(SyntheticConstantValue a, _) => SYNTHETIC;
213 int visitDeferred(DeferredConstantValue a, _) => DEFERRED; 213 int visitDeferred(DeferredConstantValue a, _) => DEFERRED;
214 } 214 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/type_variable_handler.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698