Add support for setting jit options via env vars

RESOLVED FIXED in mozilla35

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mjrosenb, Assigned: mjrosenb)

Tracking

unspecified
mozilla35
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Assignee

Description

5 years ago
I've wanted this on and off, and I've heard a couple of people asking for something that provides this functionality on IRC, so here it is.
Attachment #8490951 - Flags: review?(nicolas.b.pierron)
Comment on attachment 8490951 [details] [diff] [review]
env-able_options-r0.patch

Review of attachment 8490951 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jit/JitOptions.cpp
@@ +44,5 @@
> +        fprintf(stderr, "Warning: I didn't understand %s=\"%s\"", param, str);
> +    }
> +    return dflt;
> +}
> +#define SET_DEFAULT(var, dflt) var = overrideDefault(#var, dflt)

nit:  var = overrideDefault("JIT_OPTIONS_" #var, dflt)
Attachment #8490951 - Flags: review?(nicolas.b.pierron) → review+
Assignee

Comment 2

5 years ago
landed: ad1b182f0f51 ... pasting is not working today, so my apologies if I mistyped that.
https://hg.mozilla.org/mozilla-central/rev/ad1b182f0f51
https://hg.mozilla.org/mozilla-central/rev/a98f69d91d7b
Assignee: nobody → mrosenberg
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.