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

Side by Side Diff: src/ast.h

Issue 1128043006: [destructuring] Adapting PatternRewriter to work in for-statements. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 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 unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_AST_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 3334 matching lines...) Expand 10 before | Expand all | Expand 10 after
3345 VariableProxy* NewVariableProxy(Variable* var, 3345 VariableProxy* NewVariableProxy(Variable* var,
3346 int start_position = RelocInfo::kNoPosition, 3346 int start_position = RelocInfo::kNoPosition,
3347 int end_position = RelocInfo::kNoPosition) { 3347 int end_position = RelocInfo::kNoPosition) {
3348 return new (zone_) VariableProxy(zone_, var, start_position, end_position); 3348 return new (zone_) VariableProxy(zone_, var, start_position, end_position);
3349 } 3349 }
3350 3350
3351 VariableProxy* NewVariableProxy(const AstRawString* name, 3351 VariableProxy* NewVariableProxy(const AstRawString* name,
3352 Variable::Kind variable_kind, 3352 Variable::Kind variable_kind,
3353 int start_position = RelocInfo::kNoPosition, 3353 int start_position = RelocInfo::kNoPosition,
3354 int end_position = RelocInfo::kNoPosition) { 3354 int end_position = RelocInfo::kNoPosition) {
3355 DCHECK_NOT_NULL(name);
3355 return new (zone_) 3356 return new (zone_)
3356 VariableProxy(zone_, name, variable_kind, start_position, end_position); 3357 VariableProxy(zone_, name, variable_kind, start_position, end_position);
3357 } 3358 }
3358 3359
3359 Property* NewProperty(Expression* obj, Expression* key, int pos) { 3360 Property* NewProperty(Expression* obj, Expression* key, int pos) {
3360 return new (zone_) Property(zone_, obj, key, pos); 3361 return new (zone_) Property(zone_, obj, key, pos);
3361 } 3362 }
3362 3363
3363 Call* NewCall(Expression* expression, 3364 Call* NewCall(Expression* expression,
3364 ZoneList<Expression*>* arguments, 3365 ZoneList<Expression*>* arguments,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 3488
3488 private: 3489 private:
3489 Zone* zone_; 3490 Zone* zone_;
3490 AstValueFactory* ast_value_factory_; 3491 AstValueFactory* ast_value_factory_;
3491 }; 3492 };
3492 3493
3493 3494
3494 } } // namespace v8::internal 3495 } } // namespace v8::internal
3495 3496
3496 #endif // V8_AST_H_ 3497 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698