Commit 3f37b8cc authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[parser] Pass PreParserIdentifier / Expression by const&.

Now that they contain more than just one member variable, this might make
sense (and at least doesn't do any harm).

BUG=v8:6092

Change-Id: Ibd150bedf542580f69946f62f8aca47bce945499
Reviewed-on: https://chromium-review.googlesource.com/623748
Commit-Queue: Marja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47547}
parent 415c72dd
...@@ -396,7 +396,7 @@ PreParserStatement PreParser::BuildParameterInitializationBlock( ...@@ -396,7 +396,7 @@ PreParserStatement PreParser::BuildParameterInitializationBlock(
} }
PreParserExpression PreParser::ExpressionFromIdentifier( PreParserExpression PreParser::ExpressionFromIdentifier(
PreParserIdentifier name, int start_position, InferName infer) { const PreParserIdentifier& name, int start_position, InferName infer) {
VariableProxy* proxy = nullptr; VariableProxy* proxy = nullptr;
if (track_unresolved_variables_) { if (track_unresolved_variables_) {
DCHECK_NOT_NULL(name.string_); DCHECK_NOT_NULL(name.string_);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment