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

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

Issue 1647213002: Remove unnecessary ClassLiteral name member and simplify Function.name handling (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Slightly shorter Created 4 years, 10 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/runtime/runtime.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_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/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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 int pos) { 797 int pos) {
798 return PreParserExpression::Default(); 798 return PreParserExpression::Default();
799 } 799 }
800 800
801 static PreParserExpression FunctionSentExpression(Scope* scope, 801 static PreParserExpression FunctionSentExpression(Scope* scope,
802 PreParserFactory* factory, 802 PreParserFactory* factory,
803 int pos) { 803 int pos) {
804 return PreParserExpression::Default(); 804 return PreParserExpression::Default();
805 } 805 }
806 806
807 static PreParserExpression DefaultConstructor(bool call_super, Scope* scope,
808 int pos, int end_pos) {
809 return PreParserExpression::Default();
810 }
811
812 static PreParserExpression ExpressionFromLiteral( 807 static PreParserExpression ExpressionFromLiteral(
813 Token::Value token, int pos, Scanner* scanner, 808 Token::Value token, int pos, Scanner* scanner,
814 PreParserFactory* factory) { 809 PreParserFactory* factory) {
815 return PreParserExpression::Default(); 810 return PreParserExpression::Default();
816 } 811 }
817 812
818 static PreParserExpression ExpressionFromIdentifier( 813 static PreParserExpression ExpressionFromIdentifier(
819 PreParserIdentifier name, int start_position, int end_position, 814 PreParserIdentifier name, int start_position, int end_position,
820 Scope* scope, PreParserFactory* factory) { 815 Scope* scope, PreParserFactory* factory) {
821 return PreParserExpression::FromIdentifier(name); 816 return PreParserExpression::FromIdentifier(name);
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 const PreParserFormalParameters& parameters, FunctionKind kind, 1157 const PreParserFormalParameters& parameters, FunctionKind kind,
1163 FunctionLiteral::FunctionType function_type, bool* ok) { 1158 FunctionLiteral::FunctionType function_type, bool* ok) {
1164 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1159 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1165 kind, function_type, ok); 1160 kind, function_type, ok);
1166 } 1161 }
1167 1162
1168 } // namespace internal 1163 } // namespace internal
1169 } // namespace v8 1164 } // namespace v8
1170 1165
1171 #endif // V8_PARSING_PREPARSER_H 1166 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698