OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |