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

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

Issue 16059005: Fix a bug where we would emit: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | tests/language/for_inlining_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 23244)
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -2047,10 +2047,14 @@
void visitStaticStore(HStaticStore node) {
world.registerStaticUse(node.element);
- js.VariableUse variableUse =
- new js.VariableUse(backend.namer.isolateAccess(node.element));
+ js.VariableUse isolate = new js.VariableUse(backend.namer.CURRENT_ISOLATE);
+ // Create a property access to make sure expressions and variable
+ // declarations recognizers don't see this assignment as a local
+ // assignment.
+ js.Node variable = new js.PropertyAccess.field(
+ isolate, backend.namer.getName(node.element));
use(node.inputs[0]);
- push(new js.Assignment(variableUse, pop()), node);
+ push(new js.Assignment(variable, pop()), node);
}
void visitStringConcat(HStringConcat node) {
« no previous file with comments | « no previous file | tests/language/for_inlining_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698