Commits

Shawn Hyam  committed fba1350

Rearranging some code as I write my JIT compiler article.

  • Participants
  • Parent commits 4d39138

Comments (0)

Files changed (1)

File part2/son_of_blub.ml

   | Sllvm of Llvm.lltype * GV.t
   | Sunbound
 
+and environment = frame list
+
+and frame = {
+  frame_vars : variable array;  (* mostly for debugging *)
+  frame_vals : sval array
+}
+
 and sclosure = {
   close_env : environment;
   close_lam : lambda;
   close_jitcode : (Llvm.lltype * Llvm.llvalue) Lazy.t  (* return value; code *)
 }
 
-and frame = {
-  frame_vars : variable array;  (* mostly for debugging *)
-  frame_vals : sval array
-}
-
-and environment = frame list
 
 (* BASIC UTILITIES *)