Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix more opt log output artifacts #201

Merged

Conversation

goto-bus-stop
Copy link
Contributor

This fixes an issue with log output lines like these (observed in Node 10.3 on Arch Linux):

INLINE (pp.expect) id{43--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/node_modules/acorn/dist/acorn.js:isKeyword) id{45,-1} start{27997} ---

INLINE (pp$8.curContext) id{54,3} AS 3--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/node_modules/acorn/dist/acorn.js:pp$5.enterLexicalScope) id{56,-1} start{108848} ---

INLINE (has) id{73,2} AS 2 AT <--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/bench/index.js:enter) id{75,-1} start{1141} ---

Previously, we loosened the FUNCTION SOURCE check so we would detect it
starting in the middle of another function. This issue occurs when a
FUNCTION SOURCE block starts in the middle of an INLINE () line.

When parsing an INLINE () line, this patch then also does the FUNCTION
SOURCE () check on whatever is left over.

Hopefully this is all we need to fix the flakiness on Circle in Flame!

This fixes an issue with log output lines like these (observed in Node 10.3 on Arch Linux):

```
INLINE (pp.expect) id{43--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/node_modules/acorn/dist/acorn.js:isKeyword) id{45,-1} start{27997} ---

INLINE (pp$8.curContext) id{54,3} AS 3--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/node_modules/acorn/dist/acorn.js:pp$5.enterLexicalScope) id{56,-1} start{108848} ---

INLINE (has) id{73,2} AS 2 AT <--- FUNCTION SOURCE (/home/goto-bus-stop/Code/goto-bus-stop/dash-ast/bench/index.js:enter) id{75,-1} start{1141} ---
```

Previously, we loosened the FUNCTION SOURCE check so we would detect it
starting in the middle of another function. This issue occurs when a
FUNCTION SOURCE block starts in the middle of an INLINE () line.

When parsing an INLINE () line, this patch then also does the FUNCTION
SOURCE () check on whatever is left over.
@davidmarkclements davidmarkclements merged commit 01c6c64 into davidmarkclements:master Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants