[torque] cleanup intrinsic-related names in parser

Bug: v8:7793
Change-Id: Iccf60ed192fd91456caa730d5ea98dd3abe3614e
Reviewed-on: https://chromium-review.googlesource.com/c/1348076
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Daniel Clifford <danno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57752}
This commit is contained in:
Daniel Clifford 2018-11-22 15:08:10 +01:00 committed by Commit Bot
parent ae9a15fefe
commit 2ccc921fd4

View File

@ -269,7 +269,7 @@ base::Optional<ParseResult> MakeBinaryOperator(
std::vector<Statement*>{})};
}
base::Optional<ParseResult> MakeIntrinsicDeclarationCallExpression(
base::Optional<ParseResult> MakeIntrinsicCallExpression(
ParseResultIterator* child_results) {
auto callee = child_results->NextAs<std::string>();
auto generic_arguments =
@ -1282,15 +1282,15 @@ struct TorqueGrammar : Grammar {
{&identifierExpression, &argumentList, optionalOtherwise}, MakeCall)};
// Result: Expression*
Symbol IntrinsicCallExpression = {Rule(
Symbol intrinsicCallExpression = {Rule(
{&intrinsicName, TryOrDefault<TypeList>(&genericSpecializationTypeList),
&argumentList},
MakeIntrinsicDeclarationCallExpression)};
MakeIntrinsicCallExpression)};
// Result: Expression*
Symbol primaryExpression = {
Rule({&callExpression}),
Rule({&IntrinsicCallExpression}),
Rule({&intrinsicCallExpression}),
Rule({&locationExpression},
CastParseResult<LocationExpression*, Expression*>),
Rule({&decimalLiteral}, MakeNumberLiteralExpression),