diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-06-13 18:52:04 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-06-13 18:57:25 -0700 |
| commit | c3bf7d07e98109a1143567a3c658cadf387febeb (patch) | |
| tree | f0cd6a5bf497f4119f383c03e1f17ce58bea875f /src/rt/rust_upcall.cpp | |
| parent | a1bb4a4ded1128094066fb1b61f894d2a8dbc124 (diff) | |
| download | rust-c3bf7d07e98109a1143567a3c658cadf387febeb.tar.gz rust-c3bf7d07e98109a1143567a3c658cadf387febeb.zip | |
rustc: Implement simple interior vector append translation
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index fb7e3edc4f8..b39321c9285 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -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++ |
