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; | 5 part of dart2js; |
6 | 6 |
7 abstract class Operation { | 7 abstract class Operation { |
8 String get name; | 8 String get name; |
9 } | 9 } |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 BinaryOperation get less; | 39 BinaryOperation get less; |
40 BinaryOperation get modulo; | 40 BinaryOperation get modulo; |
41 BinaryOperation get multiply; | 41 BinaryOperation get multiply; |
42 UnaryOperation get negate; | 42 UnaryOperation get negate; |
43 UnaryOperation get not; | 43 UnaryOperation get not; |
44 BinaryOperation get shiftLeft; | 44 BinaryOperation get shiftLeft; |
45 BinaryOperation get shiftRight; | 45 BinaryOperation get shiftRight; |
46 BinaryOperation get subtract; | 46 BinaryOperation get subtract; |
47 BinaryOperation get truncatingDivide; | 47 BinaryOperation get truncatingDivide; |
48 | 48 |
| 49 BinaryOperation get codeUnitAt; |
| 50 |
49 const ConstantSystem(); | 51 const ConstantSystem(); |
50 | 52 |
51 ConstantValue createInt(int i); | 53 ConstantValue createInt(int i); |
52 ConstantValue createDouble(double d); | 54 ConstantValue createDouble(double d); |
53 ConstantValue createString(DartString string); | 55 ConstantValue createString(DartString string); |
54 ConstantValue createBool(bool value); | 56 ConstantValue createBool(bool value); |
55 ConstantValue createNull(); | 57 ConstantValue createNull(); |
56 ConstantValue createMap(Compiler compiler, | 58 ConstantValue createMap(Compiler compiler, |
57 InterfaceType type, | 59 InterfaceType type, |
58 List<ConstantValue> keys, | 60 List<ConstantValue> keys, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 case ">>": return shiftRight; | 101 case ">>": return shiftRight; |
100 case "<": return less; | 102 case "<": return less; |
101 case "<=": return lessEqual; | 103 case "<=": return lessEqual; |
102 case ">": return greater; | 104 case ">": return greater; |
103 case ">=": return greaterEqual; | 105 case ">=": return greaterEqual; |
104 case "==": return equal; | 106 case "==": return equal; |
105 default: return null; | 107 default: return null; |
106 } | 108 } |
107 } | 109 } |
108 } | 110 } |
OLD | NEW |