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

Side by Side Diff: pkg/compiler/lib/src/constants/constant_system.dart

Issue 1091443003: Move constant systems into their own libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix try/poi/forget_element_test Created 5 years, 8 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 | Annotate | Revision Log
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 library dart2js.constant_system;
6
7 import '../dart_types.dart';
8 import '../dart2jslib.dart' show Compiler;
9 import '../tree/tree.dart' show DartString;
10 import 'values.dart';
6 11
7 abstract class Operation { 12 abstract class Operation {
8 String get name; 13 String get name;
9 } 14 }
10 15
11 abstract class UnaryOperation extends Operation { 16 abstract class UnaryOperation extends Operation {
12 /** Returns [:null:] if it was unable to fold the operation. */ 17 /** Returns [:null:] if it was unable to fold the operation. */
13 ConstantValue fold(ConstantValue constant); 18 ConstantValue fold(ConstantValue constant);
14 } 19 }
15 20
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 case ">>": return shiftRight; 106 case ">>": return shiftRight;
102 case "<": return less; 107 case "<": return less;
103 case "<=": return lessEqual; 108 case "<=": return lessEqual;
104 case ">": return greater; 109 case ">": return greater;
105 case ">=": return greaterEqual; 110 case ">=": return greaterEqual;
106 case "==": return equal; 111 case "==": return equal;
107 default: return null; 112 default: return null;
108 } 113 }
109 } 114 }
110 } 115 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698