Commit Graph

584 Commits

Author SHA1 Message Date
Torsten Ruger
f506f95cbf fixing basic and field access to return register
as that is the new way, drop a layer, code to registers
2015-10-13 16:42:53 +03:00
Torsten Ruger
80d58ee03c fixed simple layout offset bug in layout 2015-10-13 14:46:07 +03:00
Torsten Ruger
3c7c8dea92 add basic compiler tests 2015-10-10 12:29:52 +03:00
Torsten Ruger
3d342f7d88 remove new_message instruction 2015-10-10 12:04:34 +03:00
Torsten Ruger
c3eb295f4e remove set optimization
will become obsolete soon anyway
2015-10-10 11:52:54 +03:00
Torsten Ruger
c20ab21bbd improve tests 2015-10-10 10:02:28 +03:00
Torsten Ruger
530537de1a improve fragment checks 2015-10-09 21:53:22 +03:00
Torsten Ruger
024e6cb389 ion out last changes from grammar update
surprisingly painless, considering it was more or less a rewrite
2015-10-09 18:06:00 +03:00
Torsten Ruger
4c17ed2e6e update the reader rewrite and reflect name changes 2015-10-09 17:51:14 +03:00
Torsten Ruger
99098951ca rename bosl to phisol 2015-10-07 15:22:47 +03:00
Torsten Ruger
e669489419 went over the various readmes 2015-10-07 11:32:48 +03:00
Torsten Ruger
88fc4c0e47 clean up more tests 2015-10-07 10:53:45 +03:00
Torsten Ruger
c1d31a541d improve method test
mostly by actually testing main, which is what is checked
2015-10-07 10:43:08 +03:00
Torsten Ruger
cd96e78e2d small fix 2015-10-07 10:22:45 +03:00
Torsten Ruger
513bc8d7cf fix more disabled tests 2015-10-07 10:19:25 +03:00
Torsten Ruger
83ef902b55 better calcite and operator to expand the interpreter test 2015-10-07 10:05:34 +03:00
Torsten Ruger
af6366f2d1 small fixes to make tests pass again 2015-10-07 10:04:55 +03:00
Torsten Ruger
4e26166dff fix type in call issue 2015-10-06 15:26:57 +03:00
Torsten Ruger
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
Torsten Ruger
4186405930 new i_to_s test 2015-09-27 22:39:10 +03:00
Torsten Ruger
259b0afa96 improve tests 2015-09-27 20:28:34 +03:00
Torsten Ruger
eb57eb4d41 minor send fixes 2015-09-27 19:07:56 +03:00
Torsten Ruger
252c0ccdca finish typing variables 2015-09-27 16:06:48 +03:00
Torsten Ruger
94c08f7129 small clean 2015-09-27 14:07:02 +03:00
Torsten Ruger
5a2a857485 finish the field access
now that fields can be defined
2015-09-27 12:59:50 +03:00
Torsten Ruger
b99b392481 new field access code and test. wip as field def broken 2015-09-27 11:28:06 +03:00
Torsten Ruger
c4f89441e2 cleaning 2015-09-27 11:27:30 +03:00
Torsten Ruger
9fe01c7b31 remove unknown type 2015-09-23 18:35:37 +03:00
Torsten Ruger
4b613fb632 virtual tests back 2015-09-21 00:14:47 +03:00
Torsten Ruger
a5b09ab059 fixed interpreter tests 2015-09-21 00:09:11 +03:00
Torsten Ruger
b1cab4f395 compiler test back up 2015-09-20 17:33:05 +03:00
Torsten Ruger
5f628744d6 more test working
operator wip
2015-09-20 16:52:26 +03:00
Torsten Ruger
f2fc9c5f89 new field def compiles, fix test 2015-09-20 16:30:07 +03:00
Torsten Ruger
bc70c1efe5 temporarily disabling test that haven't been fixed yet 2015-09-19 22:24:57 +03:00
Torsten Ruger
775bca50ac switching to ast::processor
using instance methods instead of context
2015-09-19 18:56:18 +03:00
Torsten Ruger
3a885a8e46 more expressions and if test 2015-09-19 17:57:44 +03:00
Torsten Ruger
2061097e88 move compiler to bosl and get first test working (adjusting syntax as i go) 2015-09-19 16:28:41 +03:00
Torsten Ruger
8689633bbf new short test 2015-08-20 16:06:44 +02:00
Torsten Ruger
f15f7800b3 disable failing test 2015-08-11 17:22:04 +03:00
Torsten Ruger
4e56056b62 better test for add 2015-08-09 00:53:04 +03:00
Torsten Ruger
5d838056fa small rename and new test for layout 2015-08-08 18:08:47 +03:00
Torsten Ruger
0a54d030b5 add guard 2015-08-08 18:08:15 +03:00
Torsten Ruger
ca14ef8914 fix test result, but not test yet 2015-08-07 16:46:55 +03:00
Torsten Ruger
4afd7f78ca fix the plus method that sneaked into arm 2015-08-06 18:55:08 +03:00
Torsten Ruger
c0071c947d bit more testing 2015-08-06 18:26:59 +03:00
Torsten Ruger
21b0702154 fix tests (just using local gem) 2015-08-04 22:01:20 +03:00
Torsten Ruger
9680ff2a71 fxes for add test 2015-08-04 21:46:33 +03:00
Torsten Ruger
8ab9a417aa minors 2015-07-30 19:18:41 +03:00
Torsten Ruger
7216300452 add interpreter here (moved from debugger) 2015-07-30 19:18:12 +03:00
Torsten Ruger
3fb08acf3f better tests to find sneaky module bug 2015-07-28 16:19:10 +03:00
Torsten Ruger
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
Torsten Ruger
2d0424a370 turned out to be a rewrite of boot process
and also attribute handling and fake_memory
luckily there are tests and all is green again
2015-07-21 15:40:25 +03:00
Torsten Ruger
f8cb33ec5e test ivar name list 2015-07-20 13:20:43 +03:00
Torsten Ruger
2c1c38716b move from new_object to normal new 2015-07-20 13:01:15 +03:00
Torsten Ruger
08e1852e5f test get class 2015-07-19 21:22:29 +03:00
Torsten Ruger
d7c9245bb3 more fragment tests 2015-07-19 13:31:13 +03:00
Torsten Ruger
31d825df7b fix and test basic and name expressions 2015-07-19 13:20:34 +03:00
Torsten Ruger
48d090f19c test return. remove some dead code 2015-07-19 13:03:21 +03:00
Torsten Ruger
6da1c69b87 minor 2015-07-19 12:33:33 +03:00
Torsten Ruger
1f95d8994c start testing that compile returns slot 2015-07-19 12:31:57 +03:00
Torsten Ruger
7ddee1c055 test binary creation 2015-07-19 11:52:43 +03:00
Torsten Ruger
cbff41b61d test name expr 2015-07-19 11:15:38 +03:00
Torsten Ruger
7451493193 rearranging tests a little 2015-07-19 10:54:36 +03:00
Torsten Ruger
ac9d5eaf5a fix tests by reordering (hmm) 2015-07-19 10:45:12 +03:00
Torsten Ruger
0a09477dc6 fix and test compiling classes 2015-07-19 10:36:06 +03:00
Torsten Ruger
a554762da8 fix the compile while test 2015-07-18 19:02:54 +03:00
Torsten Ruger
b83f50c57c rebooting tests for small compiles 2015-07-18 15:28:57 +03:00
Torsten Ruger
7b1e89effb get fragment tests back online
the 58%  REALLY doesn’t look good
and things have settle down, so no more excuses
2015-07-18 14:33:09 +03:00
Torsten Ruger
f4f703975b removed arm and use as gem 2015-07-18 14:12:20 +03:00
Torsten Ruger
bae476657a add coverage and badges 2015-07-18 13:06:42 +03:00
Torsten Ruger
e1c19dee80 remove old to_asm
very strange that is was called in 1.9 but not 2.0
2.0 seems to delay interpolating strings
2015-07-18 12:15:07 +03:00
Torsten Ruger
998d5f8b90 removed ref to simple cov 2015-07-18 12:06:20 +03:00
Torsten Ruger
46de0f278e fix the boot
was broken for unknown reason really
2015-07-18 11:53:04 +03:00
Torsten Ruger
4f2f56fff8 minors 2015-07-02 13:49:33 +03:00
Torsten Ruger
caa4ae1cf0 new tests for space
finds the bug in message creation!
2015-07-02 11:09:23 +03:00
Torsten Ruger
185f4b4697 start of an idea 2015-07-02 10:44:44 +03:00
Torsten Ruger
9ca5ddf7c0 fix all tests
some had to be disabled
since stability is coming back more test are coming too
2015-07-02 10:26:48 +03:00
Torsten Ruger
3195d800e9 fix putstring file descriptor 2015-07-02 09:49:52 +03:00
Torsten Ruger
11997ef354 had to revert name method change
method is not known when message is created
2015-07-02 09:48:41 +03:00
Torsten Ruger
6a23ef8b26 storing method, not just name in message
goes with a rename and other admin
2015-07-01 19:39:23 +03:00
Torsten Ruger
b9e2d4dd21 remove some debug 2015-06-30 10:22:54 +03:00
Torsten Ruger
218fafca05 renames 2015-06-29 20:55:45 +03:00
Torsten Ruger
a00a49ecdb fix frame indexes 2015-06-28 10:50:47 +03:00
Torsten Ruger
37403f1139 fix misunderstood mov usage
When moving a reference (pointer) to a register
one needs to ADD to the pc
i.e. one needs an add, not mov instruction
2015-06-26 20:00:33 +03:00
Torsten Ruger
2aba926f1f start on reworking sys calls 2015-06-22 22:48:42 +03:00
Torsten Ruger
f3ee11fca5 simple set optimisation
the price of having simple code (generation) is that
it is sometimes stupid code that gets generated
Filter some of the really daft stuff out
2015-06-21 17:25:27 +03:00
Torsten Ruger
6867175bd1 slot docs and rename 2015-06-21 00:21:42 +03:00
Torsten Ruger
87143091ca moved sod write method to module 2015-06-19 12:29:41 +03:00
Torsten Ruger
1baece99c7 split the pass runs to debug 2015-06-12 18:52:06 +03:00
Torsten Ruger
9b89f6cb16 move the pass running out of elf
and leave it up to user
later partial running planned
2015-06-11 07:04:55 +02:00
Torsten Ruger
ee6f9d733b rename Mystery
just unknown, mystery should be more difficult to find out.
After all we keep run time info, so just need unknown at compile time
2015-06-11 07:04:14 +02:00
Torsten Ruger
1c29fcfd43 mem_length to word/byte length
be more specific, and don’t include padding
2015-06-05 09:20:43 +03:00
Torsten Ruger
30d9aaf61b extract padding functions to module
and finally TEST them
its especially the brain bending stuff that needs tests
2015-06-04 08:22:38 +03:00
Torsten Ruger
aea8f20be5 more symbol related fixes 2015-06-01 17:31:35 +03:00
Torsten Ruger
f08d9659fc getting the symbols to work 2015-06-01 08:33:23 +03:00
Torsten Ruger
bee73801eb revert to symbols
Parfait::Words were nice, but endless problems with the fact that when
you write “String” you get a string.
Symbols take care of uniqueness at the same time
2015-05-31 18:34:18 +03:00
Torsten Ruger
db5c958d2e fix lists first 2015-05-31 13:26:47 +03:00
Torsten Ruger
079306dbf8 move main to object (from kernel) 2015-05-30 14:49:10 +03:00
Torsten Ruger
96a20ff554 add delete to list 2015-05-30 14:22:33 +03:00
Torsten Ruger
3e9e650764 fix arm tests 2015-05-29 12:47:49 +03:00
Torsten Ruger
2ccbea04b9 fixing assembly
position code changed and linking too
passes not working
2015-05-24 18:05:20 +03:00
Torsten Ruger
95ac024421 fix old tests again 2015-05-24 16:55:03 +03:00
Torsten Ruger
1170761922 fix classic index bug 2015-05-24 15:05:58 +03:00
Torsten Ruger
47abdffd1a minor 2015-05-24 13:54:17 +03:00
Torsten Ruger
1a499a1de9 fix method seperation
Since Compiled method split into Method and
CompiledMethodInfo (parfait/vm) lots of call
syntax changes
2015-05-24 13:31:33 +03:00
Torsten Ruger
b4eb14e639 found bug and more tests 2015-05-21 21:50:39 +03:00
Torsten Ruger
422ec64105 all green
That fixes all existing tests. Operation successful

Off course there is tests missing :-(
2015-05-20 17:29:08 +03:00
Torsten Ruger
d71547ea01 copy and other improvements for word
more tests reveal a bug (fixed) and more docs
2015-05-20 13:50:25 +03:00
Torsten Ruger
c983b1cba5 bit of test cleaning 2015-05-18 10:51:37 +03:00
Torsten Ruger
cfc2c474b2 test compatibility layer
test from and to std/parfait objects
for list and word for now
moved some of that code to virtual, out of parfait
2015-05-18 10:47:29 +03:00
Torsten Ruger
d348e7afe7 more parfait ripples
changes due to previous changes in parfait api
2015-05-18 10:10:31 +03:00
Torsten Ruger
cff827ad42 final word fix
that does the parfait
2015-05-17 15:34:45 +03:00
Torsten Ruger
e70bfb9f7a many minor parfait fixes 2015-05-17 15:34:29 +03:00
Torsten Ruger
3bdba119c8 fix the list after object fixes
start index at 1, but don’t overwrite layout,
so add one
2015-05-17 14:56:06 +03:00
Torsten Ruger
3b268df920 init with nil layout
making the default length 1 (the nil layout)
2015-05-17 14:55:10 +03:00
Torsten Ruger
701b0bc011 fix object grow
and write a test (and another one …)
2015-05-17 14:44:48 +03:00
Torsten Ruger
1114f06921 rename old layout()
new is called get_layout, but keep old around for
checking
2015-05-17 14:41:18 +03:00
Torsten Ruger
8fa501fb91 fix object compiletime
and write some tests for it
2015-05-17 14:38:25 +03:00
Torsten Ruger
fe2be323d8 improve boot
also move to superclass not superclass_name in class
Makes ripples
2015-05-16 20:16:49 +03:00
Torsten Ruger
bee269f7a8 just renaming 2015-05-16 12:54:11 +03:00
Torsten Ruger
9376b8bc16 work on ObjectWriter
Back to the root! but lots of adjusting
ObjectWriter takes machine, machine has space
Virtual constants become Parfait::Objects etc
2015-05-16 12:53:10 +03:00
Torsten Ruger
9d8dc68bf4 fixing all tests 2015-05-15 21:11:44 +03:00
Torsten Ruger
a46dd9f6bf more word tests 2015-05-15 20:31:43 +03:00
Torsten Ruger
0731a6061a fix word implementation and tests
much better, though wasteful implementation
breaks a few tests, but ploughing on first
2015-05-15 16:45:36 +03:00
Torsten Ruger
9d711e7766 moving string to parfait
using parfait::word
also rename builtins string to word
2015-05-13 16:17:10 +03:00
Torsten Ruger
dd41758dea renamed array and hash to list and dictionary
Since these are not the ruby classes, we don’t need
the old names. They are misleading.
An Array is a military term, we mean list
And a Hash is an implementation of a Dictionary,
or LookupTable
2015-05-12 19:10:45 +03:00
Torsten Ruger
a94ce51c58 also test array
minor (ahm) fixes to array logic
2015-05-12 19:03:14 +03:00
Torsten Ruger
398516a596 fixes parfaits hash by implementing array
basic concept holds up as parfaits hash is now
working on parfaits own array
2015-05-12 18:52:01 +03:00
Torsten Ruger
b980def84e move space to parfait
Also make the machine the singleton
and space hang off it

Many repercussions, not all fixed in this commit
2015-05-12 15:36:44 +03:00
Torsten Ruger
6f2affaf36 fix name expression and test
plus various cleaning and rename off call_site
2015-05-08 14:34:46 +03:00
Torsten Ruger
2fde50c27a some more tests fixed 2015-05-06 15:15:53 +03:00
Torsten Ruger
4f1508ca61 moved slots to own directory 2015-05-06 08:38:29 +03:00
Torsten Ruger
cdea4915f9 bit more cleanup after compiler 2015-05-05 15:11:09 +03:00
Torsten Ruger
001af3f8b6 reviving more tests 2015-05-05 14:04:37 +03:00
Torsten Ruger
e4c799ecb6 first tests comping through after ast/compile change 2015-05-04 23:03:52 +03:00
Torsten Ruger
8180c67d48 move sof to own repo 2015-05-03 20:38:13 +03:00
Torsten Ruger
2a0dc7242a better test doc 2015-04-06 10:28:44 +03:00
Torsten Ruger
5b10f09ea1 fix test 2015-03-28 21:12:03 +02:00
Torsten Ruger
e2e692e25d test readme and test sof 2015-03-25 18:31:18 +02:00
Torsten Ruger
451b1c409c update read me 2015-03-15 11:58:17 +00:00
Torsten Ruger
6e6dd257e4 rename 2014-10-18 13:53:01 +03:00
Torsten Ruger
7968cadaf9 remove singleton in arm machine and use class methods 2014-10-04 17:34:51 +03:00
Torsten Ruger
fba66371c0 (semi) proper fix for large moves, integers or virtual constants(was buggy) 2014-09-30 12:07:21 +03:00
Torsten Ruger
527e591e75 fix add instruction and test 2014-09-29 21:04:38 +03:00
Torsten Ruger
ae65952d0a more precise tests 2014-09-29 20:28:24 +03:00
Torsten Ruger
45adf7173c naming, clean 2014-09-29 20:28:05 +03:00
Torsten Ruger
e0c479f778 split some tests, create more and especially big move 2014-09-18 17:06:30 +03:00
Torsten Ruger
914d8af8c6 move object equality here 2014-09-16 16:06:11 +03:00
Torsten Ruger
c51dbf51e1 renamed true,false,nil class to constant (from value) 2014-09-14 18:15:33 +03:00
Torsten Ruger
5a5e977b8f get some old builtin code backonline and improve imports 2014-09-09 18:03:13 +03:00