Reland "[parser] Removed unnecessary copies"
This is a reland of d16bce9db8
Original change's description:
> [parser] Removed unnecessary copies
>
> Bug: v8:8015
> Change-Id: I2ee074559484b9865dc1a27e6ea697ca311ee7ee
> Reviewed-on: https://chromium-review.googlesource.com/1185198
> Reviewed-by: Marja Hölttä <marja@chromium.org>
> Commit-Queue: Florian Sattler <sattlerf@google.com>
> Cr-Commit-Position: refs/heads/master@{#55327}
Bug: v8:8015
Change-Id: I63cf34898f4bbdba84f44e3769301d028ea49965
Reviewed-on: https://chromium-review.googlesource.com/1188142
Reviewed-by: Marja Hölttä <marja@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55375}
This commit is contained in:
parent
cfd752afa1
commit
c8f9ba0687
@ -1404,7 +1404,7 @@ Block* Parser::BuildInitializationBlock(
|
||||
DeclarationParsingResult* parsing_result,
|
||||
ZonePtrList<const AstRawString>* names, bool* ok) {
|
||||
Block* result = factory()->NewBlock(1, true);
|
||||
for (auto declaration : parsing_result->declarations) {
|
||||
for (const auto& declaration : parsing_result->declarations) {
|
||||
DeclareAndInitializeVariables(result, &(parsing_result->descriptor),
|
||||
&declaration, names, CHECK_OK);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user