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_PARSING_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_H |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 bool is_computed_name) { | 588 bool is_computed_name) { |
589 return PreParserExpression::Default(value.variables_); | 589 return PreParserExpression::Default(value.variables_); |
590 } | 590 } |
591 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, | 591 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, |
592 PreParserExpression value, | 592 PreParserExpression value, |
593 bool is_computed_name) { | 593 bool is_computed_name) { |
594 return PreParserExpression::Default(value.variables_); | 594 return PreParserExpression::Default(value.variables_); |
595 } | 595 } |
596 PreParserExpression NewObjectLiteral(PreParserExpressionList properties, | 596 PreParserExpression NewObjectLiteral(PreParserExpressionList properties, |
597 int literal_index, | 597 int literal_index, |
598 int boilerplate_properties, | 598 int boilerplate_properties, int pos, |
599 bool has_seen_proto, int pos, | |
600 bool has_rest_property) { | 599 bool has_rest_property) { |
601 return PreParserExpression::ObjectLiteral(properties.variables_); | 600 return PreParserExpression::ObjectLiteral(properties.variables_); |
602 } | 601 } |
603 PreParserExpression NewVariableProxy(void* variable) { | 602 PreParserExpression NewVariableProxy(void* variable) { |
604 return PreParserExpression::Default(); | 603 return PreParserExpression::Default(); |
605 } | 604 } |
606 PreParserExpression NewProperty(PreParserExpression obj, | 605 PreParserExpression NewProperty(PreParserExpression obj, |
607 PreParserExpression key, | 606 PreParserExpression key, |
608 int pos) { | 607 int pos) { |
609 if (obj.IsThis()) { | 608 if (obj.IsThis()) { |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 function_state_->NextMaterializedLiteralIndex(); | 1655 function_state_->NextMaterializedLiteralIndex(); |
1657 function_state_->NextMaterializedLiteralIndex(); | 1656 function_state_->NextMaterializedLiteralIndex(); |
1658 } | 1657 } |
1659 return EmptyExpression(); | 1658 return EmptyExpression(); |
1660 } | 1659 } |
1661 | 1660 |
1662 } // namespace internal | 1661 } // namespace internal |
1663 } // namespace v8 | 1662 } // namespace v8 |
1664 | 1663 |
1665 #endif // V8_PARSING_PREPARSER_H | 1664 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |