aboutsummaryrefslogtreecommitdiff
path: root/kernel/cbytecodes.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-07-10 15:25:11 +0200
committerGaëtan Gilbert2018-07-24 13:49:18 +0200
commit076bb351257dfd3c605c010d95484f224bef5e56 (patch)
treea03ae69145ed806d4c97ca9de7d3b560b34b6478 /kernel/cbytecodes.ml
parentd03deb978a6747a9fb6ce33cb6ed5063d36c7b42 (diff)
VM: don't duplicate projection narg information in lproj/kproj
Diffstat (limited to 'kernel/cbytecodes.ml')
-rw-r--r--kernel/cbytecodes.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/cbytecodes.ml b/kernel/cbytecodes.ml
index 8030060339..9a1224aab2 100644
--- a/kernel/cbytecodes.ml
+++ b/kernel/cbytecodes.ml
@@ -128,8 +128,7 @@ type instruction =
| Ksetfield of int
| Kstop
| Ksequence of bytecodes * bytecodes
- | Kproj of int * Projection.Repr.t (* index of the projected argument,
- name of projection *)
+ | Kproj of Projection.Repr.t
| Kensurestackcapacity of int
(* spiwack: instructions concerning integers *)
| Kbranch of Label.t (* jump to label *)
@@ -311,7 +310,7 @@ let rec pp_instr i =
| Kbranch lbl -> str "branch " ++ pp_lbl lbl
- | Kproj(n,p) -> str "proj " ++ int n ++ str " " ++ Projection.Repr.print p
+ | Kproj p -> str "proj " ++ Projection.Repr.print p
| Kensurestackcapacity size -> str "growstack " ++ int size