-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distingush between 32-bit and 64-bit test output.
- Loading branch information
Showing
16 changed files
with
3,951 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
|
||
~ 123 => tort_send(tort__s(INV), 0x1ed) => -124 | ||
|
||
~ 4 => tort_send(tort__s(INV), 0x11) => -5 | ||
|
||
~ -123 => tort_send(tort__s(INV), 0xfffffffffffffe15) => 122 | ||
|
||
- 123 => tort_send(tort__s(NEG), 0x1ed) => -123 | ||
|
||
- 4 => tort_send(tort__s(NEG), 0x11) => -4 | ||
|
||
- -123 => tort_send(tort__s(NEG), 0xfffffffffffffe15) => 123 | ||
|
||
123 + 4 => 127 | ||
|
||
123 - 4 => 119 | ||
|
||
123 * 4 => 492 | ||
|
||
123 / 4 => 30 | ||
|
||
123 & 4 => 0 | ||
|
||
123 | 4 => 127 | ||
|
||
123 ^ 4 => 127 | ||
|
||
123 % 4 => 3 | ||
|
||
123 << 4 => 1968 | ||
|
||
123 >> 4 => 7 | ||
|
||
! 123 => false | ||
|
||
! 0 => true | ||
|
||
! 1 => false | ||
|
||
123 && 4 => true | ||
|
||
0 && 0 => false | ||
|
||
0 && 1 => false | ||
|
||
1 && 1 => true | ||
|
||
123 || 4 => true | ||
|
||
0 || 0 => false | ||
|
||
0 || 1 => true | ||
|
||
1 || 1 => true | ||
|
||
123 == 4 => false | ||
|
||
0 == 0 => true | ||
|
||
0 == 1 => false | ||
|
||
1 == 1 => true | ||
|
||
123 != 4 => true | ||
|
||
0 != 0 => false | ||
|
||
0 != 1 => true | ||
|
||
1 != 1 => false | ||
|
||
123 < 4 => false | ||
|
||
0 < 0 => false | ||
|
||
0 < 1 => true | ||
|
||
1 < 1 => false | ||
|
||
123 > 4 => true | ||
|
||
0 > 0 => false | ||
|
||
0 > 1 => false | ||
|
||
1 > 1 => false | ||
|
||
123 <= 4 => false | ||
|
||
0 <= 0 => true | ||
|
||
0 <= 1 => true | ||
|
||
1 <= 1 => true | ||
|
||
123 >= 4 => true | ||
|
||
0 >= 0 => true | ||
|
||
0 >= 1 => false | ||
|
||
1 >= 1 => true | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
_mt_map => @map( nil, | ||
<=> => @method(map::<=>,@0x1), | ||
_gc_mark => @method(map::_gc_mark,@0x2), | ||
_inspect => @method(map::_inspect,@0x3), | ||
add => @method(map::add,@0x4), | ||
clone => @method(map::clone,@0x5), | ||
delete => @method(map::delete,@0x6), | ||
emit => @method(map::emit,@0x7), | ||
equal? => @method(map::equal?,@0x8), | ||
get => @method(map::get,@0x9), | ||
get_entry => @method(map::get_entry,@0x10), | ||
get_entry_by_value => @method(map::get_entry_by_value,@0x11), | ||
get_entry_cstr => @method(map::get_entry_cstr,@0x12), | ||
get_entry_string => @method(map::get_entry_string,@0x13), | ||
get_key => @method(map::get_key,@0x14), | ||
get_string => @method(map::get_string,@0x15), | ||
initialize => @method(map::initialize,@0x16), | ||
set => @method(map::set,@0x17), | ||
equality => @method(map::equality,@0x18), | ||
equality= => @method(map::equality=,@0x19), | ||
equality& => @method(map::equality&,@0x20) ) | ||
o => @map( nil, | ||
) | ||
(size o) => 0 | ||
o => @map( nil, | ||
1 => 2 ) | ||
(size o) => 1 | ||
o => @map( nil, | ||
1 => 3 ) | ||
(size o) => 1 | ||
o => @map( nil, | ||
1 => 3, | ||
3 => 4 ) | ||
(size o) => 2 | ||
o => @map( nil, | ||
3 => 4 ) | ||
(size o) => 1 | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Some object ==> ( @message( clone, @message(@0x1), @method(object::clone,@0x2), @mtable(object), "src/message.c:43") ) <== is in here! | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
read up to 64 chars from popen("echo 12345", "r") => "12345 | ||
" | ||
(eof o) => 1 | ||
(size v) => 6 | ||
|
||
|
||
read up to 64 chars from popen("echo 12345", "r") => "12345 | ||
" | ||
(eof o) => 1 | ||
(size v) => 6 | ||
|
||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
HELLO! | ||
printf(...) => "{{@pair(true,false)}}" | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
v = size | ||
(size symbols) => 1070 | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(size _symtab) => 1153 | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tort_i(123) => 493 | ||
tort_I(493) => 123 | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
tort debugger: | ||
rcvr = @io(stdout) | ||
type = @mtable(io) | ||
expr = nil | ||
backtrace = | ||
---- | ||
@message( __debugger, @io(stdout), @method(object::__debugger,@0x1), @mtable(object), "t/tort_test.c:10") | ||
---- | ||
HELLO! | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "tort/tort.h" | ||
|
||
#include <stdio.h> | ||
|
||
int main(int argc, char **argv, char **environ) | ||
{ | ||
printf("%d\n", (int) (sizeof(tort_v) * 8)); | ||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
fiber a = @0x1 | ||
fiber a @0x1 20 | ||
fiber a = @0x2 | ||
fiber a @0x2 19 | ||
fiber a = @0x3 | ||
fiber a @0x3 18 | ||
fiber a = @0x4 | ||
fiber a @0x4 17 | ||
fiber a = @0x5 | ||
fiber a @0x5 16 | ||
fiber a = @0x6 | ||
fiber a @0x6 15 | ||
fiber a = @0x7 | ||
fiber a @0x7 14 | ||
fiber a = @0x8 | ||
fiber a @0x8 13 | ||
fiber a = @0x9 | ||
fiber a @0x9 12 | ||
fiber a = @0x10 | ||
fiber a @0x10 11 | ||
fiber a = @0x11 | ||
fiber a @0x11 10 | ||
fiber a = @0x12 | ||
fiber a @0x12 9 | ||
fiber a = @0x13 | ||
fiber a @0x13 8 | ||
fiber a = @0x14 | ||
fiber a @0x14 7 | ||
fiber a = @0x15 | ||
fiber a @0x15 6 | ||
fiber a = @0x16 | ||
fiber a @0x16 5 | ||
fiber a = @0x17 | ||
fiber a @0x17 4 | ||
fiber a = @0x18 | ||
fiber a @0x18 3 | ||
fiber a = @0x19 | ||
fiber a @0x19 2 | ||
fiber a = @0x20 | ||
fiber a @0x20 1 | ||
fiber a = @0x21 | ||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
tort error: method not found | ||
tort error: selector lisp_repl | ||
tort error: receiver @io(stdin) | ||
tort error: mtable @mtable(io) | ||
tort error: message @message( lisp_repl, @io(stdin), @method(#<unknown>,@0x1), @mtable(io), "t/lisp_test.c:41") | ||
|
||
tort error: : not applicable | ||
|
||
tort debugger: | ||
rcvr = @message( lisp_repl, @io(stdin), @method(#<unknown>,@0x1), @mtable(io), "t/lisp_test.c:41") | ||
type = @mtable(message) | ||
expr = nil | ||
backtrace = | ||
---- | ||
@message( __debugger, @message(@0x2), @method(object::__debugger,@0x3), @mtable(object), "src/error.c:38") | ||
@message( lisp_repl, @io(stdin), @method(#<unknown>,@0x1), @mtable(io), "t/lisp_test.c:41") | ||
---- | ||
v => @vector( nil, nil, nil, nil, nil, nil, nil, nil, nil, nil ) | ||
v as lisp object => #(() () () () () () () () () ()) | ||
read lisp object from stdin: (read o) => (hash-semi-comment nothing nil () nil nil symbol symbol string "string" number 123 cons (1 . 2) true #t false #f improper-list (1 2 . 3) vector #(1 2 3 4 5) quote 'quote quasiquote (quasiquote quasiquote) unquote (unquote unquote) unquote-splicing (unquote-splicing unquote-splicing)) | ||
tort GC stats: | ||
tort_object_alloc_n = 12844 | ||
tort_object_alloc_bytes = 466648 | ||
tort_malloc_n = 13664 | ||
tort_malloc_bytes = 477390 | ||
tort_realloc_n = 6490 | ||
tort_realloc_bytes = 26101024 | ||
tort_malloc_atomic_n = 3483 | ||
tort_malloc_atomic_bytes = 46985 | ||
tort_realloc_atomic_n = 163 | ||
tort_realloc_atomic_bytes = 1133 | ||
tort_free_n = 675 | ||
tort_free_atomic_n = 0 | ||
tort_finalizer_n = 0 | ||
tort_finalize_n = 0 | ||
bdw_get_heap_size = 860160 | ||
bdw_get_free_bytes = 24576 | ||
bdw_get_bytes_since_gc = 349232 | ||
bdw_get_total_bytes = 1006784 | ||
bdw_gc_no = 3 | ||
bdw_all_interior_pointers = 1 | ||
bdw_finalize_on_demand = 0 | ||
bdw_java_finalization = 1 | ||
bdw_dont_gc = 0 | ||
bdw_dont_expand = 0 | ||
bdw_use_entire_heap = 0 | ||
bdw_full_freq = 19 | ||
bdw_non_gc_bytes = 0 | ||
bdw_no_dls = 0 | ||
bdw_free_space_divisor = 3 | ||
bdw_max_retries = 0 | ||
bdw_dont_precollect = 0 | ||
|
||
|
||
|
||
DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters