Commit 2ccc921f authored by Daniel Clifford's avatar Daniel Clifford Committed by Commit Bot

[torque] cleanup intrinsic-related names in parser

Bug: v8:7793
Change-Id: Iccf60ed192fd91456caa730d5ea98dd3abe3614e
Reviewed-on: https://chromium-review.googlesource.com/c/1348076Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Daniel Clifford <danno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57752}
parent ae9a15fe
......@@ -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),
......
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