Skip to content

Commit 1d7ca9c

Browse files
committed
rustc: Add the dynastack upcalls to upcall.rs
1 parent 556de42 commit 1d7ca9c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/comp/back/upcall.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ type upcalls =
4545
ivec_resize_shared: ValueRef,
4646
ivec_spill_shared: ValueRef,
4747
cmp_type: ValueRef,
48-
log_type: ValueRef};
48+
log_type: ValueRef,
49+
dynastack_mark: ValueRef,
50+
dynastack_alloc: ValueRef,
51+
dynastack_free: ValueRef};
4952

5053
fn declare_upcalls(tn: type_names, tydesc_type: TypeRef,
5154
taskptr_type: TypeRef, llmod: ModuleRef) -> @upcalls {
@@ -111,7 +114,13 @@ fn declare_upcalls(tn: type_names, tydesc_type: TypeRef,
111114
log_type:
112115
dr("log_type", ~[taskptr_type, T_ptr(tydesc_type),
113116
T_ptr(T_i8()), T_i32()],
114-
T_void())};
117+
T_void()),
118+
dynastack_mark:
119+
d("dynastack_mark", ~[], T_ptr(T_i8())),
120+
dynastack_alloc:
121+
d("dynastack_alloc", ~[T_size_t()], T_ptr(T_i8())),
122+
dynastack_free:
123+
d("dynastack_free", ~[T_ptr(T_i8())], T_void())};
115124
}
116125
//
117126
// Local Variables:

0 commit comments

Comments
 (0)