| OLD | NEW |
| 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-value-factory.h" | 8 #include "src/ast/ast-value-factory.h" |
| 9 #include "src/ast/modules.h" | 9 #include "src/ast/modules.h" |
| 10 #include "src/ast/variables.h" | 10 #include "src/ast/variables.h" |
| (...skipping 3386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3397 } | 3397 } |
| 3398 | 3398 |
| 3399 FunctionLiteral* NewFunctionLiteral( | 3399 FunctionLiteral* NewFunctionLiteral( |
| 3400 const AstRawString* name, Scope* scope, ZoneList<Statement*>* body, | 3400 const AstRawString* name, Scope* scope, ZoneList<Statement*>* body, |
| 3401 int materialized_literal_count, int expected_property_count, | 3401 int materialized_literal_count, int expected_property_count, |
| 3402 int parameter_count, | 3402 int parameter_count, |
| 3403 FunctionLiteral::ParameterFlag has_duplicate_parameters, | 3403 FunctionLiteral::ParameterFlag has_duplicate_parameters, |
| 3404 FunctionLiteral::FunctionType function_type, | 3404 FunctionLiteral::FunctionType function_type, |
| 3405 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind, | 3405 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind, |
| 3406 int position) { | 3406 int position) { |
| 3407 return new (parser_zone_) FunctionLiteral( | 3407 return new (local_zone_) FunctionLiteral( |
| 3408 parser_zone_, name, ast_value_factory_, scope, body, | 3408 local_zone_, name, ast_value_factory_, scope, body, |
| 3409 materialized_literal_count, expected_property_count, parameter_count, | 3409 materialized_literal_count, expected_property_count, parameter_count, |
| 3410 function_type, has_duplicate_parameters, eager_compile_hint, kind, | 3410 function_type, has_duplicate_parameters, eager_compile_hint, kind, |
| 3411 position, true); | 3411 position, true); |
| 3412 } | 3412 } |
| 3413 | 3413 |
| 3414 // Creates a FunctionLiteral representing a top-level script, the | 3414 // Creates a FunctionLiteral representing a top-level script, the |
| 3415 // result of an eval (top-level or otherwise), or the result of calling | 3415 // result of an eval (top-level or otherwise), or the result of calling |
| 3416 // the Function constructor. | 3416 // the Function constructor. |
| 3417 FunctionLiteral* NewScriptOrEvalFunctionLiteral( | 3417 FunctionLiteral* NewScriptOrEvalFunctionLiteral( |
| 3418 Scope* scope, ZoneList<Statement*>* body, int materialized_literal_count, | 3418 Scope* scope, ZoneList<Statement*>* body, int materialized_literal_count, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3540 : NULL; \ | 3540 : NULL; \ |
| 3541 } | 3541 } |
| 3542 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3542 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3543 #undef DECLARE_NODE_FUNCTIONS | 3543 #undef DECLARE_NODE_FUNCTIONS |
| 3544 | 3544 |
| 3545 | 3545 |
| 3546 } // namespace internal | 3546 } // namespace internal |
| 3547 } // namespace v8 | 3547 } // namespace v8 |
| 3548 | 3548 |
| 3549 #endif // V8_AST_AST_H_ | 3549 #endif // V8_AST_AST_H_ |
| OLD | NEW |