Commit graph

2185 commits

Author SHA1 Message Date
Juan Jose Garcia Ripoll
cb9939d6c0 Separate lisp objects for functions with fixed and variable # arguments 2008-06-16 23:09:21 +02:00
Juan Jose Garcia Ripoll
0dbab7db8f Fixed typo. 2008-06-15 23:10:57 +02:00
Juan Jose Garcia Ripoll
34c363cc9f Avoid using FORMAT when it has not been defined. 2008-06-15 23:05:29 +02:00
Juan Jose Garcia Ripoll
5ef5df4135 Turn the macros in bytecodes.h into standalone forms that output no value. This restriction allows us to have more complex code in them. 2008-06-15 19:17:42 +02:00
Juan Jose Garcia Ripoll
9e210529e8 Split OP_MSETQ into OP_VSETQ and OP_VSETQS. 2008-06-15 10:50:32 +02:00
Juan Jose Garcia Ripoll
846d79dce3 Implement bytecodes for calling functions with 1 and 2 arguments. 2008-06-15 00:35:21 +02:00
Juan Jose Garcia Ripoll
2020fe6966 Optimize some common lisp functions 2008-06-14 22:07:20 +02:00
Juan Jose Garcia Ripoll
3cdc648832 Eliminate all direct references to stack_top 2008-06-14 01:27:09 +02:00
Juan Jose Garcia Ripoll
2316f0492e The interpreter now keeps VALUES(0) always in REG0 2008-06-13 18:37:47 +02:00
Juan Jose Garcia Ripoll
49efe3b96f Avoid using STACK_PUSH in loops 2008-06-13 12:32:06 +02:00
Juan Jose Garcia Ripoll
99cfc87f96 Inline stack_pop operation 2008-06-13 00:55:23 +02:00
Juan Jose Garcia Ripoll
3c3a2699be OP_MSETQ does not use the VALUES register 2008-06-13 00:41:03 +02:00
Juan Jose Garcia Ripoll
d4c36ab18f Inline funcalls and fix problem with multiple-value-prog1 and macrolet + declarations 2008-06-12 20:00:30 +02:00
Juan Jose Garcia Ripoll
a5ab938485 Fixed typo in COMPILED-FUNCTION-NAME. 2008-06-12 14:37:31 +02:00
Juan Jose Garcia Ripoll
21fafd42dc Introduce bytecode closure objects to save space in FLET/LABELS forms 2008-06-11 23:49:38 +02:00
Juan Jose Garcia Ripoll
b208e43f34 Revert to the old code for multiple-value-setq 2008-06-11 20:15:14 +02:00
Juan Jose Garcia Ripoll
3453e6d56c More compact format for bytecodes OP_FLET/LABELS 2008-06-10 19:50:21 +02:00
Juan Jose Garcia Ripoll
900bb98f37 No need to check when searching environments 2008-06-10 18:57:14 +02:00
Juan Jose Garcia Ripoll
ad2c7d2825 Slightly leaner code for searching environment 2008-06-09 19:36:34 +02:00
Juan Jose Garcia Ripoll
da0f6a2e64 SETQS does not check whether argument is constant, just as in SBCL. 2008-06-09 19:20:43 +02:00
Juan Jose Garcia Ripoll
33861197f3 Split operator MSETQ into VSETQ and VSETQS. 2008-06-09 19:19:25 +02:00
Juan Jose Garcia Ripoll
93586f613c Only use OP_VBIND[S] for values other than 0-th 2008-06-09 18:40:23 +02:00
Juan Jose Garcia Ripoll
7bdc8ce4cd ecl_interpret returns the first value 2008-06-09 18:30:58 +02:00
Juan Jose Garcia Ripoll
a8ba969759 Inline the stack push operation 2008-06-09 16:20:02 +02:00
Juan Jose Garcia Ripoll
c782245fc6 Save a pointer to the current environment in the interpreter. 2008-06-09 16:00:51 +02:00
Juan Jose Garcia Ripoll
5c82dc7e80 COND and PROG1 now operate using only REG0 and the stack 2008-06-09 14:28:26 +02:00
Juan Jose Garcia Ripoll
2ff8435086 OP_JT/JNIL need not set NVALUES 2008-06-09 12:07:11 +02:00
Juan Jose Garcia Ripoll
bbf7c9dea6 Allow COND forms to use REG0 to store computations, instead of forcing use of VALUES. 2008-06-09 11:54:52 +02:00
Juan Jose Garcia Ripoll
ee88cc241e Since OP_JT/JNIL check reg0, we can simplify the bytecodes for WHILE 2008-06-09 11:38:34 +02:00
Juan Jose Garcia Ripoll
abea2b728b Given that reg0 contains always VALUES(0), we can simplify OP_JT and OP_JNIL. 2008-06-09 11:37:36 +02:00
Juan Jose Garcia Ripoll
e400b3fb46 Simplify bytecodes compiler by rewriting IF as a COND. 2008-06-09 11:27:34 +02:00
Juan Jose Garcia Ripoll
027dae5686 Use the local IHS frame for storing the lexical environment. 2008-06-09 09:21:47 +02:00
Juan Jose Garcia Ripoll
6d1f4e8c15 Inline OP_PROGV. 2008-06-08 23:10:41 +02:00
Juan Jose Garcia Ripoll
53005f7068 The IHS record is not created in apply lambda but in ecl_interpret 2008-06-08 22:21:59 +02:00
Juan Jose Garcia Ripoll
18d0ffb0f4 The lexical environment of a function is stored in the same IHS record as its name. 2008-06-08 22:13:45 +02:00
Juan Jose Garcia Ripoll
2ac39d71bb Removed global environment field cl_env.lex_env 2008-06-08 20:30:35 +02:00
Juan Jose Garcia Ripoll
84c9902ed0 Remove useless field frs_lex from the frame stack records. 2008-06-08 19:59:25 +02:00
Juan Jose Garcia Ripoll
847e937183 Inline OP_MSETQ 2008-06-08 19:44:30 +02:00
Juan Jose Garcia Ripoll
5e31d6ed4e Inline OP_FLET/LABELS and let them access cl_env.lex_env less often. 2008-06-08 19:32:25 +02:00
Juan Jose Garcia Ripoll
9430fa5f87 OP_PROTECT also pushes the environment onto the stack. 2008-06-08 19:13:51 +02:00
Juan Jose Garcia Ripoll
0f0bf2b4e2 OP_TAGBODY also pushes the environment to be saved 2008-06-08 19:04:36 +02:00
Juan Jose Garcia Ripoll
82332d0523 Avoid using field lex_env in frame stack records, at least for blocks 2008-06-08 18:54:11 +02:00
Juan Jose Garcia Ripoll
2d77670383 ecl_interpret() now takes an explicit lexical environment argument. 2008-06-08 18:38:38 +02:00
Juan Jose Garcia Ripoll
30cb0fe1f5 lambda_bind_var() now takes also a generic environment as argument 2008-06-08 18:18:31 +02:00
Juan Jose Garcia Ripoll
27a9fa082d All functions that operate on the lexical environment take a generic environment as argument, not inspecting cl_env. 2008-06-08 18:05:18 +02:00
Juan Jose Garcia Ripoll
d9fc012432 The interpreter is rewritten using indirect threaded code 2008-06-08 00:48:31 +02:00
Juan Jose Garcia Ripoll
c02df756cc Export a condition for detected user interrupts (SIGINT) 2008-06-04 23:07:55 +02:00
Juan Jose Garcia Ripoll
212fbd1d22 In methods function's type declarations, the type and the name were swapped 2008-06-04 22:59:49 +02:00
Juan Jose Garcia Ripoll
54dc598232 Import version 1.118 of ASDF 2008-06-04 22:58:56 +02:00
Juan Jose Garcia Ripoll
8cac166b98 We need sys/time.h for struct timeval. 2008-05-31 15:27:04 +02:00