aboutsummaryrefslogtreecommitdiff
path: root/src/boot/be/abi.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-25 12:07:03 -0700
committerGraydon Hoare <[email protected]>2010-08-25 12:08:05 -0700
commitb2b72a08dbd18e384972dd835a93df9167380247 (patch)
tree5a660cce5790a4ad28650bcbcf336ee44f68a46e /src/boot/be/abi.ml
parentFix ghastly typestate bug breaking nested functions. (diff)
downloadrust-b2b72a08dbd18e384972dd835a93df9167380247.tar.xz
rust-b2b72a08dbd18e384972dd835a93df9167380247.zip
Janitorial work on obj box / body / field terminology, following froystig's brave lead.
Diffstat (limited to 'src/boot/be/abi.ml')
-rw-r--r--src/boot/be/abi.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/boot/be/abi.ml b/src/boot/be/abi.ml
index 5bdf21fa..5dd6037b 100644
--- a/src/boot/be/abi.ml
+++ b/src/boot/be/abi.ml
@@ -47,13 +47,15 @@ let stk_field_data = stk_field_limit + 1;;
(* Both obj and fn are two-word "bindings": One word points to some
* static dispatch information (vtbl or thunk), and the other points to
- * some bag of bound data (object-body or closure). *)
+ * some bag of bound data (object-body or closure).
+ *)
let binding_field_dispatch = 0;;
let binding_field_bound_data = 1;;
let obj_field_vtbl = binding_field_dispatch;;
-let obj_field_body_box = binding_field_bound_data;;
+let obj_field_box = binding_field_bound_data;;
+
let obj_body_elt_tydesc = 0;;
let obj_body_elt_fields = 1;;