Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd preferences to enable/disable the JITs #10325
Conversation
highfive
commented
Apr 1, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 1, 2016
|
We should start documenting these preferences somewhere. |
|
Could you add these to Also,
|
|
|
| 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)); |
This comment has been minimized.
This comment has been minimized.
mbrubeck
Apr 4, 2016
Contributor
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+ |
|
|
1 similar comment
|
|
|
@bors-servo r+ |
|
|
|
|
@bors-servo r+ |
|
|
|
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 -->
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo retry |
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 -->
|
|
stjepang commentedApr 1, 2016
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