Nicholas Nethercote
d863537a18
Bug 880041 (part 2) - Use JSObject::{is,as} for {Normal,Strict,}ArgumentsObjects. r=luke.
...
--HG--
extra : rebase_source : 1648dd8eae1d1fdcc28644b9865960560ba301f8
2013-06-16 17:06:04 -07:00
Jason Orendorff
5bf50ecb90
Bug 880041 (part 1) - Introduce JSObject::{is,as} template functions, and use them for ModuleObject. r=nnethercote.
...
--HG--
extra : rebase_source : 46a475d54d29fd8a20ca3f201368b350b6d69008
2013-06-16 16:47:30 -07:00
Nicholas Nethercote
faefca9900
Bug 881579 - Use the canonical #ifndef wrapper form in SpiderMonkey headers so that GCC and clang can avoid including them more than once per compilation unit. r=benjamin.
...
--HG--
extra : rebase_source : f9d2b33defe07837da4828a57c66fe0ea6772bae
2013-06-16 16:11:24 -07:00
Nicholas Nethercote
480f54789c
Bug 883691 - Fix some simple clang warnings in SpiderMonkey. r=bhackett.
...
--HG--
extra : rebase_source : 168fe0710a42ebf3f90c14ecb12de32305987586
2013-06-16 18:12:35 -07:00
Douglas Crosher
058d956158
Bug 883106 - IonMonkey: avoid emitting zero length perf Jit map entries, r=nmatsakis
2013-06-14 21:03:19 +10:00
Douglas Crosher
6779b4dd6c
Bug 883108 - Asm.js: re-enable Ion Spew, r=nmatsakis
2013-06-14 21:16:55 +10:00
Brian Hackett
4f09bec94f
Bug 883562 - Check for lazy functions when bailing out from Ion to Baseline.
2013-06-16 10:37:56 -06:00
Brian Hackett
b74154f089
Bug 883630 - Watch for lazy functions when iterating inline Ion frames, clean up methods for accessing function scripts.
2013-06-16 10:24:45 -06:00
Brian Hackett
51a8afe54e
Bug 883623 - Check free variables within eval'ed code before restarting processing of top level statements in the eval.
2013-06-16 07:12:20 -06:00
Ryan VanderMeulen
d4115d34f7
Merge inbound and m-c.
2013-06-15 21:34:21 -04:00
Ryan VanderMeulen
f1da312197
Bug 809306 - Fix Win64 bustage.
2013-06-14 22:23:21 -04:00
Jason Orendorff
178d038146
Bug 881056 - Remove unused hasFunctionStmt parameter from some Parser methods. r=bhackett.
2013-06-14 16:30:40 -05:00
Jason Orendorff
5efef28172
Bug 872735, part 5 - Remove newNullary from the ParseHandler protocol. It is only used for array holes; replace it with a newElision method. Add PNK_ELISION to distinguish elisions from sequence expressions (which use PNK_COMMA). r=Waldo.
2013-06-14 16:30:40 -05:00
Jason Orendorff
82f134f121
Bug 872735, part 4 - Remove setBinaryRHS from the ParseHandler protocol. It was only used in parsing switch statements. It is replaced by a newCaseOrDefault method. r=Waldo.
2013-06-14 16:30:40 -05:00
Jason Orendorff
a41b625c13
Bug 872735, part 3 - Add PNK_LABEL for labeled statement nodes. Remove ForgetUse. r=Waldo.
2013-06-14 16:30:40 -05:00
Jason Orendorff
c5451736bd
Bug 872735, part 2a - Rename ParseNode::noteLValue -> markAsAssigned and add an assertion about pn_op, as requested in review. rs=Waldo.
2013-06-14 16:30:39 -05:00
Jason Orendorff
478bc9a0c5
Bug 872735, part 2 - Remove noteLValue from the handler protocol. The main point of this change is to remove the noteLValue method from SyntaxParseHandler, because who knows what that is supposed to mean (anyway it is never called). r=Waldo.
2013-06-14 16:30:39 -05:00
Jason Orendorff
ab3900fa43
Bug 872735, part 1 - Remove isEmptySemicolon from the ParseHandler protocol. It was only used for a warning about "if (foo);". r=Waldo.
2013-06-14 16:30:39 -05:00
Nicholas Nethercote
b49329417f
Bug 880565 (part 2) - Remove unnecessary #includes in jsobjinlines.h. r=benjamin.
...
--HG--
extra : rebase_source : 0a447cc5ed0f06ce8f01fdce799660f98b2ff780
2013-06-06 17:48:12 -07:00
Nicholas Nethercote
1e829260c6
Bug 880565 (part 1) - Move isFunction() et al from jsobjinlines.h to jsobj.h and minimize the number of files that #include jsobjinlines.h. r=benjamin.
...
--HG--
extra : rebase_source : f0d6b1b5825e115b33f2d14c0a6ed9c7ee4ef1ca
2013-06-05 19:07:43 -07:00
Vladimir Vukicevic
3674b7925e
b=882906; remove EXTRA_DSO_LIBS; r=ted
2013-06-13 22:58:22 -04:00
Tom Schuster
84f47d7af7
Bug 867771: Make Debugger.Object.prototype.getClass switch compartments correctly. r=jorendorff
2013-06-14 11:59:27 -07:00
Marty Rosenberg
d52c78d190
bug 882486: The truncate instruction should saturate to the full range of integers on receiving an out of bounds input (r=h4writer)
2013-06-14 14:25:17 -04:00
Marty Rosenberg
7a8ea24629
bug 871290: If there someone takes a reference into the instruction stream, then a pool is placed, make sure we step over this pool when trying to patch code. (r=jbramley)
2013-06-14 14:25:16 -04:00
Terrence Cole
a0a32f7aa7
Bug 883234 - Fix GGC oranges caused by lazy parsing; r=bhackett
...
Lazy parsing allows a new function clone site to flow into scripts. This site
needs to create its functions tenured.
--HG--
extra : rebase_source : fecc7ff5de3994b0fc8eda01c13b8cd9f00d1d52
2013-06-14 11:09:56 -07:00
Trevor Saunders
4f07f79b3b
bug 809306 - fix a bunch of static initializers caused by ion monkey's assembler headers r=dvander
2013-06-07 15:49:03 -04:00
Luke Wagner
83ebbc6a68
Bug 881882 - OdinMonkey: take the percentage back out (it's wrong and misleading with parallel compilation) (r=me)
...
--HG--
extra : rebase_source : 1bec8d8901fbaeb7929b1ca390cfeeae39ef1b0a
2013-06-14 10:09:18 -07:00
Peter Van der Beken
1f3e027007
Bug 851465 - Remove slim wrappers - rename WRAPPER_MULTISLOT. r=bholley.
2013-06-13 16:55:40 +02:00
Brian Hackett
2d265fae5c
Bug 883524 - Don't assume a non-lazy script when analyzing a 'new' script's properties.
2013-06-15 16:00:04 -06:00
Brian Hackett
231ee3c234
Bug 883544 - Watch for orphaned lazy scripts when delazifying for debug mode.
2013-06-15 15:57:41 -06:00
Dan Gohman
88373c10ca
Bug 881412 - Add a pass to unsplit critical edges after all other optimization is done. r=bhackett
2013-06-15 11:42:13 -07:00
Hannes Verschore
92908d5e06
Bug 882565 - IonMonkey: Only skip resumepoints during truncation when no uses where removed, r=jandem
2013-06-15 17:05:02 +02:00
Brian Hackett
369796db84
Bug 883439 - Lazily parse scripts defined within catch blocks, r=luke.
2013-06-15 07:54:22 -06:00
Jan de Mooij
f0b2d2a4f1
Bug 874974. r=bhackett
2013-06-15 14:42:36 +02:00
Jesse Ruderman
578bbf6b5e
Bug 882877 - test eval('arguments'), not the no-op eval(arguments). r=jorendorff
2013-06-15 01:06:26 -07:00
Phil Ringnalda
2a312ab4db
Back out 02fad60002a9 (bug 811404) for PGO bustage
...
CLOSED TREE
2013-06-14 21:35:27 -07:00
Nils Maier
1175b5e33b
Bug 846019 - Part 2: Prefix memory reports with add-on ids. r=njn
2013-06-14 22:48:28 -04:00
Dan Minor (dminor@mozilla.com)
e754b14910
Bug 811404 - Include C++ unit tests and harness in test package. r=ted
2013-06-14 13:07:34 -04:00
Peter Van der Beken
1badbbcf0f
Bug 851465 - Remove slim wrappers - remove slim wrapper macros and rename WN macros. r=bholley.
2013-04-19 21:58:30 +02:00
Peter Van der Beken
935fd87584
Bug 851465 - Remove slim wrappers - whitespace changes. r=bholley.
2013-04-19 21:58:26 +02:00
Peter Van der Beken
30e26e1ff9
Bug 851465 - Remove slim wrappers - remove slim wrapper proto code and logging code. r=bholley.
2013-04-19 21:58:26 +02:00
Peter Van der Beken
88cdaa8f8b
Bug 851465 - Remove slim wrappers - remove various slim wrapper code and checks. r=bholley.
2013-04-19 21:57:18 +02:00
Peter Van der Beken
76ae99ee96
Bug 851465 - Remove slim wrappers - stop morphing slim wrappers. r=bholley.
2013-04-19 21:57:15 +02:00
Peter Van der Beken
344fe9600e
Bug 851465 - Remove slim wrappers - stop constructing slim wrappers. r=bholley.
2013-03-25 11:36:24 +01:00
Kannan Vijayan
56658355f8
Bug 882925 - Fix ICUnaryArith_Double stub kind. r=h4writer
2013-06-14 10:39:10 -04:00
Brian Hackett
7003f97655
Bug 678037 - Enable lazy JS parsing and fix various bugs, r=waldo,evilpie,nobody.
2013-06-14 05:58:28 -06:00
Nicholas D. Matsakis
15fec90180
Bug 880208 - Add UnsafeGet and UnsafeGetImmutable intrinsics r=djvj
2013-06-06 11:01:15 -04:00
Ed Morley
57dc5dad1a
Merge mozilla-central and inbound
2013-06-14 09:58:22 +01:00
Ed Morley
8360224b21
Merge latest green birch changeset and mozilla-central
2013-06-14 09:55:54 +01:00
Jan de Mooij
d0902016d3
Bug 882111 part 1 - Some js::Interpret cleanup. r=luke
2013-06-14 09:46:28 +02:00
Edgar Chen
a5c1747e84
Bug 860585 - Part 1: Move cardLock API from mozMobileConnection to mozIccManager (IDL). r=allstars.chh. sr=sicking
...
--HG--
rename : dom/icc/interfaces/nsIDOMICCCardLockErrorEvent.idl => dom/icc/interfaces/nsIDOMIccCardLockErrorEvent.idl
2013-04-11 11:19:36 +08:00
Jan de Mooij
ac520e4c8c
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
87ad0fff8c
Bug 872352 - Simplify edges/liquid-resize benchmarks rs=tests
2013-06-12 22:17:30 -04:00
Landry Breuil
33ab75941e
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
a3760474ad
Bug 882037 - Fix incorrectly escaped %, and use semicolons after comma-separated lists. r=luke
2013-06-12 22:24:06 -07:00
Boris Zbarsky
5544291d84
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
978a2c6eb2
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
3be0346856
Bug 880886 - Always allocate AsmJS's JSFunction in tenured; r=bhackett
...
--HG--
extra : rebase_source : 756c4326cedc0dfda0d1f83573fe2c277ff38073
2013-06-11 10:53:25 -07:00
Terrence Cole
379d9fe216
Bug 880816 - Mark IonCode embedded pointers during MinorGC if they may be Nursery things; r=bhackett
...
--HG--
extra : rebase_source : 2c2e6320671e38fde041fcb350730e6bd7f86f8e
2013-06-10 11:16:57 -07:00
Terrence Cole
e4d5a7f10c
Bug 880816 - Allow the store buffer to store and mark whole IonCodes; r=billm
...
--HG--
extra : rebase_source : 91f13fe33baecd74051126136060977e209bda22
2013-06-13 10:34:40 -07:00
Terrence Cole
bdd1d8e4dd
No Bug - Fix an out-of-date comment in Ion about JM compilation; r=bhackett
...
--HG--
extra : rebase_source : 62d580d82808312c12444cb2c9163b1b569bd945
2013-06-13 15:14:59 -07:00
Terrence Cole
8d80f3ba42
No Bug - Assert that our Rooting ABI is correct; r=sfink
...
--HG--
extra : rebase_source : 3247d6a22f73d278ae4e6904dff28a1b727e5169
2013-06-13 15:14:44 -07:00
Trevor Saunders
0b5b299fba
bug 877937 - placate clang when building the jseng as c++11 r=waldo
2013-06-14 02:50:53 -04:00
Trevor Saunders
0ca931dfde
bug 877937 - make js embedders build as c++11 when we do r=ted f=waldo
2013-06-05 18:55:17 -04:00
Trevor Saunders
01cd094f3b
bug 877937 - build the js engine in c++11 mode when we do that for the rest of the tree r=ted
2013-05-30 21:21:18 -04:00
Benjamin Bouvier
bdc0b78b4e
Bug 882012: Provide Use to right hand side in CheckStoreArray; r=luke
2013-06-12 15:47:26 -07:00
Luke Wagner
5084c0c45c
Bug 881882 - OdinMonkey: report compile time and slow functions in asm.js success message (r=sstangl)
...
--HG--
extra : rebase_source : b72090feaf9e250e5085dcb8731edf4a1ff0daec
2013-06-12 16:29:47 -07:00
Luke Wagner
a89035aa2b
Bug 881882 - rm JS_ASMJS (r=sstangl)
...
--HG--
extra : rebase_source : 9b848e6206b471fef6e57432697d6c28b68e80c2
2013-06-12 16:29:09 -07:00
Ryan VanderMeulen
3446362831
Backed out 13 changesets (bug 880917) for Android and B2G test bustage on a CLOSED TREE.
...
Backed out changeset 71c1ce2cb0a4 (bug 880917)
Backed out changeset cd240e19560f (bug 880917)
Backed out changeset 93509a0001b5 (bug 880917)
Backed out changeset fdbba20e4647 (bug 880917)
Backed out changeset d82060172367 (bug 880917)
Backed out changeset 709f0b699489 (bug 880917)
Backed out changeset 421bdbccfa7c (bug 880917)
Backed out changeset 962c656c7452 (bug 880917)
Backed out changeset 888a5690ccdf (bug 880917)
Backed out changeset 57228f5fcd87 (bug 880917)
Backed out changeset ce8c3e14c234 (bug 880917)
Backed out changeset 08fe7b777450 (bug 880917)
Backed out changeset 5192a9233d83 (bug 880917)
2013-06-13 15:19:50 -04:00
Benjamin Bouvier
072f76937e
Bug 878501: Forbid variable declarations without var keyword in asm.js; r=luke
2013-06-13 11:54:25 -07:00
Benjamin Bouvier
521704ec4f
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
3c855000e7
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
c8aa24b380
Bug 875910 - Trim trailing whitespace. r=sstangl
2013-06-13 10:23:30 -07:00
Dan Gohman
0c5a9b7672
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
a41bce9ab3
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
d1c2bda3c5
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
7340315efc
Bug 880917 - Remove JS_SetVersion and version override machinery. r=luke
...
\o/
2013-06-13 10:09:27 -07:00
Bobby Holley
929975dd82
Bug 880917 - Remove js_RevertVersion and associated shell functionality. r=luke
2013-06-13 10:09:27 -07:00
Bobby Holley
d1d742fc22
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
6c0c144a32
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
038cdefdeb
Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke
2013-06-13 10:09:26 -07:00
Bobby Holley
880637c2cd
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
6474d26859
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
d200a7e76d
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
3b2745a4be
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
f0bb406fe1
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
Hannes Verschore
5574add06d
Bug 881470. r=jandem
2013-06-14 17:26:28 -07:00
Gary Kwong
3884ad4f22
Backout rev 18c1fd169792 for causing issues with the fuzzers. r=luke in-person
2013-06-14 17:00:49 -07:00
Terrence Cole
6df9faf3e6
Bug 883381 - SpiderMonkey does not yet support C++11; r=Waldo
...
--HG--
extra : rebase_source : 009192000c3e9f6229c53694aab23e508e661f52
2013-06-14 14:24:10 -07:00
Benoit Girard
7853228760
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
afa9f0d88d
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
1d07f5967d
Back out 3dbc486831a4 (bug 882012) for jit-test failures on a CLOSED TREE
2013-06-12 17:02:04 -07:00
Benjamin Bouvier
3fc7e41d32
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
6d92a919d6
Bug 496923 - Import the ch07 tests from test262. r=generating-script-was-reviewed
2013-06-11 11:38:41 -07:00
Jeff Walden
08d5de4c9a
Bug 496923 - Update the test262 import script to include ch07 tests. r=terrence
2013-06-11 11:38:23 -07:00
Jeff Walden
770ebe2b2a
Bug 496923 - Import ch12 tests from test262. r=generating-script-was-reviewed
2013-06-10 17:19:01 -07:00
Jeff Walden
6054ced890
Bug 496923 - Update the test262 import script to include ch12 tests. r=terrence
2013-06-10 17:18:28 -07:00
Bobby Holley
8b5e851145
Bug 880697 - Push in a few other suspicious places. r=gabor
2013-06-12 14:17:56 -07:00
Bobby Holley
c3249a0a24
Bug 880697 - Remove dumbContext. r=gabor
...
Whew.
2013-06-12 14:17:56 -07:00
Bobby Holley
1bac0d1e42
Bug 880697 - Remove JSD_GetDefaultJSContext and fix callers. r=gabor
2013-06-12 14:17:55 -07:00