Skip to content

Support the updated spidermonkey bindings - #7727

Merged
bors-servo merged 2 commits into
servo:masterfrom
michaelwu:update-bindings
Oct 14, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
michaelwu:update-bindings

Conversation

@michaelwu

Copy link
Copy Markdown
Contributor

Still need to finish the rust-mozjs update and make cargo use it, but it's close enough that I don't expect much to change on the servo side.

Some changes here

  • bools are properly translated now
  • char16_t is handled as u16 now
  • JS_GlobalObjectTraceHook isn't mangled now
  • JSJitInfo has been adjusted
  • A const fn is used to generate bitfields in JSJitInfo
  • Manually generating handles now requires calling an unsafe function. It's not actually required, but it's too much of a hassle to generate them manually now due to bindgen++ adding base classes now.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 24, 2015
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@Manishearth

Copy link
Copy Markdown
Member

Reviewed 17 of 17 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.


components/script/dom/bindings/codegen/CodegenRust.py, line 5623 [r1] (raw file):
if !ok ?


components/script/dom/bindings/utils.rs, line 646 [r1] (raw file):
Why not 6?


Comments from the review on Reviewable.io

@michaelwu

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.


components/script/dom/bindings/codegen/CodegenRust.py, line 5623 [r1] (raw file):
Oh, good catch. I was looking for that kind of mistake too..


components/script/dom/bindings/utils.rs, line 646 [r1] (raw file):
This is the latest you can specify. The JSVERSION_ECMA_6 enum doesn't exist yet. Right now, JSVERSION_LATEST == JSVERSION_ECMA_5, but rust won't let us define enum variants with identical values. I think I kept JSVERSION_LATEST last time, but I'm keeping JSVERSION_ECMA_5 this time. (IIRC because it's easier to do)


Comments from the review on Reviewable.io

@Manishearth

Copy link
Copy Markdown
Member

Reviewed 1 of 1 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@Manishearth

Copy link
Copy Markdown
Member

r+ from me, unless @Ms2ger wants to have a look first.

@Ms2ger

Ms2ger commented Sep 25, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r=Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 9da167e has been approved by Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 25, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9da167e with merge ecfc0d5...

bors-servo pushed a commit that referenced this pull request Sep 25, 2015
Support the updated spidermonkey bindings

Still need to finish the rust-mozjs update and make cargo use it, but it's close enough that I don't expect much to change on the servo side.

Some changes here
- bools are properly translated now
- char16_t is handled as u16 now
- JS_GlobalObjectTraceHook isn't mangled now
- JSJitInfo has been adjusted
- A const fn is used to generate bitfields in JSJitInfo
- Manually generating handles now requires calling an unsafe function. It's not actually required, but it's too much of a hassle to generate them manually now due to bindgen++ adding base classes now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7727)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 25, 2015
@Ms2ger

Ms2ger commented Sep 25, 2015

Copy link
Copy Markdown
Contributor

Oh, duh.

@michaelwu

Copy link
Copy Markdown
Contributor Author

For reference, the bindings update is in servo/rust-mozjs#198

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7766) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 28, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Sep 29, 2015
@Manishearth

Copy link
Copy Markdown
Member

Reviewed 4 of 4 files at r3.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@Manishearth

Copy link
Copy Markdown
Member

@bors-servo r+


Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7ad5e75 has been approved by Manishearth

@highfive highfive removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Sep 30, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7973) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 12, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 12, 2015
@michaelwu

Copy link
Copy Markdown
Contributor Author

Had to mark some previously passing tests as failing, since they were only accidentally passing. A ByteString conversion check was broken before. Now those tests fail in the same way Gecko fails them.

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Oct 12, 2015
@jdm

jdm commented Oct 14, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 3129fb2 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 14, 2015
@jdm

jdm commented Oct 14, 2015

Copy link
Copy Markdown
Member

Filed web-platform-tests/wpt#2256 about the incorrect tests.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3129fb2 with merge 0a2b86a...

bors-servo pushed a commit that referenced this pull request Oct 14, 2015
Support the updated spidermonkey bindings

Still need to finish the rust-mozjs update and make cargo use it, but it's close enough that I don't expect much to change on the servo side.

Some changes here
- bools are properly translated now
- char16_t is handled as u16 now
- JS_GlobalObjectTraceHook isn't mangled now
- JSJitInfo has been adjusted
- A const fn is used to generate bitfields in JSJitInfo
- Manually generating handles now requires calling an unsafe function. It's not actually required, but it's too much of a hassle to generate them manually now due to bindgen++ adding base classes now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7727)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 14, 2015
@jdm

jdm commented Oct 14, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3129fb2 with merge b34fd5b...

bors-servo pushed a commit that referenced this pull request Oct 14, 2015
Support the updated spidermonkey bindings

Still need to finish the rust-mozjs update and make cargo use it, but it's close enough that I don't expect much to change on the servo side.

Some changes here
- bools are properly translated now
- char16_t is handled as u16 now
- JS_GlobalObjectTraceHook isn't mangled now
- JSJitInfo has been adjusted
- A const fn is used to generate bitfields in JSJitInfo
- Manually generating handles now requires calling an unsafe function. It's not actually required, but it's too much of a hassle to generate them manually now due to bindgen++ adding base classes now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7727)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 14, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 3129fb2 into servo:master Oct 14, 2015
@michaelwu
michaelwu deleted the update-bindings branch October 15, 2015 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants