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