Björn Lindqvist
6984bae7ca
VM: rename of JIT_PUSH_IMMEDIATE to JIT_PUSH_LITERAL
...
The code template pushes both immediates and references so the name was
wrong.
2016-06-07 14:54:23 +02:00
Björn Lindqvist
8f2738cd82
bootstrap.x86: using 32 bit regs as operands when it's safe to do so
...
It shaves off a few bytes as e.g and eax, 0xf is one byte shorter than and rax, 0xf
2016-05-30 02:39:06 +02:00
Björn Lindqvist
0cbd0552b0
bootstrap.image.primitives: resize-byte-array can also use integer-array-capacity
2016-05-24 14:20:46 +02:00
Björn Lindqvist
0fc8fb22ca
cpu.x86,bootstrap.assembler.*: making sure 0 is the relocation dummy value everywhere
...
In some places it was 0xffffffff, but it should always be 0 MOV for
consistency.
2016-05-19 22:43:52 +02:00
Björn Lindqvist
5fabb71404
bootstrap.compiler.timing: "profile-compiler" is never set so this vocab
...
is unused
2016-05-14 18:21:49 +02:00
Björn Lindqvist
5826394573
VM: the (clear-samples) primitive is unused
2016-05-05 02:33:35 +02:00
John Benediktsson
c52b640520
bootstrap.image.upload: use vm-git-id.
2016-04-14 16:59:23 -07:00
Björn Lindqvist
39d0177ddd
bootstrap.image.primitives: attempt 2 at putting all primitives in this vocab
...
See ca82929ffb
. This time it should work
because the USING: list is not updated!
2016-03-31 03:32:34 +02:00
John Benediktsson
ca82929ffb
Revert "bootstrap.image.primitives: make more primitives properties be declared here"
...
This reverts commit 80f30119c0
.
2016-03-30 11:53:38 -07:00
Björn Lindqvist
80f30119c0
bootstrap.image.primitives: make more primitives properties be declared here
...
This commit merges the input/output-classes and flush/foldable
declarations from stack-checker.known-words to this vocab. This should
make adding primitives a little simpler (#1134 ).
2016-03-30 18:59:10 +02:00
Björn Lindqvist
2a9c95040c
bootstrap.image.primitives: the primitive_ prefix is implied
...
So it can be removed from the big list, making primitive declarations simpler.
2016-03-29 23:52:29 +02:00
Björn Lindqvist
eca6dfac15
bootstrap.image.primitives: new vocab to make primitive declarations better
2016-03-29 23:52:29 +02:00
Björn Lindqvist
f549283508
bootstrap.assembler.ppc: make ppc also use define-sub-primitives
2016-03-27 17:46:55 +02:00
Björn Lindqvist
df3852f54a
bootstrap.assembler: new word define-sub-primitives
...
This way all sub primitives can be declared at once which imo is cleaner.
2016-03-27 17:42:25 +02:00
Doug Coleman
92afdc3ad0
hashtables: rename ((tombstone)) to +tombstone+, ((empty)) to +empty+
2016-03-25 03:13:27 -07:00
John Benediktsson
baae677276
io.files.unique: change to create unique files and directories relative to the current-directory.
2016-03-18 10:57:54 -07:00
John Benediktsson
5f682c18de
use the new bytes>hex-string.
2016-03-16 10:13:56 -07:00
Björn Lindqvist
b0a201165a
bootstrap.image: docs
2016-03-01 17:32:43 +01:00
Björn Lindqvist
cbba6bbf95
bootstrap.image.tests: I screwed up the test case values -- fix them
2015-12-14 13:56:35 +01:00
Björn Lindqvist
1378841c95
bootstrap.image.tests: new tests & fix for 32bit test failure
2015-12-14 06:54:12 +01:00
Björn Lindqvist
1a72f731e0
VM: now special-objects is used for -1, 0, 1 and t
...
The fields in the image_header aren't read or written to but I haven't
changed the format yet.
2015-12-10 10:22:38 +01:00
Björn Lindqvist
339b1b6466
VM: put the singletons t, -1, 0 and 1 in the special objects table
...
Having them there instead of as fields in the vm struct removes a bunch
of special handling. This commit just adds them and doesn't remove the
old ones to avoid potential chicken-and-egg bootstrap problems.
2015-12-09 21:31:13 +01:00
Björn Lindqvist
bf8fe25271
bootstrap.*: fix for #1512 , load docs after everything else
...
By making it so the help component is loaded almost last, all vocabs are loaded without docs and only then are they loaded. It should make it so you don't get cyclic dependency problems in doc files during bootstrapping.
2015-12-04 13:29:29 +01:00
Björn Lindqvist
fc9eb0d5ac
bootstrap.stage2: more logging output and fix for #1444
...
The error clearing needs to happen almost last so that an error is not
set in the image.
2015-12-04 13:16:21 +01:00
John Benediktsson
e477f6996f
Fix comments to be ! not #!.
2015-09-08 16:15:10 -07:00
Björn Lindqvist
721048bbb9
bootstrap.image.tests: total 20 -> 18
2015-09-03 13:18:26 +02:00
Björn Lindqvist
de4917e6a1
VM: give the exception handling special object a real name
2015-09-02 21:54:33 +02:00
Björn Lindqvist
22887c5816
VM: get rid of the odd RT_EXCEPTION_HANDLER relocation
...
The address to the win32 relocation handler can be stored in a special
object and be accessed by jit-install-seh. Doing it that way is better
because you can remove a lot of special code related to that relocation
type.
2015-09-02 21:54:30 +02:00
Björn Lindqvist
cee0b19324
VM: the ffi-signal-handler and ffi-leaf-signal-handler primitives are unused
2015-09-02 21:54:15 +02:00
Björn Lindqvist
663e5e2a09
VM: fix jit-signal-handler-prolog/epilog to account for the home space
...
Windows 64bit abi requires callers to reserve 32 bytes of home space in
the stack frame which the callee is free to clobber. Previous versions
of VS didn't compile code to take advantage of the home space so it
worked fined. VS2015 however, is using the home space which causes
registers and flags that were supposed to be saved to be
overwritten. The fix is to put a little extra empty space at the bottom
of the stack frame.
2015-08-26 20:23:25 +02:00
Björn Lindqvist
10464e7e4e
VM: LEAF_FRAME_SIZE is 16 bytes on all platforms so we can simplify it
2015-08-26 20:23:15 +02:00
Doug Coleman
886935f5d7
bootstrap.image: rename ' to prepare-object. it doesn't actually output the object, unlike what the comment said.
2015-08-15 21:21:03 -07:00
Björn Lindqvist
9413f711b9
VM: the JIT_PROFILING special object is never used, so rename it to
...
JIT_UNUSED (removing it breaks boot images)
2015-08-14 20:19:53 -07:00
Björn Lindqvist
dbb045e2cd
bootstrap.image: better to use the special-object-count constant from kernel.private
2015-08-14 20:19:53 -07:00
Björn Lindqvist
8c70f04d41
bootstrap.image: bs-special-objects -> special-objects,
...
bootstrap.image.syntax vocab not needed anymore
2015-08-14 20:19:53 -07:00
Björn Lindqvist
2b3989f3c9
bootstrap.assembler.*: convert the other assembly files to the new
...
jit-define system
2015-08-14 20:19:52 -07:00
Björn Lindqvist
9cf36e3dc2
bootstrap.image: attempt to remove the SPECIAL-OBJECT: table
...
Instead of using newly defined words as keys to the special-objects
hash being built, you can reuse the constants in kernel.private
2015-08-14 20:19:52 -07:00
John Benediktsson
0216f9f6d1
namespaces: rename namestack* to (get-namestack) for consistency.
2015-08-13 17:53:07 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
Doug Coleman
02008979d9
factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon.
2015-08-12 15:26:18 -05:00
Doug Coleman
46587f8457
factor: arch -> arch-name. fix breakage caused by other patch.
2015-08-12 11:08:24 -05:00
Doug Coleman
351f51b72e
bootstrap.image: images -> image-strings
2015-08-12 08:42:58 -05:00
Doug Coleman
00338f62f3
factor: put inline on same line as ; for experimentation
2015-08-10 12:55:27 -05:00
Doug Coleman
43fb73fae6
factor: Rename I[ ]I to [I I]. Fix places where we do "string"token without whitespace.
2015-08-06 17:05:12 -05:00
Doug Coleman
1ca3a0cd0b
bootstrap.image.upload: Use git id instead of build number.
2015-08-04 16:28:41 -07:00
Doug Coleman
f5853c7e31
bootstrap.image.upload: Upload build images as well for posterity.
2015-08-04 15:05:38 -07:00
Björn Lindqvist
5e29aac0a6
Docs: various more compiler-related docs
2015-07-28 17:58:28 -07:00
John Benediktsson
ca0f80f230
bootstrap: cleanup usings.
2015-07-26 21:20:55 -07:00
Doug Coleman
80601662a3
bootstrap.image: rename image -> bootstrapping-image
2015-07-20 01:26:44 -07:00