diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 13:32:50 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 15:59:16 +0200 |
| commit | b4bae8fea5943a0b95a1a9be13a8155ee45418b7 (patch) | |
| tree | fb1ebdf8465f626dee6ffb508155f267280cd5e4 /src/lib | |
| parent | 5c53959f203272c94095c8b6b2271b127d01be6f (diff) | |
| download | rust-b4bae8fea5943a0b95a1a9be13a8155ee45418b7.tar.gz rust-b4bae8fea5943a0b95a1a9be13a8155ee45418b7.zip | |
Make vectors and strings immediates again
There's no good reason to force them to be spilled anymore. Some pieces of trans become more elegant this way, and less stack allocs and load/stores are needed. Issue #1021
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/posix_fs.rs | 2 | ||||
| -rw-r--r-- | src/lib/vec.rs | 2 | ||||
| -rw-r--r-- | src/lib/win32_fs.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/posix_fs.rs b/src/lib/posix_fs.rs index a20f9d7711f..5ebebc2748a 100644 --- a/src/lib/posix_fs.rs +++ b/src/lib/posix_fs.rs @@ -1,6 +1,6 @@ native "rust" mod rustrt { - fn rust_list_files(path: str) -> [str]; + fn rust_list_files(&&path: str) -> [str]; } fn list_dir(path: str) -> [str] { diff --git a/src/lib/vec.rs b/src/lib/vec.rs index 59f29d40d7c..bf21e056f6c 100644 --- a/src/lib/vec.rs +++ b/src/lib/vec.rs @@ -5,7 +5,7 @@ import uint::next_power_of_two; import ptr::addr_of; native "rust-intrinsic" mod rusti { - fn vec_len<T>(v: [T]) -> uint; + fn vec_len<T>(&&v: [T]) -> uint; } native "rust" mod rustrt { diff --git a/src/lib/win32_fs.rs b/src/lib/win32_fs.rs index dcd8a905d2e..e1bfb24b6d1 100644 --- a/src/lib/win32_fs.rs +++ b/src/lib/win32_fs.rs @@ -1,8 +1,8 @@ native "rust" mod rustrt { - fn rust_list_files(path: str) -> [str]; - fn rust_file_is_dir(path: str) -> int; + fn rust_list_files(&&path: str) -> [str]; + fn rust_file_is_dir(&&path: str) -> int; } fn list_dir(path: str) -> [str] { |
