Chromium Code Reviews| Index: pkg/compiler/lib/src/js_emitter/constant_ordering.dart |
| diff --git a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart |
| index a2a0d7d5fccadb0f77d2b1c4314f5d09c0b4c638..e3b2614c66f37895f07c586e935be502ec4ec906 100644 |
| --- a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart |
| +++ b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart |
| @@ -76,6 +76,10 @@ class _CompareVisitor implements ConstantValueVisitor<int, ConstantValue> { |
| return 0; |
| } |
| + int visitNonConstant(NonConstantValue a, NonConstantValue b) { |
| + return 0; |
| + } |
| + |
| int visitInt(IntConstantValue a, IntConstantValue b) { |
| return a.primitiveValue.compareTo(b.primitiveValue); |
| } |
| @@ -189,12 +193,14 @@ class _KindVisitor implements ConstantValueVisitor<int, Null> { |
| static const int INTERCEPTOR = 11; |
| static const int SYNTHETIC = 12; |
| static const int DEFERRED = 13; |
| + static const int NON = 13; |
|
Harry Terkelsen
2016/06/13 17:26:11
NON -> NONCONSTANT?
Johnni Winther
2016/06/16 07:39:44
Done.
|
| static int kind(ConstantValue constant) => |
| constant.accept(const _KindVisitor(), null); |
| int visitFunction(FunctionConstantValue a, _) => FUNCTION; |
| int visitNull(NullConstantValue a, _) => NULL; |
| + int visitNonConstant(NonConstantValue a, _) => NON; |
| int visitInt(IntConstantValue a, _) => INT; |
| int visitDouble(DoubleConstantValue a, _) => DOUBLE; |
| int visitBool(BoolConstantValue a, _) => BOOL; |