aboutsummaryrefslogtreecommitdiff
path: root/src/comp/back/abi.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-23 15:46:31 -0700
committerGraydon Hoare <[email protected]>2010-09-23 15:46:31 -0700
commit46e46d0b49de8e245d091f7062dfc28ab71e869e (patch)
tree5ca0d7ab10eb2a89b9c2a299ff3490eac912bf5d /src/comp/back/abi.rs
parentMore fleshing-out on rustc.me.trans. Emitting modules and fns corresponding t... (diff)
downloadrust-46e46d0b49de8e245d091f7062dfc28ab71e869e.tar.xz
rust-46e46d0b49de8e245d091f7062dfc28ab71e869e.zip
Translate a bunch of the material (lltrans, llasm, abi) from rustboot to rustc, and move files around.
Diffstat (limited to 'src/comp/back/abi.rs')
-rw-r--r--src/comp/back/abi.rs46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/comp/back/abi.rs b/src/comp/back/abi.rs
new file mode 100644
index 00000000..157bf876
--- /dev/null
+++ b/src/comp/back/abi.rs
@@ -0,0 +1,46 @@
+
+const int rc_base_field_refcnt = 0;
+
+const int task_field_refcnt = 0;
+const int task_field_stk = 2;
+const int task_field_runtime_sp = 3;
+const int task_field_rust_sp = 4;
+const int task_field_gc_alloc_chain = 5;
+const int task_field_dom = 6;
+const int n_visible_task_fields = 7;
+
+const int dom_field_interrupt_flag = 1;
+
+const int frame_glue_fns_field_mark = 0;
+const int frame_glue_fns_field_drop = 1;
+const int frame_glue_fns_field_reloc = 2;
+
+const int box_rc_field_refcnt = 0;
+const int box_rc_field_body = 1;
+
+const int general_code_alignment = 16;
+
+const int vec_elt_rc = 0;
+const int vec_elt_alloc = 1;
+const int vec_elt_fill = 2;
+const int vec_elt_data = 3;
+
+const int calltup_elt_out_ptr = 0;
+const int calltup_elt_task_ptr = 1;
+const int calltup_elt_indirect_args = 2;
+const int calltup_elt_ty_params = 3;
+const int calltup_elt_args = 4;
+const int calltup_elt_iterator_args = 5;
+
+const int worst_case_glue_call_args = 7;
+
+//
+// Local Variables:
+// mode: rust
+// fill-column: 78;
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// compile-command: "make -k -C ../.. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
+// End:
+//