4e26166dff
fix type in call issue
2015-10-06 15:26:57 +03:00
f4a4ccb98e
several larger changes came together, bit of cleaning too
...
- all code must be in functions (which must be in classes).
— changes a fair few tests
— also changes api, as method is not recursive, not passed around
- all state in instance vars in compiler (no accessors)
- class is another such variable, surely more coming
all green again
2015-10-06 00:27:13 +03:00
18935366fe
introducing class variable and typed arguments
2015-09-27 14:30:41 +03:00
9fe01c7b31
remove unknown type
2015-09-23 18:35:37 +03:00
4e56056b62
better test for add
2015-08-09 00:53:04 +03:00
bae7f5dcb1
better to_s for load constant
2015-08-09 00:52:47 +03:00
5d838056fa
small rename and new test for layout
2015-08-08 18:08:47 +03:00
ca14ef8914
fix test result, but not test yet
2015-08-07 16:46:55 +03:00
9ebe6eb5b7
move to clss names as types
...
so as not to mix ruby class names into parfait code
2015-08-06 18:28:40 +03:00
75c43d1b03
add fixnum as constant (was buggy)
2015-08-06 18:28:09 +03:00
8560f15c87
plus function, indentation
2015-08-05 18:49:37 +03:00
21b0702154
fix tests (just using local gem)
2015-08-04 22:01:20 +03:00
9680ff2a71
fxes for add test
2015-08-04 21:46:33 +03:00
36f635f7c1
adding sources to register instructions
2015-07-27 12:13:39 +03:00
e7b8f2fcc8
critical bug from array/list mix up
2015-07-26 18:27:54 +03:00
b0c78479ff
clearer to_s s
2015-07-25 09:30:58 +03:00
772212bad9
fix the reg test (one off)
2015-07-24 17:23:44 +03:00
139b0174d8
to_s for reg instructions
2015-07-24 13:23:56 +03:00
2f409ea4e1
more dead code goes
2015-07-21 20:24:31 +03:00
074f3af174
uncomment dead code
...
it’s dead, unfair to say it’s untested.
percentage wise i mean
2015-07-21 19:57:38 +03:00
e3577d18af
fix that silly mistake that made the percentage plummet
...
mostly due to the fact that object is a hash now,
not array. Took a while though
2015-07-21 19:41:30 +03:00
53d8f4b163
add source to instruction
...
for debug
2015-07-18 11:21:49 +03:00
50da6a40f2
Move the Main instruction from register to virtual
...
also needs a branch in register.
This way the register level is self sufficient
(noticed while writing debugger)
2015-07-17 13:21:57 +03:00
b61c73acdd
renamed info to MethodSource
2015-07-03 20:13:03 +03:00
4f2f56fff8
minors
2015-07-02 13:49:33 +03:00
69781fb505
remoe sys call message
...
and rely on linux to restore all registers
save message in r8
2015-07-02 13:48:32 +03:00
11997ef354
had to revert name method change
...
method is not known when message is created
2015-07-02 09:48:41 +03:00
7136450bde
move put string to string where it belongs
2015-07-01 21:45:41 +03:00
8f0fd30ef3
small name update
2015-07-01 21:42:31 +03:00
6a23ef8b26
storing method, not just name in message
...
goes with a rename and other admin
2015-07-01 19:39:23 +03:00
5e85d0781f
have to retry in assembler
...
can raise several times, calling once was not enough
tbr: to be revisited
2015-07-01 19:36:18 +03:00
60fe0dfd1c
separate New frame and message
...
and also much much shorter now, as all is static
2015-07-01 19:27:52 +03:00
135fcaa8fa
static message chain
...
Rewrote Message + frame, only static linked list needed, not dynamic
frames either
2015-07-01 19:27:18 +03:00
fb67f550ec
more index fixes, this time arguments
2015-07-01 09:48:20 +03:00
047c77e186
fixed that darn method address bug
2015-07-01 09:47:10 +03:00
9541712af8
fixing all the indexes
...
with the type word and layout
but the list starting at 1, indexes still need 1 added
and for arm x 4.
Tried to get all that into one function, resolve_index
2015-06-30 18:38:56 +03:00
c0f11d70f1
rephrased the retry, didnt find the bug though
2015-06-30 18:35:37 +03:00
b9e2d4dd21
remove some debug
2015-06-30 10:22:54 +03:00
7e9b940890
add init_message to space
...
so kernel::__init can use that and the first next_message does not need
to be reused
2015-06-30 09:52:17 +03:00
df2a080bd0
move register_machine to register
2015-06-30 09:46:11 +03:00
ee2294ded7
remove unused reference
2015-06-30 09:45:45 +03:00
60c8f8ef73
move generator functions to the instructions they generate
2015-06-30 09:43:50 +03:00
bd77db656a
remove class_eval on slots to map registers
...
Use their class names (or for now called object names)
these are the same that Register helper functions accept already anyway
2015-06-30 09:39:45 +03:00
c4502c5030
get rid of the last constants
...
return them by method, nicer code
2015-06-30 09:38:32 +03:00
b8090e0ecd
fix init to load into new message
2015-06-30 09:37:25 +03:00
0f2c8e4201
finally scoping builtin to register
...
had put this off because it breaks history
but now the references to register stuff which
builtin is off course full of, become much shorter
2015-06-29 21:03:58 +03:00
a03dcecbbd
fix namespacing and remove indexes
2015-06-29 20:58:52 +03:00
553f30c874
more ripples from removing index constants
2015-06-29 20:58:06 +03:00
1e18db00c9
add set_slot and save_return
...
as functions to generate instructions
2015-06-29 20:57:16 +03:00
a24e96efbc
asserts to debug
2015-06-29 20:56:11 +03:00