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

Side by Side Diff: src/parsing/preparser.h

Issue 2632503003: [runtime] Allocate space for computed property names (Closed)
Patch Set: Comments and reorder. Created 3 years, 11 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/parsing/parser-base.h ('k') | src/runtime/runtime-literals.cc » ('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_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
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, int pos, 597 int boilerplate_properties,
598 bool has_seen_proto, int pos,
598 bool has_rest_property) { 599 bool has_rest_property) {
599 return PreParserExpression::ObjectLiteral(properties.variables_); 600 return PreParserExpression::ObjectLiteral(properties.variables_);
600 } 601 }
601 PreParserExpression NewVariableProxy(void* variable) { 602 PreParserExpression NewVariableProxy(void* variable) {
602 return PreParserExpression::Default(); 603 return PreParserExpression::Default();
603 } 604 }
604 PreParserExpression NewProperty(PreParserExpression obj, 605 PreParserExpression NewProperty(PreParserExpression obj,
605 PreParserExpression key, 606 PreParserExpression key,
606 int pos) { 607 int pos) {
607 if (obj.IsThis()) { 608 if (obj.IsThis()) {
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 function_state_->NextMaterializedLiteralIndex(); 1656 function_state_->NextMaterializedLiteralIndex();
1656 function_state_->NextMaterializedLiteralIndex(); 1657 function_state_->NextMaterializedLiteralIndex();
1657 } 1658 }
1658 return EmptyExpression(); 1659 return EmptyExpression();
1659 } 1660 }
1660 1661
1661 } // namespace internal 1662 } // namespace internal
1662 } // namespace v8 1663 } // namespace v8
1663 1664
1664 #endif // V8_PARSING_PREPARSER_H 1665 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime-literals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698