mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Unsafe prims compiler option
This commit is contained in:
parent
537e8bc975
commit
0e407ea9da
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ Features
|
|||
|
||||
- Faster record type constructors
|
||||
- During compilation, validate the number of arguments passed to local function calls.
|
||||
- Added `-use-unsafe-prims` compiler option to allow generating faster code at the expense of runtime checks.
|
||||
|
||||
Bug Fixes
|
||||
|
||||
|
|
|
@ -487,7 +487,7 @@ object Cyc_is_immutable(object obj);
|
|||
object Cyc_vector_length(void *data, object v);
|
||||
object Cyc_vector_ref(void *d, object v, object k);
|
||||
#define Cyc_vector_ref_unsafe(d, v, k) \
|
||||
((vector) v)->elements[unbox_number(k)]
|
||||
((vector) v)->elements[obj_obj2int(k)]
|
||||
object Cyc_vector_set(void *d, object v, object k, object obj);
|
||||
object Cyc_make_vector(void *data, object cont, int argc, object len, ...);
|
||||
/**@}*/
|
||||
|
|
Loading…
Add table
Reference in a new issue