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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
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;
6
7 interface Operation { 5 interface Operation {
8 final SourceString name; 6 final SourceString name;
9 bool isUserDefinable(); 7 bool isUserDefinable();
10 } 8 }
11 9
12 interface UnaryOperation extends Operation { 10 interface UnaryOperation extends Operation {
13 /** Returns [:null:] if it was unable to fold the operation. */ 11 /** Returns [:null:] if it was unable to fold the operation. */
14 Constant fold(Constant constant); 12 Constant fold(Constant constant);
15 apply(value); 13 apply(value);
16 } 14 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool isInt(Constant constant); 61 bool isInt(Constant constant);
64 /** Returns true if the [constant] is a double at runtime. */ 62 /** Returns true if the [constant] is a double at runtime. */
65 bool isDouble(Constant constant); 63 bool isDouble(Constant constant);
66 /** Returns true if the [constant] is a string at runtime. */ 64 /** Returns true if the [constant] is a string at runtime. */
67 bool isString(Constant constant); 65 bool isString(Constant constant);
68 /** Returns true if the [constant] is a boolean at runtime. */ 66 /** Returns true if the [constant] is a boolean at runtime. */
69 bool isBool(Constant constant); 67 bool isBool(Constant constant);
70 /** Returns true if the [constant] is null at runtime. */ 68 /** Returns true if the [constant] is null at runtime. */
71 bool isNull(Constant constant); 69 bool isNull(Constant constant);
72 } 70 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/compiler.dart ('k') | dart/lib/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698