summaryrefslogtreecommitdiff
path: root/chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-09-29 18:17:07 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-09-30 08:34:04 +0000
commit2eb1e44ebb98208ec9bd0acb0c410e95e8f253b9 (patch)
tree7d38a31d1fc28a0b5169fdc87ac57f984c937d88 /chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc
parent1ca3e7634f3989aec9631cfbcfd5a46bde4ebf24 (diff)
downloadqtwebengine-chromium-2eb1e44ebb98208ec9bd0acb0c410e95e8f253b9.tar.gz
BASELINE: Update Chromium to 53.0.2785.148
Also adds a few chrome constants we partly use Change-Id: Ibba81935bb9d7bbcf3c0e16649fb4c7f8b2b4f8a Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc')
-rw-r--r--chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc b/chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc
index 334c5978a86..97da140b81c 100644
--- a/chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc
+++ b/chromium/v8/src/compiler/ast-loop-assignment-analyzer.cc
@@ -254,10 +254,12 @@ void ALAA::VisitForStatement(ForStatement* loop) {
void ALAA::VisitForInStatement(ForInStatement* loop) {
+ Expression* l = loop->each();
Enter(loop);
- Visit(loop->each());
+ Visit(l);
Visit(loop->subject());
Visit(loop->body());
+ if (l->IsVariableProxy()) AnalyzeAssignment(l->AsVariableProxy()->var());
Exit(loop);
}