about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-06-13 18:52:04 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-06-13 18:57:25 -0700
commitc3bf7d07e98109a1143567a3c658cadf387febeb (patch)
treef0cd6a5bf497f4119f383c03e1f17ce58bea875f /src/rt/rust_upcall.cpp
parenta1bb4a4ded1128094066fb1b61f894d2a8dbc124 (diff)
downloadrust-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.cpp19
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++