From 4cfc4250bf721d5946b4f91c7b561dd57a00cc96 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 24 Sep 2010 14:56:04 -0700 Subject: More work on trans, almost getting to the point of emitting an upcall. --- src/comp/back/abi.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/comp/back/abi.rs') diff --git a/src/comp/back/abi.rs b/src/comp/back/abi.rs index 1a349a7b..ad4c066e 100644 --- a/src/comp/back/abi.rs +++ b/src/comp/back/abi.rs @@ -36,6 +36,18 @@ const int worst_case_glue_call_args = 7; const int n_upcall_glues = 7; +fn upcall_glue_name(int n) -> str { + ret "rust_upcall_" + util.common.istr(n); +} + +fn activate_glue_name() -> str { + ret "rust_activate_glue"; +} + +fn yield_glue_name() -> str { + ret "rust_yield_glue"; +} + // // Local Variables: // mode: rust -- cgit v1.2.3