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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart

Issue 221873002: Compute frontend/backend specific constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 6 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
Index: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart
index 201260435fc9845fb92e563b0d247c2679c25ea4..7440372180068355b8a5618668a175803defb938 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_member_mirrors.dart
@@ -236,7 +236,9 @@ class Dart2JsParameterMirror extends Dart2JsMemberMirror
InstanceMirror get defaultValue {
if (hasDefaultValue) {
- Constant constant = mirrorSystem.compiler.constantHandler
+ // TODO(johnniwinther): Get the constant from the [TreeElements]
+ // associated with the enclosing method.
+ Constant constant = mirrorSystem.compiler.constants
.getConstantForVariable(_element);
assert(invariant(_element, constant != null,
message: "Missing constant for parameter "

Powered by Google App Engine
This is Rietveld 408576698