forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Courgette] Refactor: Add AssemblyProgram::DispatchInstructionLabels(…
…) to hide InstructionVector usage. To reduce Courgette memory usage (and possibly solve installer crashes), we plan to make AssemblyProgram store instructions more efficiently. We start by hiding AssemblyProgram's InstructionVector usage from AdjustmentMethod and AdjustmentMethod2. Previously AdjustmentMethod[2] get AssemblyProgram's instruction vector, and loop over it to extract labels from abs32/rel32 instructions. This CL moves the loop into AssemblyProgram::DispatchInstructionLabels(). Callers now specify a map of handlers, without needing to know how instructions are stored in AssemblyProgram. Review-Url: https://codereview.chromium.org/2457133002 Cr-Commit-Position: refs/heads/master@{#428522}
- Loading branch information
1 parent
0d496dc
commit 99a5a8c
Showing
4 changed files
with
43 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters