Skip to content

Commit 49a9d42

Browse files
jensjohaCommit Queue
authored andcommitted
[scanner] Ask VM to inline Token._setCommentParent
From the scanner benchmark with --bytes: ``` N Min Max Median Avg Stddev x 25 135.49248 140.11327 137.90404 137.70731 1.1732525 + 25 135.55161 143.54553 141.81997 141.37336 1.8048844 Difference at 95.0% confidence 3.66606 +/- 0.865817 2.66221% +/- 0.628737% (Student's t, pooled s = 1.52219) ``` Change-Id: Ia69010d6215f59242b7f4e91d1af295cf4db1775 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407421 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
1 parent 95265c3 commit 49a9d42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/_fe_analyzer_shared/lib/src/scanner/token.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ class SimpleToken implements Token {
696696
* Sets the `parent` property to `this` for the given [comment] and all the
697697
* next tokens.
698698
*/
699+
@pragma("vm:prefer-inline")
699700
void _setCommentParent(CommentToken? comment) {
700701
while (comment != null) {
701702
comment.parent = this;

0 commit comments

Comments
 (0)