aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/byterun/coq_fix_code.c2
-rw-r--r--kernel/byterun/coq_interp.c14
-rw-r--r--kernel/genOpcodeFiles.ml2
-rw-r--r--kernel/vmemitcodes.ml3
4 files changed, 2 insertions, 19 deletions
diff --git a/kernel/byterun/coq_fix_code.c b/kernel/byterun/coq_fix_code.c
index ab6e393178..51ac290ad0 100644
--- a/kernel/byterun/coq_fix_code.c
+++ b/kernel/byterun/coq_fix_code.c
@@ -40,7 +40,7 @@ void init_arity () {
arity[APPLY1]=arity[APPLY2]=arity[APPLY3]=arity[APPLY4]=arity[RESTART]=
arity[OFFSETCLOSURE0]=arity[OFFSETCLOSURE1]=
arity[PUSHOFFSETCLOSURE0]=arity[PUSHOFFSETCLOSURE1]=
- arity[GETFIELD0]=arity[GETFIELD1]=arity[SETFIELD0]=arity[SETFIELD1]=
+ arity[GETFIELD0]=arity[GETFIELD1]=
arity[CONST0]=arity[CONST1]=arity[CONST2]=arity[CONST3]=
arity[PUSHCONST0]=arity[PUSHCONST1]=arity[PUSHCONST2]=arity[PUSHCONST3]=
arity[ACCUMULATE]=arity[STOP]=arity[MAKEPROD]=
diff --git a/kernel/byterun/coq_interp.c b/kernel/byterun/coq_interp.c
index 62683b87a6..a1537cd963 100644
--- a/kernel/byterun/coq_interp.c
+++ b/kernel/byterun/coq_interp.c
@@ -1011,20 +1011,6 @@ value coq_interprete
Next;
}
- Instruct(SETFIELD0){
- print_instr("SETFIELD0");
- caml_modify(&Field(accu, 0),*sp);
- sp++;
- Next;
- }
-
- Instruct(SETFIELD1){
- print_instr("SETFIELD1");
- caml_modify(&Field(accu, 1),*sp);
- sp++;
- Next;
- }
-
Instruct(SETFIELD){
print_instr("SETFIELD");
caml_modify(&Field(accu, *pc),*sp);
diff --git a/kernel/genOpcodeFiles.ml b/kernel/genOpcodeFiles.ml
index ca9985d079..6e79b431a5 100644
--- a/kernel/genOpcodeFiles.ml
+++ b/kernel/genOpcodeFiles.ml
@@ -82,8 +82,6 @@ let opcodes =
"GETFIELD0";
"GETFIELD1";
"GETFIELD";
- "SETFIELD0";
- "SETFIELD1";
"SETFIELD";
"PROJ";
"ENSURESTACKCAPACITY";
diff --git a/kernel/vmemitcodes.ml b/kernel/vmemitcodes.ml
index 5849641c20..85b5ca03e5 100644
--- a/kernel/vmemitcodes.ml
+++ b/kernel/vmemitcodes.ml
@@ -359,8 +359,7 @@ let emit_instr env = function
if n <= 1 then out env (opGETFIELD0+n)
else (out env opGETFIELD;out_int env n)
| Ksetfield n ->
- if n <= 1 then out env (opSETFIELD0+n)
- else (out env opSETFIELD;out_int env n)
+ out env opSETFIELD; out_int env n
| Ksequence _ -> invalid_arg "Vmemitcodes.emit_instr"
| Kproj p -> out env opPROJ; out_int env (Projection.Repr.arg p); slot_for_proj_name env p
| Kensurestackcapacity size -> out env opENSURESTACKCAPACITY; out_int env size