DescriptionCpuProfiler: do not calculate positions if it is not necessary (TryInline part).
TryInline needed position only for the case when we track positions.
We can drop the position argument and use the current position from GraphBuilder.
The only problem that it doesn't match with the inline point.
The reason of that was the fact that builder had moved the position forward by
visiting arguments expressions.
I fixed this by restoring the current positon in HOptimizedGraphBuilderWithPositions::Visit*
BUG=452067
LOG=n
Committed: https://crrev.com/cbda41c88aa0813be7a4ecc0aeb1559000680c2b
Cr-Commit-Position: refs/heads/master@{#26953}
Patch Set 1 #Patch Set 2 : unnecessary change was removed #
Messages
Total messages: 12 (5 generated)
|