Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
b8978c6
Remove old mozjs
fitzgen May 10, 2017
77fa359
Add new mozjs
fitzgen May 10, 2017
bef886d
Remove bad Cargo.toml
fitzgen May 10, 2017
d66fb78
Remove testing Cargo.toml files
fitzgen May 10, 2017
e2d2d20
WIP Fix finding of the include dir for bindgen
fitzgen May 10, 2017
3a8cd13
Re-export root through jsapi
fitzgen May 11, 2017
5b30592
Add more APIs to work with AutoIdVector.
Ms2ger Sep 15, 2016
478305b
Return a ConversionResult::Failure when converting a non-iterable val…
Ms2ger Sep 19, 2016
add34bd
Wrap uses of extern statics in unsafe blocks.
Ms2ger Sep 22, 2016
9434341
Improve typed array support.
Ms2ger Sep 13, 2016
573b538
Add missing hooks to SIMPLE_GLOBAL_CLASS_OPS.
Ms2ger Sep 22, 2016
816a319
Add a test for typed array support.
Ms2ger Sep 22, 2016
c8a9a4b
Handle panics.
Ms2ger Oct 25, 2016
c906e06
Fix travis build.
emilio Oct 25, 2016
e8a424d
Fix code involving empty type references
DemiMarie Nov 2, 2016
c528e97
Add an implementation of Default for Heap<*mut T>.
ejpbruel Nov 10, 2016
e8b78cf
Add a method to create a Heap<T>.
ejpbruel Nov 10, 2016
1e6962a
Add an implementation of Clone for Heap<T>.
ejpbruel Nov 10, 2016
085c184
Add an implementation of PartialEq for Heap<T>.
ejpbruel Nov 10, 2016
fe79953
Implement a Trace trait for types that can be traced.
ejpbruel Nov 10, 2016
30007d1
Use a less strict bound for wrap_panic.
Ms2ger Nov 15, 2016
e6d2e1a
Implement maybe_wrap_object_value without OOL calls
nox Aug 30, 2016
2e870a4
Fix a typo in try_to_outerize
nox Nov 18, 2016
35bb0eb
Add methods to create a HandleValueArray.
ejpbruel Nov 21, 2016
9c99759
Store the JSContext in TLS for easy access.
Ms2ger Dec 20, 2016
b4e38fb
Add type for ArrayBufferView.
jdm Dec 22, 2016
90ec8f8
Remove the type parameter from GCMethods.
Ms2ger Jan 12, 2017
b7924a3
Disallow constructing an unrooted Rooted with a value.
Ms2ger Jan 12, 2017
1f190c1
Consistently apply the same bounds to RootedGuard's type parameter.
Ms2ger Jan 12, 2017
c7d04f4
Clear the value of a Rooted when the RootedGuard goes out of scope.
Ms2ger Jan 12, 2017
2e1b71d
Simplify add_to_root_stack and remove_from_root_stack.
Ms2ger Jan 12, 2017
00b663d
Add test.
Ms2ger Jan 13, 2017
ee08348
Ensure Runtime::get() works during the final GC under JS_DestroyRuntime.
Ms2ger Jan 18, 2017
1dbed97
Add test.
Ms2ger Jan 18, 2017
44e6186
Allow interior mutability of Heap objects.
Jan 27, 2017
3f4d0e0
Bump version.
Jan 27, 2017
ca233e6
Protect TypedArray::from method against null pointers
Feb 6, 2017
a86eff5
Add update_raw and update with test
yysung1123 Feb 4, 2017
09b1e81
Add handle_mut() for Heap
yysung1123 Feb 7, 2017
46e8e2a
Modify TypedArray::create API to accept either a length or an initial…
simon-whitehead Feb 11, 2017
d56baff
Revert incorrect license changes.
Ms2ger Feb 15, 2017
8226bbd
Move the ToJSValConvertible implementation for JSVal.
Ms2ger Feb 15, 2017
2974d24
get_array_type convenience method
bd339 Feb 15, 2017
78dde1a
Tests for get_array_type method
bd339 Feb 15, 2017
2229605
Implement conversion traits for Heap.
Ms2ger Feb 15, 2017
4613ec5
Add license field to Cargo.toml
mbrubeck Mar 23, 2017
5a536e6
Call JS_ShutDown when all runtimes have been dropped.
jdm Mar 27, 2017
7f574d7
added servojsprincipal skeleton
avadacatavra Apr 11, 2017
098879e
Implement FromJSValConvertible for HandleValue
KiChjang Apr 18, 2017
49e82dd
Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)
SimonSapin May 7, 2017
42e2f2b
Add more JSAPI functions that Servo uses to whitelisting
fitzgen May 12, 2017
b778ac1
Even more JSAPI functions that Servo uses
fitzgen May 12, 2017
dbbb469
A bunch more JSAPI things used by Servo
fitzgen May 12, 2017
bb0d994
No JSVal type alias, just use JS::Value
fitzgen May 12, 2017
2c9f5f7
Add some more JSAPI things used by Servo
fitzgen May 12, 2017
e4fd27a
Whitelist JS_CallFunctionValue
fitzgen May 13, 2017
5b6927a
Even more JSAPI things that Servo uses
fitzgen May 13, 2017
070e0c7
A couple more JSAPI whitelisting
fitzgen May 13, 2017
7340738
More JSAPI things used by Servo
fitzgen May 15, 2017
c85c0d8
Fix whitelisting of JS_Call to JS::Call
fitzgen May 15, 2017
d0787a4
Add some more JSAPIs to whitelisting
fitzgen May 15, 2017
22019cf
Even more JSAPI whitelisting
fitzgen May 15, 2017
38b0fdd
Add missing comma
fitzgen May 15, 2017
794488b
Bump to bindgen 0.25
fitzgen May 15, 2017
e9a8941
Whitelist js::SetWindowProxy
fitzgen May 15, 2017
055fdfd
Bump bindgen dependency version
fitzgen May 30, 2017
f5ab125
List the JSAPI types for which we should `unsafe impl Sync`
fitzgen May 30, 2017
8e7a54d
Add the js::rust::Runtime::rt() method
fitzgen May 30, 2017
7f97010
Add a nice, Rust-y API for structured cloning
fitzgen May 31, 2017
e18b481
Some Sync impls and some glue fixing
fitzgen May 31, 2017
92aa507
Clean up test that last JSPropertySpec is zeroed
fitzgen Jun 1, 2017
c237b35
Cherry pick patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1…
fitzgen Jun 1, 2017
4e79f72
Whitelist JS_GetGCParameter
fitzgen Jun 2, 2017
d0eec37
Fix linking for MacOS
fitzgen May 25, 2017
af3a4c1
Remove the very unsafe `JS_CALLEE` function
fitzgen Jun 6, 2017
296b36f
Also whitelist js::Dump{Object,String,...} for debugging
fitzgen Jun 6, 2017
b17d512
Make `cargo test --features debugmozjs` pass again
fitzgen Jun 6, 2017
5be6a80
Fix linking on Linux again
fitzgen Jun 6, 2017
9ab1a55
Add the SetProxyPrivate js glue function
fitzgen Jun 7, 2017
4934441
Whitelist JS::SetGetIncumbentGlobalCallback
fitzgen Jun 16, 2017
0b89c24
Define and expose an `is_global` inline function
fitzgen Jun 16, 2017
aeec96c
Use the heapsize version that servo is using now
fitzgen Jun 16, 2017
e2cdec3
Whitelist some more functions that servo is using
fitzgen Jun 16, 2017
ce54a05
Rewrote documentation for conversion failure modes.
Jun 6, 2017
7c17373
Add new_target method to CallArgs
cbrewster Jun 7, 2017
8269eb0
Tell bindgen to use unstable Rust
fitzgen Jun 21, 2017
6de2a40
Ignore JS::Rooted instantiations that are specialized
fitzgen Jun 21, 2017
2a1773d
Update dependencies to get a new bindgen
fitzgen Jun 22, 2017
511dbf6
Update the Travis CI build and test script
fitzgen Jun 21, 2017
2efe3c3
Adopt the appveyor CI script from servo/rust-mozjs
fitzgen Jun 21, 2017
02fcbe4
Install gcc 5, autoconf2.13, and libclang 3.9 in Travis CI
fitzgen Jul 5, 2017
132ea2e
Copy python around, don't move it
fitzgen Jul 6, 2017
e5b57bf
Try to find the best python we can for building
fitzgen Jul 6, 2017
888b230
TEMP logging for CI
fitzgen Jul 6, 2017
163ad09
TEMP use bindgen branch with version logging
fitzgen Jul 7, 2017
ec1a63a
Use LIBCLANG_PATH instead of LD_LIBRARY_PATH
fitzgen Jul 7, 2017
aa7c542
Don't log bindgen
fitzgen Jul 7, 2017
1bc3f6a
Translate "C:" into "/c" in the js/src path on windows
fitzgen Jul 7, 2017
9927b3f
Factor out the Travis CI test scripts into their own files
fitzgen Jul 7, 2017
b492b29
TEMP more debug logging for appveyor stuff
fitzgen Jul 7, 2017
f5599e4
TEMP don't source tooltool script on windows? sfink says it may work
fitzgen Jul 10, 2017
8c2bd30
TEMP Add logging for whats in C:\Python2.7
fitzgen Jul 10, 2017
09f2087
Remove unused import
fitzgen Jul 10, 2017
b2a1e3c
Remove unnecessary casts; return Result<(), ()> instead of bool
fitzgen Jul 10, 2017
752e334
TEMP stop using a custom branch of bindgen for logging
fitzgen Jul 10, 2017
a081cf2
Don't do more than 4 parallel jobs due to travis CI builders OOMing
fitzgen Aug 22, 2017
59e6e7b
Just do 1 make build to avoid OOMs in travis CI
fitzgen Aug 22, 2017
3c2a450
Ok try 4 parallel jobs because 1 is timing out
fitzgen Aug 22, 2017
f5fde16
8 parallel jobs because 4 is still timing out
fitzgen Aug 23, 2017
3663619
6 parallel jobs because 8 is OOMing again
fitzgen Aug 23, 2017
8af818e
Whitelist JS::Construct
fitzgen Aug 28, 2017
182973d
Whitelist JS_SameValue
fitzgen Aug 28, 2017
f301616
Run autoconf/configure/make inside the mozilla build environment
fitzgen Aug 29, 2017
f75eeaa
Fix bad python 2.7 path on appveyor
fitzgen Aug 29, 2017
5cbac15
Use -j6 for appveyor builds as well
fitzgen Aug 30, 2017
08f655a
WIP building on windows
fitzgen Sep 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
30 changes: 25 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
language: rust

rust:
- nightly

sudo: 9000
dist: trusty

os:
- linux
- osx

dist: trusty

addons:
apt:
sources:
# Provides newer gcc.
- ubuntu-toolchain-r-test
# Provides libclang 3.9.
- llvm-toolchain-trusty-3.9
packages:
- autoconf2.13
# bindgen requires libclang >= 3.9.
- clang-3.9
# SpiderMonkey needs gcc >= 4.9.
- gcc-5
- g++-5

env:
- FEATURES=""
- FEATURES="--features debugmozjs"

script:
- cargo build --verbose --verbose $FEATURES

before_install:
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yasm; fi
- source .travis/before_install.sh

script:
- .travis/script.sh

notifications:
webhooks: http://build.servo.org:54856/travis

cache: ccache
19 changes: 19 additions & 0 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# We always want backtraces for everything.
export RUST_BACKTRACE=1

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install autoconf@2.13 ccache llvm@3.9 yasm
export LIBCLANG_PATH=$(find /usr/local/Cellar/llvm -type f -name libclang.dylib)
export LIBCLANG_PATH=$(dirname $LIBCLANG_PATH)
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CC="gcc-5"
export CXX="g++-5"
export LIBCLANG_PATH=/usr/lib/llvm-3.9/lib
else
echo "Error: unknown \$TRAVIS_OS_NAME: $TRAVIS_OS_NAME"
exit 1
fi

export CCACHE=$(which ccache)
17 changes: 17 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -eux

cd "$(dirname $0)/../mozjs/js/rust"

# Clear the ccache statistics.
ccache -z

# Build and test with `-vv`, aka "very verbose", to keep Travis CI from killing
# us due to no output (we can't use `travis_wait` here, as its an alias that
# isn't available to child shells). It's also useful when debugging, of course.
cargo build -vv $FEATURES
cargo test -vv $FEATURES

# Dump out the ccache statistics.
ccache -s
19 changes: 0 additions & 19 deletions Cargo.toml

This file was deleted.

28 changes: 0 additions & 28 deletions README.md

This file was deleted.

10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ install:
- if %BUILD_ENV%==gnu bash -lc "pacman --noconfirm -Sy"
- if %BUILD_ENV%==gnu bash -lc "pacman -Sy --needed --noconfirm git mingw-w64-x86_64-toolchain tar make python2-setuptools"
- if %BUILD_ENV%==gnu bash -lc "easy_install-2.7 pip virtualenv"
- if %BUILD_ENV%==gnu bash -lc "mv /mingw64/bin/python2.exe /mingw64/bin/python2-mingw64.exe"
- if %BUILD_ENV%==gnu bash -lc "mv /mingw64/bin/python2.7.exe /mingw64/bin/python2.7-mingw64.exe"
- if %BUILD_ENV%==gnu bash -lc "cp /mingw64/bin/python2.exe /mingw64/bin/python2-mingw64.exe"
- if %BUILD_ENV%==gnu bash -lc "cp /mingw64/bin/python2.7.exe /mingw64/bin/python2.7-mingw64.exe"
- rustc -vV
- cargo -vV

build_script:
- dir C:\Python27
- echo PATH %PATH%
- echo VSINSTALLDIR %VSINSTALLDIR%
- echo MOZTOOLS_PATH %MOZTOOLS_PATH%
- if %BUILD_ENV%==msvc cd %APPVEYOR_BUILD_FOLDER% && cargo build --verbose --verbose
- if %BUILD_ENV%==gnu bash -lc "cd $APPVEYOR_BUILD_FOLDER; cargo build --verbose --verbose"

- if %BUILD_ENV%==msvc cd %APPVEYOR_BUILD_FOLDER%\mozjs\js\rust && cargo build && cargo test
- if %BUILD_ENV%==gnu bash -lc "cd $APPVEYOR_BUILD_FOLDER/mozjs/js/rust; cargo build && cargo test"
58 changes: 0 additions & 58 deletions build.rs

This file was deleted.

1 change: 0 additions & 1 deletion etc/COMMIT

This file was deleted.

Loading