summaryrefslogtreecommitdiff
path: root/test/unit/test_parsing_error.py
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-23 00:46:06 -0700
committerGitHub <noreply@github.com>2019-07-23 00:46:06 -0700
commit00d02f71cf08a16ccfe5acde25e5a54b3915d2d7 (patch)
treed86c930427a746c5c09dddf011c8081807597c79 /test/unit/test_parsing_error.py
parentff2b10bd641039e2cf4eb00b767ac5139a41583e (diff)
downloadbinaryen-00d02f71cf08a16ccfe5acde25e5a54b3915d2d7.tar.gz
binaryen-00d02f71cf08a16ccfe5acde25e5a54b3915d2d7.tar.bz2
binaryen-00d02f71cf08a16ccfe5acde25e5a54b3915d2d7.zip
Refactor stack IR / binary writer (NFC) (#2250)
Previously `StackWriter` and its subclasses had routines for all three modes (`Binaryen2Binary`, `Binaryen2Stack`, and `Stack2Binary`) within a single class. This splits routines for each in a separate class and also factors out binary writing into a separate class (`BinaryInstWriter`) so other classes can make use of it. The new classes are: - `BinaryInstWriter`: Binary instruction writer. Only responsible for emitting binary contents and no other logic - `BinaryenIRWriter`: Converts binaryen IR into something else - `BinaryenIRToBinaryWriter`: Writes binaryen IR to binary - `StackIRGenerator`: Converts binaryen IR to stack IR - `StackIRToBinaryWriter`: Writes stack IR to binary
Diffstat (limited to 'test/unit/test_parsing_error.py')
0 files changed, 0 insertions, 0 deletions