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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/constant_system.dart

Issue 682243004: Redo "Constant fold charCodeAt via constant system" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix analysis warning Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698