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

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

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

Powered by Google App Engine
This is Rietveld 408576698