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

Unified Diff: lib/compiler/implementation/compile_time_constants.dart

Issue 10119010: Start propagating non-primitive types in the backend, and fold instructions that know about the typ… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/compiler.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compile_time_constants.dart
===================================================================
--- lib/compiler/implementation/compile_time_constants.dart (revision 6686)
+++ lib/compiler/implementation/compile_time_constants.dart (working copy)
@@ -247,6 +247,7 @@
int hashCode() => _hashCode;
DartString toDartString() => value;
+ int get length() => value.length;
}
class ObjectConstant extends Constant {
@@ -307,6 +308,8 @@
int hashCode() => _hashCode;
List<Constant> getDependencies() => entries;
+
+ int get length() => entries.length;
}
class MapConstant extends ObjectConstant {
@@ -418,6 +421,8 @@
result.addAll(values);
return result;
}
+
+ int get length() => keys.length;
}
class ConstructedConstant extends ObjectConstant {
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/compiler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698