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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 2684783003: Refactor ConstantSystem (Closed)
Patch Set: Rebased Created 3 years, 10 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: pkg/compiler/lib/src/js_backend/backend_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_helpers.dart b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
index c6f9678a5c3d4e2131a101003b49afe9d571a395..5a086225bef51d4547c5e8ef93d827b2b5e1bc9b 100644
--- a/pkg/compiler/lib/src/js_backend/backend_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
@@ -441,6 +441,14 @@ class BackendHelpers {
ClassEntity get symbolImplementationClass =>
_symbolImplementationClass ??= _findClass(internalLibrary, 'Symbol');
+ FieldEntity _symbolImplementationField;
+
+ /// Returns the field that holds the internal name in the implementation class
+ /// for `Symbol`.
+ FieldEntity get symbolImplementationField => _symbolImplementationField ??=
+ _env.lookupClassMember(symbolImplementationClass, '_name',
+ required: true);
+
ConstructorEntity _symbolValidatedConstructor;
bool isSymbolValidatedConstructor(ConstructorEntity element) {

Powered by Google App Engine
This is Rietveld 408576698