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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart

Issue 255843005: Avoid generating VariableUse nodes with non-identifier names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/js_backend/checked_mode_helpers.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart b/sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart
index 5b3efd862f4492f5bc1083696257b93e1610f699..caf52b060308fbc781b40c46fe59a72f863af1de 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart
@@ -19,8 +19,8 @@ class CheckedModeHelper {
codegen.use(node.checkedInput);
arguments.add(codegen.pop());
generateAdditionalArguments(codegen, node, arguments);
- String helperName = codegen.backend.namer.isolateAccess(helperElement);
- return new jsAst.Call(new jsAst.VariableUse(helperName), arguments);
+ jsAst.Expression helper = codegen.backend.namer.elementAccess(helperElement);
+ return new jsAst.Call(helper, arguments);
}
void generateAdditionalArguments(SsaCodeGenerator codegen,

Powered by Google App Engine
This is Rietveld 408576698