rustc: Implement simple interior vector append translation

This commit is contained in:
Patrick Walton
2011-06-13 18:52:04 -07:00
parent a1bb4a4ded
commit c3bf7d07e9
6 changed files with 305 additions and 35 deletions

View File

@@ -574,6 +574,25 @@ upcall_start_thread(rust_task *task,
return child_task_proxy;
}
/**
* Resizes an interior vector that has been spilled to the heap.
*/
extern "C" CDECL void
upcall_ivec_resize(rust_task *task,
rust_ivec *v,
size_t newsz) {
// TODO
task->fail(4);
}
extern "C" CDECL void
upcall_ivec_spill(rust_task *task,
rust_ivec *v,
size_t newsz) {
// TODO
task->fail(4);
}
//
// Local Variables:
// mode: C++