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

Unified Diff: src/parsing/parser.cc

Issue 2263973003: [parser] Modify some const qualifications (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/parser.h ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index ad00bc8e2beb8193a43b275ec042f09da8f09954..7f27d2013791e92c5f40fd225a6e64f7b76a39fa 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -577,13 +577,13 @@ const AstRawString* ParserTraits::GetNextSymbol(Scanner* scanner) const {
return parser_->scanner()->NextSymbol(parser_->ast_value_factory());
}
-Expression* ParserTraits::ThisExpression(int pos) const {
+Expression* ParserTraits::ThisExpression(int pos) {
return parser_->NewUnresolved(parser_->ast_value_factory()->this_string(),
pos, pos + 4, Variable::THIS);
}
Expression* ParserTraits::NewSuperPropertyReference(AstNodeFactory* factory,
- int pos) const {
+ int pos) {
// this_function[home_object_symbol]
VariableProxy* this_function_proxy = parser_->NewUnresolved(
parser_->ast_value_factory()->this_function_string(), pos);
@@ -596,7 +596,7 @@ Expression* ParserTraits::NewSuperPropertyReference(AstNodeFactory* factory,
}
Expression* ParserTraits::NewSuperCallReference(AstNodeFactory* factory,
- int pos) const {
+ int pos) {
VariableProxy* new_target_proxy = parser_->NewUnresolved(
parser_->ast_value_factory()->new_target_string(), pos);
VariableProxy* this_function_proxy = parser_->NewUnresolved(
@@ -606,7 +606,7 @@ Expression* ParserTraits::NewSuperCallReference(AstNodeFactory* factory,
pos);
}
-Expression* ParserTraits::NewTargetExpression(int pos) const {
+Expression* ParserTraits::NewTargetExpression(int pos) {
static const int kNewTargetStringLength = 10;
auto proxy =
parser_->NewUnresolved(parser_->ast_value_factory()->new_target_string(),
@@ -656,7 +656,7 @@ Literal* ParserTraits::ExpressionFromLiteral(Token::Value token, int pos,
Expression* ParserTraits::ExpressionFromIdentifier(const AstRawString* name,
int start_position,
int end_position,
- InferName infer) const {
+ InferName infer) {
if (infer == InferName::kYes && parser_->fni_ != NULL) {
parser_->fni_->PushVariableName(name);
}
« no previous file with comments | « src/parsing/parser.h ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698