• huangs's avatar
    [Courgette] Refactor: Add CourgetteFlow; improve courgette_tool.cc help text. · 8b91a4c9
    huangs authored
    High level flows in Courgette has messy error-handling code that's
    hard to read. This CL adds CourgetteFlow to absorb commonly used data
    and error-handling code, and improve readability of high-level logic.
    Additional changes:
    - Fix Courgette-disadj (debugging flow), which likely was broken by
      http://crrev.com/2793153003; Adjust() is called but AssemblyProgram
      did not annotate Labels.
    - Add BasicBuffer interface, implemented by RegionBuffer and (existing)
      BufferedFileReader.
    - PatchGeneratorX86_32::Transform(): Implemented TODO to instantiate
      "new" AssemblyProgram to reduce Courgette-gen peak memory.
    - courgette_tools.cc: Make help text more uniform.
    
    BUG=660980
    
    Review-Url: https://codereview.chromium.org/2827103002
    Cr-Commit-Position: refs/heads/master@{#467157}
    8b91a4c9
Name
Last commit
Last update
..
testdata Loading commit data...
third_party Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
adjustment_method.cc Loading commit data...
adjustment_method.h Loading commit data...
adjustment_method_2.cc Loading commit data...
adjustment_method_unittest.cc Loading commit data...
analyze_mem_test Loading commit data...
analyze_stress_test Loading commit data...
assembly_program.cc Loading commit data...
assembly_program.h Loading commit data...
base_test_unittest.cc Loading commit data...
base_test_unittest.h Loading commit data...
bsdiff_memory_unittest.cc Loading commit data...
consecutive_range_visitor.h Loading commit data...
consecutive_range_visitor_unittest.cc Loading commit data...
courgette.h Loading commit data...
courgette_application.png Loading commit data...
courgette_flow.cc Loading commit data...
courgette_flow.h Loading commit data...
courgette_generation.png Loading commit data...
courgette_minimal_tool.cc Loading commit data...
courgette_tool.cc Loading commit data...
crc.cc Loading commit data...
crc.h Loading commit data...
description.html Loading commit data...
description.md Loading commit data...
difference_estimator.cc Loading commit data...
difference_estimator.h Loading commit data...
difference_estimator_unittest.cc Loading commit data...
disassembler.cc Loading commit data...
disassembler.h Loading commit data...
disassembler_elf_32.cc Loading commit data...
disassembler_elf_32.h Loading commit data...
disassembler_elf_32_arm.cc Loading commit data...
disassembler_elf_32_arm.h Loading commit data...
disassembler_elf_32_x86.cc Loading commit data...
disassembler_elf_32_x86.h Loading commit data...
disassembler_elf_32_x86_unittest.cc Loading commit data...
disassembler_win32.cc Loading commit data...
disassembler_win32.h Loading commit data...
disassembler_win32_x64.cc Loading commit data...
disassembler_win32_x64.h Loading commit data...
disassembler_win32_x64_unittest.cc Loading commit data...
disassembler_win32_x86.cc Loading commit data...
disassembler_win32_x86.h Loading commit data...
disassembler_win32_x86_unittest.cc Loading commit data...
encode_decode_unittest.cc Loading commit data...
encoded_program.cc Loading commit data...
encoded_program.h Loading commit data...
encoded_program_fuzz_unittest.cc Loading commit data...
encoded_program_unittest.cc Loading commit data...
ensemble.cc Loading commit data...
ensemble.h Loading commit data...
ensemble_apply.cc Loading commit data...
ensemble_create.cc Loading commit data...
ensemble_unittest.cc Loading commit data...
image_utils.h Loading commit data...
image_utils_unittest.cc Loading commit data...
instruction_utils.h Loading commit data...
label_manager.cc Loading commit data...
label_manager.h Loading commit data...
label_manager_unittest.cc Loading commit data...
memory_allocator.cc Loading commit data...
memory_allocator.h Loading commit data...
memory_allocator_unittest.cc Loading commit data...
memory_monitor.cc Loading commit data...
patch_generator_x86_32.h Loading commit data...
patcher_x86_32.h Loading commit data...
program_detector.cc Loading commit data...
program_detector.h Loading commit data...
program_detector_unittest.cc Loading commit data...
region.h Loading commit data...
rel32_finder.cc Loading commit data...
rel32_finder.h Loading commit data...
rel32_finder_unittest.cc Loading commit data...
rel32_finder_x64.cc Loading commit data...
rel32_finder_x64.h Loading commit data...
rel32_finder_x86.cc Loading commit data...
rel32_finder_x86.h Loading commit data...
run_mem_test Loading commit data...
run_stress_test Loading commit data...
simple_delta.cc Loading commit data...
simple_delta.h Loading commit data...
streams.cc Loading commit data...
streams.h Loading commit data...
streams_unittest.cc Loading commit data...
stress_test_common Loading commit data...
typedrva_unittest.cc Loading commit data...
types_elf.h Loading commit data...
types_win_pe.h Loading commit data...
versioning_unittest.cc Loading commit data...