Commit Graph

28704 Commits

Author SHA1 Message Date
Brian Hackett
bf289c9915 Fix --enable-root-analysis builds break, no bug. r=billm 2012-07-09 09:58:22 -06:00
Mike Hommey
1edc7b1c90 Bug 771870 - Avoid js/src/Makefile being created with wrong topsrcdir. r=khuey 2012-07-09 15:47:26 +02:00
Luke Wagner
f752478bbe Bug 771896 - rm LOAD_ATOM, LOAD_NAME, and 'atoms' from js::Interpret (r=waldo) 2012-07-08 04:31:04 -07:00
Luke Wagner
d4879a4b25 Bug 770795 - add NullPtr and associated Handle constructor (r=billm) 2012-07-08 03:00:11 -07:00
Ryan VanderMeulen
c069b0b9a3 Backout 2dd36c1cd662 (bug 771320) due to red. 2012-07-08 16:50:32 -04:00
Cameron Kaiser
af804bc998 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-08 16:33:41 -04:00
Bill McCloskey
faee4cfd8b Bug 771720 - Improve GC data collection (r=terrence) 2012-07-08 10:24:32 -07:00
Eddy Bruel
4979d6969f Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley 2012-07-08 19:04:14 +02:00
Luke Wagner
573a883e36 Remove unnecessary decls (mostly to trigger a clobbering rebuild) (no bug, r=me) 2012-07-07 21:26:14 -07:00
Alex Crichton
942c654064 Bug 770663 - Add a JS shell function to turn on a static profiling stack (r=luke)
--HG--
extra : rebase_source : 7e7ad51d73d5a517ef6bb9d62255e673944b4330
2012-07-05 10:43:50 -07:00
Alex Crichton
4fb5d45af9 Bug 761261 - Add JS profiling to SPS (r=luke,ehsan)
--HG--
extra : rebase_source : 328a82697aa9a9f63d18c7a30a813f436e163922
2012-06-20 17:58:55 -07:00
Jeff Walden
98c18737fb Bug 771742 - Refactor the date to-UTC-string methods to not use date_format_utc. r=luke
--HG--
extra : rebase_source : 3e56e0bcf6d26aa16e56a7558f21329d9bf48cf7
2012-07-06 15:35:45 -07:00
Jeff Walden
b1883f8284 Bug 771742 - Refactor the date to-locale-string methods to do their method-guarding right at the start, and never in nested method calls. r=luke
--HG--
extra : rebase_source : 736038a0511730eea9cf8c87c720ea1d5e10bd8c
2012-07-06 15:26:11 -07:00
Jeff Walden
7ab11386e1 Bug 771742 - Reimplement the Date.prototype.set<date component> functions in terms of their spec steps, and remove the hard-to-understand date_makeDate. r=luke
--HG--
extra : rebase_source : 84ced3e65ab44f2e0440c8e24bb9b70d12259940
2012-07-06 13:53:11 -07:00
Jeff Walden
3761a269d7 Bug 771742 - Reimplement the Date.prototype.set<unit of time> functions in terms of their spec steps, and remove the hard-to-understand date_makeTime. r=luke
--HG--
extra : rebase_source : cf070e258834853ebe24ec9cf0027de1d194a62c
2012-07-06 13:53:10 -07:00
Jeff Walden
ec2df69334 Bug 771742 - Reorganize all the date/time spec algorithms and constants to be in spec order (when possible), have proper types, be methods rather than macros, and so on. This will make it easier to refactor some of the Date method implementations to read more like the spec algorithms. r=luke
--HG--
extra : rebase_source : 66fb1c02124713ffa3fb66afde15dc075f309744
2012-07-06 13:52:53 -07:00
Jason Orendorff
0fa5aa4bc3 Bug 768313 - Crash with newGlobal, newContext, --dump-bytecode, happens because jaeger inlines the non-pccount script into the pccount script, r=bhackett 2012-07-07 16:06:09 -07:00
Rafael Ávila de Espíndola
621da71044 Bug 771683 - Mark some functions MOZ_ALWAYS_INILINE. r=bzbarsky.
When compiling with gcc 4.2 these functions get inlined, but then
again, gcc 4.2 inlines almost anything.

With clang, newer versions of gcc and msvc marking these functions
with MOZ_ALWAYS_INLINE is a win. I assume part of the perf win
gcc 4.5 and msvc get with pgo is from noticing these are hot
and inlining them.

Without PGO it is hard for the compiler to know that this is a
win. With clang this does increase the codesize by about 6%.

The wins from inlining are
* Stack variables (rv in particular) which have their address taken
and are passed as outparams to these functions can go in registers.
* We find that nothing set mCcxToDestroy and ~XPCLazyCallContext
(which is already inlined) can be simplified.
2012-07-06 21:18:17 -04:00
Luke Wagner
568141cba6 Bug 770407 - Remove overzealous assert in CrossCompartmentWrapper::nativeCall (r=waldo)
--HG--
extra : rebase_source : 3ba26a72d57b6af9854814a7ccca5c66dad2a597
2012-07-03 18:51:02 -07:00
Jason Orendorff
6edfe17c80 Bug 770850 - Reimplement DefnOrHeader as DefinitionList. r=njn. 2012-07-06 16:33:58 -05:00
Jason Orendorff
2e04a24519 Bug 770849 - Move StmtInfoBCE to BytecodeEmitter.cpp. r=njn. 2012-07-06 16:32:57 -05:00
Jason Orendorff
fcfbcb240c Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 4: move isFunctionBodyBlock to StmtInfoTC. r=njn. 2012-07-06 16:32:04 -05:00
Jason Orendorff
68c8b7d6aa Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 3: GOSUBS and friends. r=njn. 2012-07-06 16:31:33 -05:00
Jason Orendorff
a941409da7 Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 2: StmtInfoBase::flags. r=njn. 2012-07-06 16:31:10 -05:00
Jason Orendorff
117136f8df Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 1: STMT_IS_TRYING and friends. r=njn. 2012-07-06 16:30:39 -05:00
Kyle Huey
13d799f93d Bug 765936. r=bent,peterv 2012-07-06 10:28:51 -07:00
Jason Orendorff
ee7a247f5a Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 2: JSBool to bool. r=ejpbruel. 2012-07-03 12:37:19 -05:00
Jason Orendorff
a1108a7d9f Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 1: true/false literals. r=ejpbruel. 2012-07-03 12:37:00 -05:00
Brian Hackett
07de48dd72 Check the types of values newly known as doubles at loop heads when entering from the interpreter, bug 769985. r=dvander 2012-07-06 06:54:32 -06:00
Nicholas Nethercote
d316e73e7c Bug 687724 (part 4) - Re-indent JSMemoryMultiReporter's methods. r=bholley.
--HG--
extra : rebase_source : deba800edfc3f55a9016d29acfd91d07a56e2e62
2012-07-05 21:16:11 -07:00
Nicholas Nethercote
12f9b52d1e Bug 687724 (part 3) - Report JS memory consumption for compartments that are associated with |window| objects under "window-objects". r=bholley,jlebar,luke.
--HG--
extra : rebase_source : 20329a698154ef61cea74247d3dccc9f01899829
2012-07-05 21:12:37 -07:00
Nicholas Nethercote
d4b26e602c Bug 687724 (part 2) - Make JSCompartment::global() fallible. r=luke.
--HG--
extra : rebase_source : 68a5558772d643ab9f3b32b60a89fdbaf9b5e6ad
2012-07-03 17:25:15 -07:00
Nicholas Nethercote
c8f8010d7f Bug 687724 (part 1) - Convert JSCompartment::gcRunning to gcState. r=wmccloskey.
--HG--
extra : rebase_source : 5ba4e3b170ffd98495f31dd04a6be46ad33d497b
2012-07-03 17:24:03 -07:00
Siddharth Agarwal
7ad6524e65 Bug 600522 - Sunspider trace-test 'check-date-format-tofte.js' fails on computers not set to Pacific time. r=dmandelin 2012-07-06 10:38:16 +05:30
Nicholas Nethercote
626a277dd3 Bug 770092 (part 4) - Move JSFunction initialization code out of JSScript::fullyInitFromEmitter().
--HG--
extra : rebase_source : ef54cd18e6bc28947ac49d4a11e6590ee697ffd6
2012-07-05 19:35:43 -07:00
Nicholas Nethercote
386a952015 Bug 770092 (part 3) - Move typeSetFunction() from JSScript to JSFunction.
--HG--
extra : rebase_source : 5889ba2bb349a7130440d43952a86e6cf201e677
2012-07-05 19:23:53 -07:00
Nicholas Nethercote
b817e3f18d Bug 770092 (part 2) - Don't set JSScript::function_ in JSScript::fullyInitFromEmitter().
--HG--
extra : rebase_source : 83effb7eabadfcaf7efcd56341191b11e6a05069
2012-07-02 00:03:26 -07:00
Nicholas Nethercote
f73f739606 Bug 770092 (part 1) - Move the new script notification code out of JSScript::fullyInitFromEmitter().
--HG--
extra : rebase_source : 03bc8061c11874af7bbf1a9b3edf49bec5601e80
2012-07-02 00:01:54 -07:00
Luke Wagner
d5b9037e9c Bug 771242 - Disable the 'arguments' optimization for generators (r=bhackett) 2012-07-05 15:52:28 -07:00
Benjamin Peterson
a2586840c2 Bug 771281 - Remove js shell workers. r=jorendorff 2012-07-05 21:08:02 -04:00
Nicholas Nethercote
6286f2e60f No bug. Fix two compile warnings. r=luke,jwalden.
--HG--
extra : rebase_source : 9cf85eb1112ac9dcb792eeccc213b887e3c74a31
2012-07-05 17:24:35 -07:00
Bill McCloskey
b080308289 Bug 767074 - Fix bug in barrier verifier (r=bhackett) 2012-07-05 16:38:12 -07:00
Bill McCloskey
394611c7c4 Bug 771026 - Replace JSProperty with Shape (r=bhackett) 2012-07-04 19:34:06 -07:00
Bill McCloskey
4ef9c9430f Backed out changeset fe305819d2f2 (bug 771026) for orange 2012-07-04 20:22:30 -07:00
Bill McCloskey
4efa4ac7f5 Bug 771026 - Replace JSProperty with Shape (r=bhackett) 2012-07-04 19:34:06 -07:00
Bill McCloskey
acce5240bd Bug 771018 - Replace "const Shape" with "Shape" (r=luke) 2012-07-04 19:33:41 -07:00
Luke Wagner
9757e6dcdb Bug 770261 - hoist eval code into builtin/Eval.{h,cpp} (r=jorendorff)
--HG--
rename : js/src/jsobj.cpp => js/src/builtin/Eval.cpp
2012-07-03 10:24:35 -07:00
Bill McCloskey
a657dff8bb Bug 770999 - Add get() method to Handle<T> and Rooted<T> (r=bhackett) 2012-07-04 13:34:42 -07:00
Bill McCloskey
4093aff673 Bug 770759 - Add mutable handles (r=bhackett) 2012-07-04 11:12:16 -07:00
Ehsan Akhgari
094e6ec728 Merge backouts 2012-07-04 19:44:26 -04:00