Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust 20140224b #58

Merged
merged 3 commits into from Mar 18, 2014
Merged

Rust 20140224b #58

merged 3 commits into from Mar 18, 2014

Conversation

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Mar 18, 2014

js.rc Outdated
@@ -126,10 +126,10 @@ pub unsafe fn JS_SET_RVAL(_cx: *JSContext, vp: *JSVal, v: JSVal) {
#[inline(alwyas)]
pub unsafe fn JS_THIS_OBJECT(cx: *JSContext, vp: *mut JSVal) -> *JSObject {
let r =
if (*ptr::offset(&*vp, 1)).is_primitive() {
if (*(&*vp.offset(1))).is_primitive() {

This comment has been minimized.

@Ms2ger

Ms2ger Mar 18, 2014

Collaborator

Please try with fewer &*s.

@@ -178,7 +178,8 @@ mod shadow {

#[inline(always)]
pub unsafe fn fixedSlots(&self) -> *JSVal {
(ptr::offset(ptr::to_unsafe_ptr(&self), 1)) as *JSVal
let x: *JSVal = cast::transmute(&self);
(x.offset(1)) as *JSVal

This comment has been minimized.

@Ms2ger

Ms2ger Mar 18, 2014

Collaborator

I'm not at all convinced this is correct, but I'm removing it in #57, so it's fine.

@larsbergstrom
Copy link
Contributor Author

larsbergstrom commented Mar 18, 2014

Comment about removing the &* addressed, tested, and squashed into the upgrade.

r? @Ms2ger

@Ms2ger
Copy link
Collaborator

Ms2ger commented Mar 18, 2014

r+

Ms2ger added a commit that referenced this pull request Mar 18, 2014
@Ms2ger Ms2ger merged commit c45a26f into servo:master Mar 18, 2014
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
QuartzSupport and header changes for OS X.
tschneidereit pushed a commit to tschneidereit/rust-mozjs that referenced this pull request Aug 26, 2017
Move to travis for homu.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/58)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.