752b760308
A small one. pkg/analyzer/lib/src/dart/ast/ast.dart: JIT (tokens per microsecond): 1.7597% +/- 1.4621% (0.37 +/- 0.30) (20.79 -> 21.15) AOT (tokens per microsecond): 2.2547% +/- 1.6761% (0.62 +/- 0.46) (27.67 -> 28.30) Benchmarker (AOT): ``` msec task-clock:u: -2.4779% +/- 1.3546% (-73.29 +/- 40.07) (2957.87 -> 2884.58) cycles:u: -2.6238% +/- 1.3918% (-337224094.10 +/- 178886541.74) (12852601263.80 -> 12515377169.70) instructions:u: -0.9484% +/- 0.0000% (-260552753.00 +/- 375.88) (27473305680.40 -> 27212752927.40) branch-misses:u: -8.7134% +/- 6.9328% (-3191115.20 +/- 2538992.37) (36623085.10 -> 33431969.90) seconds time elapsed: -2.4691% +/- 1.3512% (-0.07 +/- 0.04) (2.96 -> 2.89) seconds user: -2.4294% +/- 1.3675% (-0.07 +/- 0.04) (2.93 -> 2.86) ``` pkg/front_end/lib/src/type_inference/inference_visitor.dart: JIT (tokens per microsecond): No change. AOT (tokens per microsecond): No change. Benchmarker (AOT): ``` msec task-clock:u: -4.3099% +/- 1.9546% (-136.28 +/- 61.81) (3162.10 -> 3025.81) cycles:u: -4.3066% +/- 1.9530% (-592061704.80 +/- 268488936.68) (13747787475.20 -> 13155725770.40) instructions:u: -0.5194% +/- 0.0000% (-156988901.90 +/- 1876.14) (30225890142.20 -> 30068901240.30) branch-misses:u: -14.2999% +/- 7.5350% (-6167339.80 +/- 3249736.99) (43128654.50 -> 36961314.70) seconds time elapsed: -4.3098% +/- 1.9527% (-0.14 +/- 0.06) (3.16 -> 3.03) seconds user: -4.3252% +/- 1.9575% (-0.14 +/- 0.06) (3.14 -> 3.01) ``` Change-Id: Ib70398e337c482f7427debb6875e2c17ccc6bd0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439740 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
65 lines
3.2 KiB
Plaintext
65 lines
3.2 KiB
Plaintext
parseUnit(main)
|
|
skipErrorTokens(main)
|
|
listener: beginCompilationUnit(main)
|
|
syntheticPreviousToken(main)
|
|
parseTopLevelDeclarationImpl(, DirectiveContext(DirectiveState.Unknown))
|
|
parseMetadataStar()
|
|
listener: beginMetadataStar(main)
|
|
listener: endMetadataStar(0)
|
|
parseTopLevelMemberImpl()
|
|
listener: beginTopLevelMember(main)
|
|
isReservedKeyword(()
|
|
parseTopLevelMethod(, null, null, , NoType(), null, main, false)
|
|
listener: beginTopLevelMethod(, null, null)
|
|
listener: handleNoType()
|
|
ensureIdentifierPotentiallyRecovered(, topLevelFunctionDeclaration, false)
|
|
listener: handleIdentifier(main, topLevelFunctionDeclaration)
|
|
parseMethodTypeVar(main)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(main, main, false, MemberKind.TopLevelMethod)
|
|
parseFormalParameters(main, MemberKind.TopLevelMethod)
|
|
parseFormalParametersRest((, MemberKind.TopLevelMethod)
|
|
listener: beginFormalParameters((, MemberKind.TopLevelMethod)
|
|
listener: endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
|
|
parseAsyncModifierOpt())
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
parseFunctionBody(), false, false)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, local)
|
|
parseStatement({)
|
|
parseStatementX({)
|
|
parseExpressionStatementOrDeclarationAfterModifiers({, {, null, null, null, null)
|
|
looksLikeLocalFunction(local)
|
|
listener: beginMetadataStar(local)
|
|
listener: endMetadataStar(0)
|
|
listener: handleNoTypeVariables(()
|
|
listener: beginLocalFunctionDeclaration(local)
|
|
listener: handleNoType({)
|
|
parseNamedFunctionRest({, local, local, false)
|
|
listener: beginFunctionName(local)
|
|
ensureIdentifier({, localFunctionDeclaration)
|
|
listener: handleIdentifier(local, localFunctionDeclaration)
|
|
listener: endFunctionName(local, (, false)
|
|
parseFormalParametersRequiredOpt(local, MemberKind.Local)
|
|
parseFormalParametersRest((, MemberKind.Local)
|
|
listener: beginFormalParameters((, MemberKind.Local)
|
|
listener: endFormalParameters(0, (, ), MemberKind.Local)
|
|
parseInitializersOpt())
|
|
listener: handleNoInitializers()
|
|
parseAsyncOptBody(), false, false)
|
|
parseAsyncModifierOpt())
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
parseFunctionBody(), false, false)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
listener: endLocalFunctionDeclaration(})
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(1, {, })
|
|
listener: endTopLevelMethod(main, null, })
|
|
listener: endTopLevelDeclaration(})
|
|
reportAllErrorTokens(main)
|
|
listener: endCompilationUnit(1, )
|