Coding task
The coding task for from this lab is to enhance your Truffle-based implementation of the JaraScript AST interpreter to pass additional test suites aimed at testing the partial evaluation of the interpreter. The test suites and points assignment are as follows:
TruffleEvaluationTest
: 1 point for passing all tests. This test suite was used in the previous lab assignment, so ensure that those tests still pass after optimizing your interpreter.TrufflePETest
: 10 points proportionally according to the number of passing tests.TruffleOSRTest
: 3 points.TruffleCompilationStressTest
: 3 points for all tests passing.TruffleCompilationWarningsTest
: 3 points for all tests passing.
The total number of points is 20. Note that your implementation must
not modify the upstream version of DebugRootNode
, and it must maintain
the wrapping of your RootNode
implementation with DebugRootNode
as implemented in the master branch.
The tests are merged in the master branch, and you can refer to notes and hints from the previous lab available in lab6-wip branch.
The tests, both in JaraScript and Java code, also include additional explanations and hints as comments.
If you have any questions regarding the coding task, feel free to post an issue in the Forum or ask during the next lecture.
The deadline for completing the coding task is Tuesday, May 23 2023, 14:00.
Resources
For more resources, please refer to the materials from Week #7 and Week #8 labs (“Talk2compiler” labs).