Commit Graph

26895 Commits

Author SHA1 Message Date
Benjamin Bouvier
17414be6e0 Bug 878501: Forbid variable declarations without var keyword in asm.js; r=luke 2013-06-13 11:54:25 -07:00
Benjamin Bouvier
4cab13438a Bug 882514: Don't try to enable Ion on functions with no script; r=h4writer 2013-06-13 11:47:09 -07:00
Terrence Cole
bcece3c36a Bug 882482 - Do not use the store buffer off the main thread; r=nmatsakis
--HG--
extra : rebase_source : c557b8d5c27bfc55f86cae2898fc5744fc74214f
2013-06-12 17:58:59 -07:00
Dan Gohman
4a424e1707 Bug 875910 - Trim trailing whitespace. r=sstangl 2013-06-13 10:23:30 -07:00
Dan Gohman
c44f9d9dc5 Bug 875917 - Add braces to an if which has braces on its else. r=sstangl 2013-06-13 10:23:21 -07:00
Bobby Holley
032d78be94 Bug 880917 - Remove AutoVersionAPI. r=luke
This doesn't do anything anymore. The compile options should generally carry
the right version through, with the exception of eval, which will end up using
the version of the running script anyway.
2013-06-13 10:09:28 -07:00
Bobby Holley
2017cd5761 Bug 880917 - Hoist defaultVersion into the runtime and remove it from the JSContext. r=luke 2013-06-13 10:09:27 -07:00
Bobby Holley
4487e98c37 Bug 880917 - Remove JS_SetVersion and version override machinery. r=luke
\o/
2013-06-13 10:09:27 -07:00
Bobby Holley
dc72ab031b Bug 880917 - Remove js_RevertVersion and associated shell functionality. r=luke 2013-06-13 10:09:27 -07:00
Bobby Holley
b2dea5685a Bug 880917 - Add an API to mutate the version on the compartment and use it from the shells. r=luke 2013-06-13 10:09:26 -07:00
Bobby Holley
4a9c4097a1 Bug 880917 - Remove XPConnect version munging test. r=luke
This test calls the version() shell command, and expects it to work like an
override, rather than the dumb compartment-mutator that I'm turning it into.
Let's just kill the test.
2013-06-13 10:09:26 -07:00
Bobby Holley
824c9ddd7a Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke 2013-06-13 10:09:26 -07:00
Bobby Holley
2ff95d98aa Bug 880917 - Add support for "latest" as a version to evalInSandbox, and use it for sjs files. r=luke
Sandboxes always default to JSVERSION_DEFAULT in the browser. But XPCShell sets
up a ContextCallback that does JS_SetVersion(cx, JSVERSION_LATEST) on every
context that gets created, including the ephemerial Sandbox JSContexts. Since
httpd.js runs in xpcshell and evaluates SJS in a sandbox, we've (somewhat
accidentally) supported JSVERSION_LATEST in SJS, which certain SJS files have
taken advantage of. Let's continue to support it explicitly.
2013-06-13 10:09:26 -07:00
Bobby Holley
aba517db69 Bug 880917 - Remove testVersion.cpp. r=luke
This test coverages seems to be mostly testing functionality we're removing like
overrides and version introspection. Let's just kill it.
2013-06-13 10:09:25 -07:00
Bobby Holley
bbc3e00570 Bug 880917 - Introduce an API for callers to set the version for a compartment. r=luke
This has lower precedence than 'overrides' and running script, and higher
precedence than the cx's version. We can migrate the API consumers who clearly
want something like this, which will eventually let us remove the override
mechanism.
2013-06-13 10:09:25 -07:00
Bobby Holley
670e4b4d9d Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-13 10:09:25 -07:00
Bobby Holley
38dc3cc59d Bug 880917 - Remove support for munging JS versions from JSD. r=luke
A quick grep of Firebug indicates that it doesn't use this. And even if I
missed it, doing so from a debugger with the current semantics is a feature
we can't support going forward.
2013-06-13 10:09:24 -07:00
Jan de Mooij
a2afaa46e8 Bug 881461 - Fix INITPROP/INITELEM GETTER/SETTER ops to leave values on the stack for the decompiler. r=bhackett 2013-06-13 16:00:35 +02:00
Nicholas D. Matsakis
8322355ab8 Bug 872352 - Simplify edges/liquid-resize benchmarks rs=tests 2013-06-12 22:17:30 -04:00
Landry Breuil
65a8cf4cec Bug 807492 Part 10 - Add err.h and xlocale.h to system-headers for WebRTC on BSD r=ted 2013-06-13 08:54:44 +02:00
Jesse Ruderman
fc32eb81a0 Bug 882037 - Fix incorrectly escaped %, and use semicolons after comma-separated lists. r=luke 2013-06-12 22:24:06 -07:00
Boris Zbarsky
65c0969f7c Bug 880367 part 1. Change the "enabled" callback for WebIDL constructors to take a JSContext* and the object the constructor will be defined on. r=smaug,bholley 2013-06-13 01:12:26 -04:00
Nicholas Nethercote
5c0a0c7f4f Bug 882520 - Two minor tweaks to the memory reporting paths. r=bhackett.
--HG--
extra : rebase_source : b6176cd0b0314c2216ccc79f76a34fd558876092
2013-06-12 20:14:52 -07:00
Terrence Cole
f5b104f7b9 Bug 880886 - Always allocate AsmJS's JSFunction in tenured; r=bhackett
--HG--
extra : rebase_source : 756c4326cedc0dfda0d1f83573fe2c277ff38073
2013-06-11 10:53:25 -07:00
Benoit Girard
945cb3c483 Bug 844288 - Dual link libxul.so and libxul-unit.so and replace enable-gtest by enable-test r=ted,glandium
- Remove enable GTest
- Add a general target to create gtestxul
- Update mach target
- Run GTest from make check

--HG--
rename : gfx/2d/unittest/GTestMain.cpp => gfx/tests/gtest/TestMoz2D.cpp
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
extra : rebase_source : 862c39b9145328c8e9f85ae9d1963af374af76f1
2013-03-11 14:47:40 -04:00
Terrence Cole
302cbbbed5 Bug 877473 - Expose tools to help fuzz generational GC; r=billm
--HG--
extra : rebase_source : 46dd430429e31ab380b61ef8b0019fc20a411961
2013-05-30 10:55:15 -07:00
Matt Brubeck
986a98a293 Back out 3dbc486831a4 (bug 882012) for jit-test failures on a CLOSED TREE 2013-06-12 17:02:04 -07:00
Benjamin Bouvier
5de42a56f9 Bug 882012: Provide Use to right hand side in CheckStoreArray; r=luke
--HG--
extra : rebase_source : 01caa88a90ca1b53134f051b0d686c3f183f4408
2013-06-12 15:47:26 -07:00
Jeff Walden
c5d11b987b Bug 496923 - Import the ch07 tests from test262. r=generating-script-was-reviewed 2013-06-11 11:38:41 -07:00
Jeff Walden
095ea802d0 Bug 496923 - Update the test262 import script to include ch07 tests. r=terrence 2013-06-11 11:38:23 -07:00
Jeff Walden
91147fd3a6 Bug 496923 - Import ch12 tests from test262. r=generating-script-was-reviewed 2013-06-10 17:19:01 -07:00
Jeff Walden
b606d62eb7 Bug 496923 - Update the test262 import script to include ch12 tests. r=terrence 2013-06-10 17:18:28 -07:00
Bobby Holley
5d8b9c031d Bug 880697 - Push in a few other suspicious places. r=gabor 2013-06-12 14:17:56 -07:00
Bobby Holley
dfe5a1b7ea Bug 880697 - Remove dumbContext. r=gabor
Whew.
2013-06-12 14:17:56 -07:00
Bobby Holley
ebb40605e8 Bug 880697 - Remove JSD_GetDefaultJSContext and fix callers. r=gabor 2013-06-12 14:17:55 -07:00
Bobby Holley
08897ecc69 Bug 880697 - Replace usage of dumbContext with AutoSafeJSContext. r=gabor
dumbContext ends up with jsdc->glob as its default global, so we have to be
very careful to audit for any places where the code might be assuming that
its cx is in the compartment of jsdc->glob. Luckily, the code already seems
pretty explicit about its compartments.
2013-06-12 14:17:55 -07:00
Bobby Holley
4f75c3875f Bug 880697 - Root directly with a runtime in jsd_DestroyScriptHookProc. r=gabor 2013-06-12 14:17:55 -07:00
Bobby Holley
7f1f2366e0 Bug 880697 - Make JS_ClearScriptTraps take a runtime directly. r=gabor
This obviates the need for a context at the JSD callsite.
2013-06-12 14:17:55 -07:00
Bobby Holley
f814be5d18 Bug 880697 - Stop using clunky C API in JSD and start using RAII classes. r=gabor 2013-06-12 14:17:54 -07:00
Bobby Holley
ec5b064aee Bug 880697 - Add an RAII class to JSD to save/restore exception state. r=gabor 2013-06-12 14:17:54 -07:00
Bill McCloskey
0a3508d15a Bug 880697 - Add JSRuntime constructor for Rooted. r=terrence 2013-06-12 14:17:54 -07:00
Bobby Holley
302ad9de7c Bug 881517 - Remove mPrototypeNoHelper machinery. r=mrbkap
The comments surrounding it don't make any sense to me, and most likely applied
to a pre-CPG world.
2013-06-12 14:10:54 -07:00
Bobby Holley
bc3880cc53 Bug 881517 - Just use Object.prototype for vanilla XPCWNs. r=mrbkap 2013-06-12 14:10:53 -07:00
Hannes Verschore
7b4bdfee1a Bug 860838: OdinMonkey: Optimize FFI calls to ionmonkey, r=luke 2013-06-12 21:58:22 +02:00
Hannes Verschore
29223a2c06 Bug 879727: IonMonkey: During UCE remove corresponding MPassArgs when removing calls, r=jandem 2013-06-12 21:46:19 +02:00
Benjamin Bouvier
a64f8c26d3 Bug 878444: in Range Analysis, give an empty range for |Infinity % x|; r=bhackett 2013-06-12 12:18:23 -07:00
Martin Husemann
f314bc5f26 Bug 871444 - Round allocation size to keep required alignment. r=sstangl 2013-06-11 12:23:24 -07:00
Jan de Mooij
d36ab43b55 Bug 881370 - Remove entry from Debugger HashMap before instead of after mutating the HashMap. r=jimb
--HG--
extra : rebase_source : e630194150bb9c81279ac006a70128234732e306
2013-06-12 20:00:07 +02:00
Terrence Cole
ebfa48afe2 Backout 6d95672c5a68 for SM(r) bustage, probably not on a CLOSED TREE.
--HG--
extra : rebase_source : 0234911b2197ebe562f95ecf172352af6cb648cf
2013-06-12 11:02:21 -07:00
Terrence Cole
d30c1fac90 Bug 879079 - Fix static rooting analysis failures from calls to defineOwnProperty; r=sfink
--HG--
extra : rebase_source : c8c491faef16ad0e1ebc4e624a54d85fd0a47029
2013-06-05 15:08:41 -07:00