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

Side by Side Diff: src/ast/ast.h

Issue 2302783002: [modules] Basic support of exports (Closed)
Patch Set: Disable module tests for deopt fuzzer. Created 4 years, 3 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 | « src/api.cc ('k') | src/ast/modules.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_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/ast/ast-types.h" 8 #include "src/ast/ast-types.h"
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/modules.h" 10 #include "src/ast/modules.h"
(...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after
3371 materialized_literal_count, expected_property_count, parameter_count, 3371 materialized_literal_count, expected_property_count, parameter_count,
3372 function_type, has_duplicate_parameters, eager_compile_hint, kind, 3372 function_type, has_duplicate_parameters, eager_compile_hint, kind,
3373 position, true); 3373 position, true);
3374 } 3374 }
3375 3375
3376 // Creates a FunctionLiteral representing a top-level script, the 3376 // Creates a FunctionLiteral representing a top-level script, the
3377 // result of an eval (top-level or otherwise), or the result of calling 3377 // result of an eval (top-level or otherwise), or the result of calling
3378 // the Function constructor. 3378 // the Function constructor.
3379 FunctionLiteral* NewScriptOrEvalFunctionLiteral( 3379 FunctionLiteral* NewScriptOrEvalFunctionLiteral(
3380 DeclarationScope* scope, ZoneList<Statement*>* body, 3380 DeclarationScope* scope, ZoneList<Statement*>* body,
3381 int materialized_literal_count, int expected_property_count) { 3381 int materialized_literal_count, int expected_property_count,
3382 int parameter_count) {
3382 return new (zone_) FunctionLiteral( 3383 return new (zone_) FunctionLiteral(
3383 zone_, ast_value_factory_->empty_string(), ast_value_factory_, scope, 3384 zone_, ast_value_factory_->empty_string(), ast_value_factory_, scope,
3384 body, materialized_literal_count, expected_property_count, 0, 3385 body, materialized_literal_count, expected_property_count,
3385 FunctionLiteral::kAnonymousExpression, 3386 parameter_count, FunctionLiteral::kAnonymousExpression,
3386 FunctionLiteral::kNoDuplicateParameters, 3387 FunctionLiteral::kNoDuplicateParameters,
3387 FunctionLiteral::kShouldLazyCompile, FunctionKind::kNormalFunction, 0, 3388 FunctionLiteral::kShouldLazyCompile, FunctionKind::kNormalFunction, 0,
3388 false); 3389 false);
3389 } 3390 }
3390 3391
3391 ClassLiteral::Property* NewClassLiteralProperty( 3392 ClassLiteral::Property* NewClassLiteralProperty(
3392 Expression* key, Expression* value, ClassLiteralProperty::Kind kind, 3393 Expression* key, Expression* value, ClassLiteralProperty::Kind kind,
3393 bool is_static, bool is_computed_name) { 3394 bool is_static, bool is_computed_name) {
3394 return new (zone_) 3395 return new (zone_)
3395 ClassLiteral::Property(key, value, kind, is_static, is_computed_name); 3396 ClassLiteral::Property(key, value, kind, is_static, is_computed_name);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 : NULL; \ 3504 : NULL; \
3504 } 3505 }
3505 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3506 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3506 #undef DECLARE_NODE_FUNCTIONS 3507 #undef DECLARE_NODE_FUNCTIONS
3507 3508
3508 3509
3509 } // namespace internal 3510 } // namespace internal
3510 } // namespace v8 3511 } // namespace v8
3511 3512
3512 #endif // V8_AST_AST_H_ 3513 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/ast/modules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698