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

Side by Side Diff: src/parsing/parser-base.h

Issue 1567603005: Set up rewriting triggers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add some more forgotten triggers Created 4 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.cc ('k') | src/parsing/preparser.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_PARSING_PARSER_BASE_H 5 #ifndef V8_PARSING_PARSER_BASE_H
6 #define V8_PARSING_PARSER_BASE_H 6 #define V8_PARSING_PARSER_BASE_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 is_static, *is_computed_name); 1757 is_static, *is_computed_name);
1758 } 1758 }
1759 1759
1760 if (in_class && name_is_static && !is_static) { 1760 if (in_class && name_is_static && !is_static) {
1761 // ClassElement (static) 1761 // ClassElement (static)
1762 // 'static' MethodDefinition 1762 // 'static' MethodDefinition
1763 *name = this->EmptyIdentifier(); 1763 *name = this->EmptyIdentifier();
1764 ObjectLiteralPropertyT property = ParsePropertyDefinition( 1764 ObjectLiteralPropertyT property = ParsePropertyDefinition(
1765 checker, true, has_extends, true, is_computed_name, nullptr, classifier, 1765 checker, true, has_extends, true, is_computed_name, nullptr, classifier,
1766 name, ok); 1766 name, ok);
1767 property = Traits::RewriteObjectLiteralProperty(property, classifier, ok); 1767 property = Traits::RewriteNonPatternObjectLiteralProperty(property,
1768 classifier, ok);
1768 return property; 1769 return property;
1769 } 1770 }
1770 1771
1771 if (is_get || is_set) { 1772 if (is_get || is_set) {
1772 // MethodDefinition (Accessors) 1773 // MethodDefinition (Accessors)
1773 // get PropertyName '(' ')' '{' FunctionBody '}' 1774 // get PropertyName '(' ')' '{' FunctionBody '}'
1774 // set PropertyName '(' PropertySetParameterList ')' '{' FunctionBody '}' 1775 // set PropertyName '(' PropertySetParameterList ')' '{' FunctionBody '}'
1775 *name = this->EmptyIdentifier(); 1776 *name = this->EmptyIdentifier();
1776 bool dont_care = false; 1777 bool dont_care = false;
1777 name_token = peek(); 1778 name_token = peek();
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
3344 return; 3345 return;
3345 } 3346 }
3346 has_seen_constructor_ = true; 3347 has_seen_constructor_ = true;
3347 return; 3348 return;
3348 } 3349 }
3349 } 3350 }
3350 } // namespace internal 3351 } // namespace internal
3351 } // namespace v8 3352 } // namespace v8
3352 3353
3353 #endif // V8_PARSING_PARSER_BASE_H 3354 #endif // V8_PARSING_PARSER_BASE_H
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | src/parsing/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698