-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Pretty printer algorithm revamp step 3 #93102
Merged
Merged
Commits on Jan 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eec6016 - Browse repository at this point
Copy the full SHA eec6016View commit details -
Grow scan_stack in the conventional direction
The pretty printer algorithm involves 2 VecDeques: a ring-buffer of tokens and a deque of ring-buffer indices. Confusingly, those two deques were being grown in opposite directions for no good reason. Ring-buffer pushes would go on the "back" of the ring-buffer (i.e. higher indices) while scan_stack pushes would go on the "front" (i.e. lower indices). This commit flips the scan_stack accesses to grow the scan_stack and ring-buffer in the same direction, where push does the same operation as a Vec push i.e. inserting on the high-index end.
Configuration menu - View commit details
-
Copy full SHA for d81740e - Browse repository at this point
Copy the full SHA d81740eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d981c5b - Browse repository at this point
Copy the full SHA d981c5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 351011e - Browse repository at this point
Copy the full SHA 351011eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2eb46c - Browse repository at this point
Copy the full SHA d2eb46cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae75ba6 - Browse repository at this point
Copy the full SHA ae75ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea23a1f - Browse repository at this point
Copy the full SHA ea23a1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f15a8 - Browse repository at this point
Copy the full SHA d5f15a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65dd670 - Browse repository at this point
Copy the full SHA 65dd670View commit details -
Eliminate offset number from Fits frames
PrintStackElems with pbreak=PrintStackBreak::Fits always carried a meaningless value offset=0. We can combine the two types PrintStackElem + PrintStackBreak into one PrintFrame enum that stores offset only for Broken frames.
Configuration menu - View commit details
-
Copy full SHA for 9e794d7 - Browse repository at this point
Copy the full SHA 9e794d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 224536f - Browse repository at this point
Copy the full SHA 224536fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51eeb82 - Browse repository at this point
Copy the full SHA 51eeb82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21c1571 - Browse repository at this point
Copy the full SHA 21c1571View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.