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

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

Issue 2445993002: Drop unused end-position from VariableProxy (Closed)
Patch Set: Addressed comment Created 4 years, 1 month 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/pattern-rewriter.cc ('k') | src/parsing/preparser.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/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/parsing/parser-base.h" 9 #include "src/parsing/parser-base.h"
10 10
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 V8_INLINE PreParserExpression FunctionSentExpression(int pos) { 1376 V8_INLINE PreParserExpression FunctionSentExpression(int pos) {
1377 return PreParserExpression::Default(); 1377 return PreParserExpression::Default();
1378 } 1378 }
1379 1379
1380 V8_INLINE PreParserExpression ExpressionFromLiteral(Token::Value token, 1380 V8_INLINE PreParserExpression ExpressionFromLiteral(Token::Value token,
1381 int pos) { 1381 int pos) {
1382 return PreParserExpression::Default(); 1382 return PreParserExpression::Default();
1383 } 1383 }
1384 1384
1385 PreParserExpression ExpressionFromIdentifier( 1385 PreParserExpression ExpressionFromIdentifier(
1386 PreParserIdentifier name, int start_position, int end_position, 1386 PreParserIdentifier name, int start_position,
1387 InferName infer = InferName::kYes); 1387 InferName infer = InferName::kYes);
1388 1388
1389 V8_INLINE PreParserExpression ExpressionFromString(int pos) { 1389 V8_INLINE PreParserExpression ExpressionFromString(int pos) {
1390 if (scanner()->UnescapedLiteralMatches("use strict", 10)) { 1390 if (scanner()->UnescapedLiteralMatches("use strict", 10)) {
1391 return PreParserExpression::UseStrictStringLiteral(); 1391 return PreParserExpression::UseStrictStringLiteral();
1392 } 1392 }
1393 return PreParserExpression::StringLiteral(); 1393 return PreParserExpression::StringLiteral();
1394 } 1394 }
1395 1395
1396 V8_INLINE PreParserExpressionList NewExpressionList(int size) const { 1396 V8_INLINE PreParserExpressionList NewExpressionList(int size) const {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 function_state_->NextMaterializedLiteralIndex(); 1540 function_state_->NextMaterializedLiteralIndex();
1541 function_state_->NextMaterializedLiteralIndex(); 1541 function_state_->NextMaterializedLiteralIndex();
1542 } 1542 }
1543 return EmptyExpression(); 1543 return EmptyExpression();
1544 } 1544 }
1545 1545
1546 } // namespace internal 1546 } // namespace internal
1547 } // namespace v8 1547 } // namespace v8
1548 1548
1549 #endif // V8_PARSING_PREPARSER_H 1549 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698