hyunghwan.chung
f618154aaf
changed STIX_SMOOI_MIN to -STIX_SMOOI_MAX instead of (-STIX_SMOOI_MAX - 1)
...
fixed tally range check bugs in dic.c/sym.c/gc.c
simplificed some code resulting from STIX_SMOOI_MIN change.
2015-11-20 09:05:55 +00:00
hyunghwan.chung
5cebf7e8dc
changed atom_t to stix_liw_t and made related changes.
...
introduced #liword to the compiler
2015-11-17 14:13:59 +00:00
hyunghwan.chung
415921d4a7
fixed some problems in bigint multiplication
2015-11-16 09:53:31 +00:00
hyunghwan.chung
346131b3e3
added more code for bigint multiplication
2015-11-13 15:55:56 +00:00
hyunghwan.chung
b0f8561238
added more code for bigint.
...
changed SMINT to SMOOI and renamed relevant macros accordingly
2015-11-12 06:57:35 +00:00
hyunghwan.chung
7b28bba988
enhanced stix_mulints()
2015-11-11 14:46:00 +00:00
hyunghwan.chung
0daf143cce
Added stix_mulints()
2015-11-11 13:31:05 +00:00
hyunghwan.chung
e519c5078e
relocated bigint data table initialization to stix_init()
2015-11-10 14:29:32 +00:00
hyunghwan.chung
df3f521220
touched up stix_strtoint()
2015-11-09 14:26:58 +00:00
hyunghwan.chung
797fdc4c1f
added a few lines of code to stix_strtoint()
2015-11-09 02:00:43 +00:00
hyunghwan.chung
db2de5787d
added more code to stix_strtoint()
2015-11-04 17:32:28 +00:00
hyunghwan.chung
a033e2669b
added some code to calculate log2(x)
2015-11-03 14:58:19 +00:00
hyunghwan.chung
e061b94832
added some more bigint routines
2015-11-03 14:08:43 +00:00
hyunghwan.chung
730df12933
added lost files
2015-11-01 09:47:27 +00:00
hyunghwan.chung
d33ad3749a
Added stix_shallowcopy().
...
added some code for bigint operations
2015-10-30 15:36:37 +00:00
hyunghwan.chung
1094d298cb
added some bigint related code
2015-10-29 15:24:46 +00:00
hyunghwan.chung
98631175d0
redefined some types
2015-10-28 14:58:58 +00:00
hyunghwan.chung
2aef6b9bab
added the new process primitive to create a process with a block as if it has got the value message
2015-10-22 02:47:25 +00:00
hyunghwan.chung
96011578c8
added some more code for processing scheduling
2015-10-19 06:16:43 +00:00
hyunghwan.chung
3482c99ab7
added more code for process scheduling
2015-10-18 15:06:17 +00:00
hyunghwan.chung
f52356e8c8
added more code for process scheduling
2015-10-15 14:40:08 +00:00
hyunghwan.chung
5a82cdc417
did some preparatory work to add Process
2015-10-14 14:01:33 +00:00
hyunghwan.chung
6916198253
touched up code
2015-10-14 13:25:36 +00:00
hyunghwan.chung
8f985290d0
autotool-ized the project
2015-10-14 09:06:44 +00:00
hyunghwan.chung
d367e2736b
added more code for primitive module loading
2015-10-13 14:51:04 +00:00
hyunghwan.chung
8c963d919c
work in progress to support the named primitive via shared object loading
2015-10-08 14:26:04 +00:00
hyunghwan.chung
5c69f6c3b4
added experimental codo utilizing the dyncall library
2015-10-04 16:21:31 +00:00
hyunghwan.chung
353d3bd2fe
added qse_getprimno() and added experimental code for foreign function interface
2015-10-03 15:29:03 +00:00
hyunghwan.chung
5449e89292
added support for pool dictionary import
2015-07-26 14:38:34 +00:00
hyunghwan.chung
ce8a86e082
added some code to support importing a pool dictionary
2015-07-25 15:01:51 +00:00
hyunghwan.chung
5700b57d57
added code that handles pool dictionary defintion
2015-07-15 08:39:18 +00:00
hyunghwan.chung
9e720c40d0
touched up code a bit for win64
2015-07-15 02:36:24 +00:00
hyunghwan.chung
b5d94ef6ea
added more code for namespace handling.
...
added initial code to define a pool dicitonary
fixed a compiler bug in resolving a class variable
2015-07-14 13:35:18 +00:00
hyunghwan.chung
3bb121c09d
changed the compiler to recoginize FQN reference
2015-07-13 15:58:27 +00:00
hyunghwan.chung
23d1bcf86c
added more namespace handling code
2015-07-13 15:35:52 +00:00
hyunghwan.chung
f97eb3d72b
added some experimental code for namespace handling
2015-07-12 17:14:21 +00:00
hyunghwan.chung
f2ec2d5fd2
did some preparatory work to support namespaces
2015-07-10 14:06:07 +00:00
hyunghwan.chung
4d181b521a
introduced #extend for extending a class.
...
#class XXX without a superclass inherits nil
2015-07-06 13:27:49 +00:00
hyunghwan.chung
132e4b48bb
aded STIX_SYNERR_INCLUDE
2015-07-03 14:38:37 +00:00
hyunghwan.chung
5ba0c67dd1
added the MAKE_BLOCK instruction to replace a serieos of PUSH_CONTEXT, PUSH_INTLIT, PUSH_INTLIT, SEND_BLOCK_COPY
2015-07-03 13:06:01 +00:00
hyunghwan.chung
37740da2d7
added PUSH_INTLIT and PUSH_NEGINTLIT instructions
2015-07-02 15:45:48 +00:00
hyunghwan.chung
cf3e24a6cd
enhanced method preamble
2015-07-02 14:59:52 +00:00
hyunghwan.chung
60299cda5b
added experimental code to support byte trailer of a pointer object. the main purpose is to embed byte codes into the back of the compiled method object.
...
fixed buggy code using the freed pointer when reallocation has occurred - callers of clone_keyword(), clone_assignee(), clone_binsel()
2015-07-01 15:01:39 +00:00
hyunghwan.chung
d6a9ca91fa
added JUMP2_FORWARD and JUMP2_BACKWARD
2015-07-01 07:21:54 +00:00
hyunghwan.chung
2d2039f4a5
fixed TEMPVAR handling
2015-06-30 15:12:37 +00:00
hyunghwan.chung
3e0d6630f1
changed block-local variable access to use XXXX_CTXTEMPVAR instructions.
...
implemented simple global variable access using XXXX_OBJECT instructions
2015-06-30 14:47:39 +00:00
hyunghwan.chung
f33bbfe724
collapsed store_into_xxx followed by pop_statcktop into pop_into_xxx
2015-06-29 14:24:04 +00:00
hyunghwan.chung
0dee37e56a
fixed the wrong operator used for encoding an instance variable index into the preamble
2015-06-29 14:10:15 +00:00
hyunghwan.chung
51d7db9b96
renumbered byte codes and removed fragile code handling tail-call optimization
2015-06-29 13:52:40 +00:00
hyunghwan.chung
c233bb95a7
fixed a bug in return handling
2015-06-28 14:20:37 +00:00
hyunghwan.chung
585f0a6acc
experimented some kind of tail call optimization. but ended up with no good result yet
2015-06-26 15:49:08 +00:00
hyunghwan.chung
0427879198
cleaned up code a bit
2015-06-25 13:37:50 +00:00
hyunghwan.chung
54aa947bab
added string, character, symbol literals with c style escape sequences
2015-06-24 11:53:19 +00:00
hyunghwan.chung
dea9944270
added array and byte-array literal handling.
...
removed CMD_EXTEND_DOUBLE and cleaned up instruction decoding a bit
2015-06-23 14:00:26 +00:00
hyunghwan.chung
6f565539a9
enhanced the compiler to handle cascaded messages.
...
implemented block-context local temporaries.
changed primitive_block_context_value() to support block context reentrancy by activating a shallow-copied block context
2015-06-22 14:21:46 +00:00
hyunghwan.chung
b9ee190dec
fixed a missing reinitialization problem in the compiler
2015-06-21 16:22:50 +00:00
hyunghwan.chung
e87dbbdfcd
fixed a bug of not initializing a variable buffer length in compile_class_definition()
2015-06-21 14:45:45 +00:00
hyunghwan.chung
60591201af
fixed a bug of producing wrong argument count for a binary message.
...
added primitives for basicSize, basicAt:, basicAt:Put:
2015-06-21 03:50:35 +00:00
hyunghwan.chung
fbfa4c4ff0
added code to handle block context
2015-06-20 03:07:11 +00:00
hyunghwan.chung
40c461f1f4
added more code to handle block context
2015-06-17 13:46:16 +00:00
hyunghwan.chung
af5e2a543b
added more compiler code
2015-06-16 13:29:29 +00:00
hyunghwan.chung
13fecb4c70
added PUSH_NEGONE, PUSH_ZERO, PUSH_ONE
2015-06-16 04:31:28 +00:00
hyunghwan.chung
8e143685c9
improved the structure of primitive handlers
2015-06-14 07:15:53 +00:00
hyunghwan.chung
c052501f0c
added CMD_PUSH_OBJVAR and CMD_STORE_INTO_OBJVAR
2015-06-12 13:52:30 +00:00
hyunghwan.chung
2982d4118d
fixed the fopen mode
2015-06-11 13:10:33 +00:00
hyunghwan.chung
af4d0596fb
enhanced newline handling
2015-06-11 12:09:10 +00:00
hyunghwan.chung
469210bd80
fixed some bugs related to store and pop
2015-06-11 09:11:18 +00:00
hyunghwan.chung
a8a44a1519
added 'preamble' to the compiled method.
...
improved some special case handling
2015-06-09 12:14:18 +00:00
hyunghwan.chung
5f6500aa7c
added some code for handling message sending and returning
2015-06-08 13:24:02 +00:00
hyunghwan.chung
b6f397fea7
added some VM code
2015-06-07 14:36:26 +00:00
hyunghwan.chung
5da9a789cd
added stix_invoke()
2015-06-06 07:24:35 +00:00
hyunghwan.chung
7a751d7cc0
added some vm code
2015-06-04 18:34:37 +00:00
hyunghwan.chung
3added1316
renamed vars to slot in stix_class_t
2015-06-03 17:27:22 +00:00
hyunghwan.chung
dab7285c45
added partial code to parse message sending expressions
2015-06-03 17:24:11 +00:00
hyunghwan.chung
e6137a5864
interim update
2015-06-03 04:22:19 +00:00
hyunghwan.chung
03aab810b9
added more code
2015-06-01 16:59:07 +00:00
hyunghwan.chung
72d74b48de
Added partial code to compile method statements
2015-06-01 15:59:16 +00:00
hyunghwan.chung
87929410db
fixed a wrong class name specified when adding a compiled method
2015-05-31 18:43:37 +00:00
hyunghwan.chung
cf029a0570
added code to handle literals
2015-05-31 16:44:56 +00:00
hyunghwan.chung
b91cd11561
added some basic code to handle a method dictionary
2015-05-28 16:51:37 +00:00
hyunghwan.chung
2e08cca9db
renamed some identifiers
2015-05-28 15:20:27 +00:00
hyunghwan.chung
3bfb434a8d
added yet more compiler code
2015-05-27 17:41:11 +00:00
hyunghwan.chung
bb3b6c4270
added more compiler code
2015-05-27 17:16:50 +00:00
hyunghwan.chung
008c74666d
still more compiler code
2015-05-26 16:31:47 +00:00
hyunghwan.chung
ca10456d3a
more compiler code
2015-05-25 18:13:52 +00:00
hyunghwan.chung
b7a443089a
written more compiler codes
2015-05-25 17:10:49 +00:00
hyunghwan.chung
f5d2a0a0aa
added some code to compile function body
2015-05-22 15:09:45 +00:00
hyunghwan.chung
9910380ebf
added more compiler code
2015-05-21 17:07:55 +00:00
hyunghwan.chung
a15fcfd2aa
added more compiler code
2015-05-20 15:52:45 +00:00
hyunghwan.chung
5207347b18
added some code to process class definition
2015-05-20 15:24:37 +00:00
hyunghwan.chung
364fe63ac3
added #include handling
2015-05-20 14:27:47 +00:00
hyunghwan.chung
e2b32aafb9
improved symbol tokenization
2015-05-19 16:26:52 +00:00
hyunghwan.chung
3db3a02a7a
added lexical analysis code
2015-05-19 15:16:18 +00:00
hyunghwan.chung
b70d9a976a
added utf8 string conversion functions
2015-05-17 05:02:30 +00:00
hyunghwan.chung
090c9ac1bf
added utf8 conversion functions
2015-05-16 07:31:16 +00:00
hyunghwan.chung
75bb3e9a40
added some code for a bootstraping compiler
2015-05-15 14:55:12 +00:00
hyunghwan.chung
ccb232329b
added code to register primitive objects into the system dictionary
2015-05-11 16:08:09 +00:00
hyunghwan.chung
10661777a1
fixed a bug of not resetting the heap limit after gc.
...
added some pointer arithmetic macros.
2015-05-08 14:29:35 +00:00
hyunghwan.chung
0b97fee2c4
added many lines of code for initial loading
2015-05-07 15:58:04 +00:00
hyunghwan.chung
c74266293d
fixed wrong defintions of some macros
2015-05-04 16:48:38 +00:00