aboutsummaryrefslogtreecommitdiff
path: root/src/comp/back
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-01-05 18:57:28 -0800
committerGraydon Hoare <[email protected]>2011-01-05 18:57:28 -0800
commit62c79fb216335f9d7abccd1f08d9803a702baa42 (patch)
treed94c974bd316a1ad8034b19a341a435d820fc609 /src/comp/back
parentTranslate trivial bindings. Un-XFAIL bind-trivial.rs. (diff)
downloadrust-62c79fb216335f9d7abccd1f08d9803a702baa42.tar.xz
rust-62c79fb216335f9d7abccd1f08d9803a702baa42.zip
Sketch closure-forming logic for nontrivial bindings.
Diffstat (limited to 'src/comp/back')
-rw-r--r--src/comp/back/abi.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/back/abi.rs b/src/comp/back/abi.rs
index 3fae601b..8cef3439 100644
--- a/src/comp/back/abi.rs
+++ b/src/comp/back/abi.rs
@@ -49,6 +49,12 @@ const int obj_body_elt_fields = 1;
const int fn_field_code = 0;
const int fn_field_box = 1;
+const int closure_elt_tydesc = 0;
+const int closure_elt_target = 1;
+const int closure_elt_bindings = 2;
+const int closure_elt_ty_params = 3;
+
+
const int worst_case_glue_call_args = 7;
const int n_upcall_glues = 7;