-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add preferences to enable/disable the JITs #10325
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
Conversation
Heads up! This PR modifies the following files:
|
We should start documenting these preferences somewhere. |
Could you add these to Also,
|
☔ The latest upstream changes (presumably #10336) made this pull request unmergeable. Please resolve the merge conflicts. |
unsafe { | ||
let rt_opts = RuntimeOptionsRef(runtime.rt()); | ||
is_baseline_enabled.map(|val| (*rt_opts).set_baseline_(val)); | ||
is_ion_enabled.map(|val| (*rt_opts).set_ion_(val)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed this before: Could you change this to use if let
instead of .map()
? This is purely a style preference; we find it more readable than map
in cases where the return value isn't used.
r=mbrubeck with that change
When creating a runtime (script.rs), we check prefs and then enable or disable the JITs (Baseline and Ion).
@bors-servo r+ |
1 similar comment
@bors-servo r+ |
📌 Commit 3ad7119 has been approved by |
1 similar comment
📌 Commit 3ad7119 has been approved by |
@bors-servo r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 3ad7119 has been approved by |
@bors-servo r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 3ad7119 has been approved by |
⌛ Testing commit 3ad7119 with merge 60e5755... |
Add preferences to enable/disable the JITs When creating a runtime (script.rs), we check prefs and then enable or disable the JITs (Baseline and Ion) accordingly. Closes #10278. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10325) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
⚡ Previous build results for android, arm32, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor are reusable. Rebuilding only linux-rel... |
💔 Test failed - linux-rel |
⌛ Testing commit 3ad7119 with merge 863c905... |
Add preferences to enable/disable the JITs When creating a runtime (script.rs), we check prefs and then enable or disable the JITs (Baseline and Ion) accordingly. Closes #10278. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10325) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
When creating a runtime (script.rs), we check prefs and then enable or
disable the JITs (Baseline and Ion) accordingly.
Closes #10278.
This change is