mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
add string-length, string-ref, vector-length instructions
* libguile/_scm.h (SCM_OBJCODE_MAJOR_VERSION): Bump the major version, indicating the first incompatibility between 2.0 and 2.2. * libguile/vm-i-scheme.c (string-length, string-ref, vector-length): New instructions. * module/language/tree-il/compile-glil.scm (*primcall-ops*): Add primcall ops for the new instructions.
This commit is contained in:
parent
ba9f9f0d63
commit
d5a4f51f9c
3 changed files with 98 additions and 48 deletions
|
@ -115,6 +115,9 @@
|
|||
((class-of . 1) . class-of)
|
||||
((@slot-ref . 2) . slot-ref)
|
||||
((@slot-set! . 3) . slot-set)
|
||||
((string-length . 1) . string-length)
|
||||
((string-ref . 2) . string-ref)
|
||||
((vector-length . 1) . vector-length)
|
||||
((vector-ref . 2) . vector-ref)
|
||||
((vector-set! . 3) . vector-set)
|
||||
((variable-ref . 1) . variable-ref)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue