summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
AgeCommit message (Collapse)AuthorLines
2013-06-30vec: implement exchange vector reserve in RustDaniel Micay-7/+0
2013-06-25auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmrbors-9/+0
This sets the `get_tydesc()` return type correctly and removes the intrinsic module. See #3730, #3475. Update: this now also removes the unused shape fields in tydescs.
2013-06-23Support foreign 'static mut' variables as wellAlex Crichton-0/+10
2013-06-23Remove rust_call_tydesc_gluePhilipp Brüschweiler-8/+0
Towards #4812. Also includes some minor cleanups.
2013-06-23Remove unused shape fields from typedescsPhilipp Brüschweiler-4/+3
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-11/+0
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-18std: Work around some failing 'run' tests when valgrinding. #7224Brian Anderson-0/+6
Under valgrind on 64->32 cross compiles the dynamic linker is emitting some error messages on stderr, which interferes with the tests that are checking stderr.
2013-05-28auto merge of #6731 : thomaslee/rust/issue-6575, r=pcwaltonbors-0/+11
Fix for #6575. In the trans phase, rustc emits code for a function parameter that goes completely unused in the event the return type of the function in question happens to be an immediate. This patch modifies rustc & parts of rustrt to ensure that the vestigial parameter is no longer present in compiled code.
2013-05-27Added _RUST_STAGEN guard to rust_call_tydesc_glueTom Lee-0/+7
2013-05-27Add _RUST_STAGE0 #ifdefsTom Lee-0/+4
2013-05-27Omit unused implicit argument if return type is immediate.Tom Lee-4/+4
2013-05-27Use passing by-value in gmtime, mktimeDaniel Farina-6/+6
Per the recommendation of the now-removed FIXME.
2013-05-20rt: Rename rust_initialize_global_state to rust_initialize_rt_tls_keyBrian Anderson-2/+2
2013-05-15rt: Rename sched_key to rt_keyBrian Anderson-7/+7
It is more general-purpose than holding scheduler pointers
2013-05-14core::rt: 0 is a valid TLS keyBrian Anderson-2/+2
2013-05-08auto merge of #6323 : brson/rust/nullary, r=thestingerbors-7/+0
There's no need to delegate to C to call the Rust main function.
2013-05-07rt: Remove rust_call_nullary_fnBrian Anderson-7/+0
There's no need to delegate to C to call the Rust main function.
2013-05-07rt: Eliminate the dependency on rust_kernel from rust_rngBrian Anderson-5/+4
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-0/+57
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-01add an option to debug borrows (RUST_DEBUG_BORROW) so you canNiko Matsakis-0/+14
find out where the offending borrow occurred. This ... still needs some work.
2013-04-25rt: abort doesn't take an argumentBrian Anderson-1/+1
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-0/+57
This also reverts some changes to TLS that were leaking memory. Conflicts: src/libcore/rt/uv/net.rs src/libcore/task/local_data_priv.rs src/libcore/unstable/lang.rs
2013-04-22core::rt: Add unwinding to newsched tasksBrian Anderson-0/+22
2013-04-21core::rt: Add the local heap to newsched tasksBrian Anderson-0/+35
Reusing the existing boxed_region implementation from the runtime
2013-04-21auto merge of #5887 : jdm/rust/stackbounds, r=brsonbors-0/+5
This is needed to allow GC to work in SpiderMonkey.
2013-04-21rt: Make the C stack segment accessible to runtime users.Josh Matthews-0/+5
2013-04-19core: Add rt::context for figuring out what runtime services are availableBrian Anderson-0/+5
Conflicts: src/libcore/rt/sched/mod.rs
2013-04-15rt: Move test functions to rust_test_helpers.cppBrian Anderson-86/+0
2013-04-14add rust_dbg_extern_identity_TwoDoubles to prevent check-fast failureJyun-Yan You-0/+10
2013-03-18core: Initialize global state lazily in the Scheduler ctorBrian Anderson-4/+13
I don't want any global one-time initalization functions because that will make embedding harder.
2013-03-18Add a way to run the test suite with the new schedulerBrian Anderson-0/+31
TESTARGS=--newrt make check-stage1-rpass Conflicts: src/rt/rustrt.def.in
2013-03-16rt: Add RUST_DEBUG_MEM to rust_env to avoid racesBrian Anderson-0/+5
2013-03-14auto merge of #5364 : xenocons/rust/patch-1, r=z0w0bors-1/+1
2013-03-14updated from L to ull for easier mingw32 builds.xenocons-1/+1
2013-03-13Revamp foreign code not to consider the Rust modes. This requiresNiko Matsakis-6/+38
adjusting a few foreign functions that were declared with by-ref mode. This also allows us to remove by-val mode in the near future. With copy mode, though, we have to be careful because Rust will implicitly pass somethings by pointer but this may not be the C ABI rules. For example, rust will pass a struct Foo as a Foo*. So I added some code into the adapters to fix this (though the C ABI rules may put the pointer back, oh well). This patch also includes a lint mode for the use of by-ref mode in foreign functions as the semantics of this have changed.
2013-03-12Work around linkage bug cross-compiling from x86_64-apple-darwin to ↵Brian Anderson-0/+27
i686-apple-darwin The correct opendir/readdir to use appear to be the 64-bit versions called opendir$INODE64, etc. but for some reason I can't get them to link properly on i686. Putting them in librustrt and making gcc figure it out works. This mystery will have to wait for another day.
2013-03-11core: Add rt mod and add the new scheduler codeBrian Anderson-4/+4
2013-03-11rt/core: port os::list_dir to rust ref #4812Jeff Olson-36/+30
2013-03-11core: rt/core: impl os::env() in rust ref #4812Jeff Olson-31/+4
2013-03-11rt/core: impl os::getcwd() in rust ref #4812Jeff Olson-19/+0
2013-02-27rt: Make some runtime calls work outside of task contextBrian Anderson-4/+2
2013-02-19rt: fix memory-unsafe random seed logic, r=valgrindcleanGraydon Hoare-27/+8
2013-02-14reseed rust_rng after generating 32KBChris Peterson-1/+2
2013-02-14encapsulate isaac RNG in rust_rng structChris Peterson-14/+14
2013-02-14rt: rand.rs expects rust_next() to return uint32_t, not size_tChris Peterson-1/+1
2013-02-13rt: Fix alignment in debug_opaqueLuqman Aden-6/+5
2013-02-13rt: take into account alignment for debug_opaque. Closes #2667Luqman Aden-3/+6
2013-02-13rt: get rid of rust_fn and replace with fn_env_pair plus a little cleanup.Luqman Aden-26/+8
2013-02-12auto merge of #4900 : luqmana/rust/core_os_errors, r=graydonbors-44/+0
Rewrote the last pull request (#4859) to not require on llvm for core. Also fixes #2269.
2013-02-12auto merge of #4858 : z0w0/rust/rm_weak_task_count, r=graydonbors-4/+4