diff --git a/doc/yjit/yjit.md b/doc/yjit/yjit.md index 476f162d8f..f84b989f6d 100644 --- a/doc/yjit/yjit.md +++ b/doc/yjit/yjit.md @@ -166,13 +166,13 @@ you can contribute things we will want to merge into YJIT. The YJIT source code is divided between: - `yjit_asm.c`: x86 in-memory assembler we use to generate machine code -- `yjit_asm_tests.c`: tests for the in-memory assembler - `yjit_codegen.c`: logic for translating Ruby bytecode to machine code - `yjit_core.c`: basic block versioning logic, core structure of YJIT - `yjit_iface.c`: code YJIT uses to interface with the rest of CRuby - `yjit.h`: C definitions YJIT exposes to the rest of the CRuby - `yjit.rb`: `YJIT` Ruby module that is exposed to Ruby - `misc/test_yjit_asm.sh`: script to compile and run the in-memory assembler tests +- `misc/yjit_asm_tests.c`: tests for the in-memory assembler The core of CRuby's interpreter logic is found in: - `insns.def`: defines Ruby's bytecode instructions (gets compiled into `vm.inc`) diff --git a/misc/test_yjit_asm.sh b/misc/test_yjit_asm.sh index 0d79ccadf0..cf1ae7bee5 100755 --- a/misc/test_yjit_asm.sh +++ b/misc/test_yjit_asm.sh @@ -3,7 +3,7 @@ set -e set -x -clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 -I ${0%/*/*} ${0%/*/*}/yjit_asm_tests.c -o asm_test +clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 -I ${0%/*/*} ${0%/*}/yjit_asm_tests.c -o asm_test ./asm_test diff --git a/yjit_asm_tests.c b/misc/yjit_asm_tests.c similarity index 100% rename from yjit_asm_tests.c rename to misc/yjit_asm_tests.c