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

Unified Diff: sdk/lib/_internal/compiler/implementation/native_handler.dart

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove ConstExpBuilder. Created 6 years, 3 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
Index: sdk/lib/_internal/compiler/implementation/native_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/native_handler.dart b/sdk/lib/_internal/compiler/implementation/native_handler.dart
index 74d3ccf0786a41c00a3cd0a5c4e31b5633100aed..ed80a7f4700dd888580d6e0c9d1d136c19110ec2 100644
--- a/sdk/lib/_internal/compiler/implementation/native_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/native_handler.dart
@@ -332,7 +332,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
!link.isEmpty;
link = link.tail) {
MetadataAnnotation annotation = link.head.ensureResolved(compiler);
- var value = annotation.value;
+ var value = annotation.constant;
if (value is! ConstructedConstant) continue;
if (value.type is! InterfaceType) continue;
if (!identical(value.type.element, annotationClass)) continue;
@@ -1097,7 +1097,7 @@ class NativeBehavior {
!link.isEmpty;
link = link.tail) {
MetadataAnnotation annotation = link.head.ensureResolved(compiler);
- var value = annotation.value;
+ var value = annotation.constant;
if (value is! ConstructedConstant) continue;
if (value.type is! InterfaceType) continue;
if (!identical(value.type.element, annotationClass)) continue;

Powered by Google App Engine
This is Rietveld 408576698