Björn Lindqvist
076a978be0
cpu.x86.assembler: fix help-lint problem
2016-05-23 02:26:28 +02:00
Björn Lindqvist
5b3933e2e4
cpu.x86: xor rax, rax -> xor eax, eax
...
The latter should be equivalent in all ways, but its encoding is one
byte shorter.
2016-05-20 13:38:42 +02:00
Björn Lindqvist
973606b5e2
cpu.x86.assembler: enable zero extension for AND with small immediates
2016-05-20 12:42:27 +02:00
Björn Lindqvist
4230d2502a
cpu.x86.assembler: MOV zero extension for small immediates ( #1593 )
...
Instructions eg: mov rax, 123 can be equivalent mov eax, 123 which are
shorter.
2016-05-19 23:02:48 +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
274a0174fd
cpu.x86: use INC and DEC in favor of ADD reg, 1 and SUB reg, 1
...
The encoding for INC reg and DEC reg is one byte shorter so using it
shaves of a few bytes from the generated code.
2016-05-08 18:44:31 +02:00
Björn Lindqvist
5a2e1c953e
cpu.x86.assember: add INC and DEC instructions to the assembler
2016-05-08 18:43:51 +02:00
Björn Lindqvist
a6f159eb17
cpu.x86.assembler: fix small help-lint problem
2016-04-22 18:10:59 +02:00
Björn Lindqvist
3177e7851c
cpu.*: more docs
2016-04-22 13:00:46 +02:00
Björn Lindqvist
00fdb837fa
cpu.x86: better code without locals
2016-04-22 12:59:21 +02:00
Jon Harper
cb6ddb1735
rename math.statistics:cum-map to sequences:accumulate*
2016-03-08 13:41:54 -08:00
Björn Lindqvist
7247906bf8
vm: remove vm-field-offset and context-field-offset
...
Shorter to just write "vm offset-of" and "context offset-of"
2015-12-14 09:29:18 +01:00
Björn Lindqvist
f692200547
compiler.cfg.*: refactoring which removes spill-area-size and
...
spill-area-align from cfg
This makes the code for building the stack frame simpler.
2015-11-04 07:53:19 +01:00
Björn Lindqvist
c5b92cedcb
compiler.*: even more compiler docs
2015-09-22 08:52:59 +02:00
John Benediktsson
e477f6996f
Fix comments to be ! not #!.
2015-09-08 16:15:10 -07:00
John Benediktsson
f6a9175b2e
cpu.x86.features: use <c-array>.
2015-08-15 21:37:55 -07:00
Doug Coleman
38f3450519
compiler: fix D.
2015-08-13 18:15:25 -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
330c7ba156
factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
...
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -05:00
Björn Lindqvist
1b6fa50ff2
cpu.x86: define %alien-invoke and %alien-indirect using %alien-assembly
2015-07-28 17:58:28 -07:00
Björn Lindqvist
5e29aac0a6
Docs: various more compiler-related docs
2015-07-28 17:58:28 -07:00
John Benediktsson
255b4fc823
cpu.x86: fix article title help-lint.
2015-07-21 17:55:52 -07:00
Björn Lindqvist
e41aef9a50
cpu.x86: use push and pop when emitting %prologue and %epilogue
...
push/pop REG has the same effect as sub/add rsp, 8 so use them instead
when applicable to generate a little shorter code
2015-07-21 16:22:33 -07:00
Björn Lindqvist
80ea6b8997
compiler.*: fix the tests that broke because i removed the stack-frame variable
2015-07-21 13:40:49 +02:00
Doug Coleman
eca8b7e49c
core: fix docs
2015-07-20 01:01:31 -07:00
John Benediktsson
c25fb5f55e
update some more MACRO: effects.
2015-07-19 11:42:46 -07:00
Doug Coleman
4ec2311406
factor: Trim whitespace after ! comments and a few USING: lines that got skipped before.
2015-07-18 20:14:22 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
John Benediktsson
621b50a8e5
cpu: enable bit-test intrinsic for fixnum-bit?.
2015-06-17 19:11:10 -07:00
Björn Lindqvist
3678f62508
x86.64: change the register order so that RBX is allocated before RCX
2015-06-16 18:28:32 -07:00
John Benediktsson
c44aaf58be
cpu.ppc: remove use of with-scope in favor of locals.
2015-06-15 09:11:03 -07:00
John Benediktsson
255b60ef8d
cpu.x86: remove use of with-scope in favor of locals.
2015-06-15 09:10:52 -07:00
Björn Lindqvist
f37ab939f0
compiler.*: more compiler docs
2015-06-14 16:44:37 +02:00
Doug Coleman
6e60c811ac
core: Rename create to create-word, create-in to create-word-in.
2015-06-08 12:47:35 -07:00
Björn Lindqvist
48e6455186
cpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
...
vm-reg MOV
2015-05-22 12:22:29 -07:00
Björn Lindqvist
6ca83e7588
Reorganising bootstrap files
...
All the bootstrap.factor scripts in cpu/ are run by the bootstrap to
make boot images, but aren't used otherwise. So I think it's cleaner to
put them in one directory inside the bootstrap hierarchy.
2015-05-22 12:22:24 -07:00
Doug Coleman
72d002ae4b
cpu.architecture: Fix trivial doc.
2015-05-18 00:37:05 -07:00
Björn Lindqvist
6c43475183
cpu.x86: fix silly bug in %clear
2015-05-18 06:52:49 +02:00
Björn Lindqvist
9ceea3c241
compiler.*: new cfg instruction ##clear, it makes it easier to see where
...
the compiler.cfg.stacks.clearing pass inserts extra instructions
2015-05-17 07:59:34 +02:00
Björn Lindqvist
655faadec9
compiler.*: now when we're tracking uninitialized locations instead of
...
initialized ones, the height slot isn't needed on ##call anymore
2015-05-17 07:59:34 +02:00
John Benediktsson
2c3492a916
minor cleanup to some docs.
2015-05-13 16:09:14 -07:00
John Benediktsson
e1d18579e7
cpu/stack-checker: fix some help-lint warnings.
2015-05-10 10:13:57 -07:00
Björn Lindqvist
0c2559ef6e
compiler.*: a bunch more compiler docs
2015-05-09 20:04:22 -07:00
Björn Lindqvist
8df92abeb9
compiler.*,cpu.*: add a height slot to ##call nodes, then other compiler
...
passes can much easier to accurate liveness analysis on stack locations
2015-05-09 20:04:22 -07:00
Björn Lindqvist
b827bc75cc
compiler.*: bunch of new docs for some compiler instructions
2015-04-29 09:31:58 -07:00
Björn Lindqvist
92165e4ee7
Docs: bunch of smaller documentation fixes for various vocabs
2015-04-29 09:31:54 -07:00
Björn Lindqvist
ded3760d46
compiler.*: merge of ##inc-r and ##inc-d into one instruction ##inc with a loc slot
...
this is nice because it leads to simpler code and matches how ##peek and ##replace instructions work
2015-04-29 09:31:53 -07:00