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

Side by Side Diff: src/ast-this-access-visitor.cc

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Flag calls as spread calls in parser, error on spread intrinsics/construct calls Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast-this-access-visitor.h" 5 #include "src/ast-this-access-visitor.h"
6 #include "src/parser.h" 6 #include "src/parser.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 Visit(e->right()); 168 Visit(e->right());
169 } 169 }
170 170
171 171
172 void ATAV::VisitCompareOperation(CompareOperation* e) { 172 void ATAV::VisitCompareOperation(CompareOperation* e) {
173 Visit(e->left()); 173 Visit(e->left());
174 Visit(e->right()); 174 Visit(e->right());
175 } 175 }
176 176
177 177
178 void ATAV::VisitSpreadOperation(SpreadOperation* e) {
179 Visit(e->expression());
180 }
181
182
178 void ATAV::VisitCaseClause(CaseClause* cc) { 183 void ATAV::VisitCaseClause(CaseClause* cc) {
179 if (!cc->is_default()) Visit(cc->label()); 184 if (!cc->is_default()) Visit(cc->label());
180 VisitStatements(cc->statements()); 185 VisitStatements(cc->statements());
181 } 186 }
182 187
183 188
184 void ATAV::VisitModuleStatement(ModuleStatement* stmt) { Visit(stmt->body()); } 189 void ATAV::VisitModuleStatement(ModuleStatement* stmt) { Visit(stmt->body()); }
185 190
186 191
187 void ATAV::VisitTryCatchStatement(TryCatchStatement* stmt) { 192 void ATAV::VisitTryCatchStatement(TryCatchStatement* stmt) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 Visit(stmt->value()); 235 Visit(stmt->value());
231 } 236 }
232 237
233 238
234 void ATAV::VisitCountOperation(CountOperation* e) { 239 void ATAV::VisitCountOperation(CountOperation* e) {
235 Expression* l = e->expression(); 240 Expression* l = e->expression();
236 Visit(l); 241 Visit(l);
237 } 242 }
238 } 243 }
239 } // namespace v8::internal 244 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/bailout-reason.h » ('j') | src/compiler/ast-graph-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698