From 62c79fb216335f9d7abccd1f08d9803a702baa42 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 5 Jan 2011 18:57:28 -0800 Subject: Sketch closure-forming logic for nontrivial bindings. --- src/comp/back/abi.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/comp/back') 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; -- cgit v1.2.3