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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 11299009: Support type literals as compile-time constants. (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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
index ed798d6b22a814ddc5b5c32fd5f4cb1154d5f50f..6f890b7bbe6002f80937a7a394fa3fecbda84c93 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -1838,6 +1838,11 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
"The compiler does not know how generate code for "
"constant $constant");
}
+ } else if (constant.isType) {
floitsch 2012/11/16 13:53:31 isn't this doing exactly the same thing as the 'el
karlklose 2012/11/19 15:08:58 Yes. Removed.
+ String name = namer.constantName(constant);
+ js.VariableUse currentIsolateUse =
+ new js.VariableUse(backend.namer.CURRENT_ISOLATE);
+ push(new js.PropertyAccess.field(currentIsolateUse, name));
} else {
String name = namer.constantName(constant);
js.VariableUse currentIsolateUse =

Powered by Google App Engine
This is Rietveld 408576698