Commit Graph

19622 Commits

Author SHA1 Message Date
Terrence Cole
38b9fdc044 Bug 772314 - Replace NSPR's interval timer with PRMJ_Now; r=luke
PR_IntervalTime offers no extra functionality above PRMJ_Now for our uses.
2012-07-09 18:40:27 -07:00
Ehsan Akhgari
0f67e7f526 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:44 -04:00
Ehsan Akhgari
5039c88619 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:07 -04:00
Benjamin Peterson
fbda007c11 Bug 769072: retroactively apply strict mode to defaults. r=njn 2012-07-09 23:43:06 -07:00
Benjamin Peterson
009075d299 Bug 769072: increase tokenizer lookahead to 3. r=njn 2012-07-09 23:41:59 -07:00
Benjamin Peterson
86043702c1 Bug 772012: create a CompileError class. r=njn 2012-07-09 23:41:56 -07:00
Chris Peterson
6933f899ea Bug 772210 - Fix warning: unused variable 'initFlushCount'. r=luke 2012-07-09 10:10:30 -07:00
Jim Blandy
943b321364 Bug 769754: Debugger handler functions should not corrupt the debuggee's JSContext::iterValue. r=jorendorff 2012-07-09 13:19:09 -07:00
Jason Orendorff
7bf894ced1 Back out changeset ac870e3e94f3 due to red on m-i. 2012-07-09 14:39:50 -05:00
Jason Orendorff
bb2ea5126a Back out changeset a88ce0cbdba6 due to red on m-i. 2012-07-09 14:38:49 -05:00
Jason Orendorff
390c9a2dd5 Bug 770865 - Rename TreeContext to ParseContext. r=njn.
--HG--
rename : js/src/frontend/TreeContext-inl.h => js/src/frontend/ParseContext-inl.h
rename : js/src/frontend/TreeContext.cpp => js/src/frontend/ParseContext.cpp
rename : js/src/frontend/TreeContext.h => js/src/frontend/ParseContext.h
2012-07-09 13:55:04 -05:00
Jason Orendorff
bfff7ba007 Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Brian Hackett
548b46b175 Fix --enable-root-analysis builds break, no bug. r=billm 2012-07-09 09:58:22 -06:00
Mike Hommey
4f24ca47f6 Bug 771870 - Avoid js/src/Makefile being created with wrong topsrcdir. r=khuey 2012-07-09 15:47:26 +02:00
Luke Wagner
63ab279d39 Bug 771896 - rm LOAD_ATOM, LOAD_NAME, and 'atoms' from js::Interpret (r=waldo) 2012-07-08 04:31:04 -07:00
Luke Wagner
22b7a4a825 Bug 770795 - add NullPtr and associated Handle constructor (r=billm) 2012-07-08 03:00:11 -07:00
Ryan VanderMeulen
623e378e7a Backout 2dd36c1cd662 (bug 771320) due to red. 2012-07-08 16:50:32 -04:00
Cameron Kaiser
1def53eae4 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-08 16:33:41 -04:00
Bill McCloskey
76ac85af05 Bug 771720 - Improve GC data collection (r=terrence) 2012-07-08 10:24:32 -07:00
Eddy Bruel
560a0f014c Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley 2012-07-08 19:04:14 +02:00
Luke Wagner
a7b1dd068c Remove unnecessary decls (mostly to trigger a clobbering rebuild) (no bug, r=me) 2012-07-07 21:26:14 -07:00
Alex Crichton
13a898fcad 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
cd618d4e33 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
5033396fac 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
3eac4cef53 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
8c6e1140e9 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
d68f5c5e3e 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
49aaa718a1 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
b36af0f7f2 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
74a6dda7b8 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
953c6a1d7f 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
5a4279d4f3 Bug 770850 - Reimplement DefnOrHeader as DefinitionList. r=njn. 2012-07-06 16:33:58 -05:00
Jason Orendorff
ec7dba8378 Bug 770849 - Move StmtInfoBCE to BytecodeEmitter.cpp. r=njn. 2012-07-06 16:32:57 -05:00
Jason Orendorff
7e22fd0dc8 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
cbe94c4c62 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
2926bd8d3d 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
d1b726aa3b 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
fc74c5d76f Bug 765936. r=bent,peterv 2012-07-06 10:28:51 -07:00
Jason Orendorff
5fa6604e22 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
8cfe02ab86 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
8f39f6c99d 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
3e5b5a0e50 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
c27840e9f1 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
fce2d7b5db 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
e134be45fd 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
3ff3b5be12 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
65965e2124 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
d6cc43a799 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
11e9d90176 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
a29a9cac2f 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
fa35904ecb Bug 771242 - Disable the 'arguments' optimization for generators (r=bhackett) 2012-07-05 15:52:28 -07:00
Benjamin Peterson
e497bebe54 Bug 771281 - Remove js shell workers. r=jorendorff 2012-07-05 21:08:02 -04:00
Nicholas Nethercote
e0a30f1240 No bug. Fix two compile warnings. r=luke,jwalden.
--HG--
extra : rebase_source : 9cf85eb1112ac9dcb792eeccc213b887e3c74a31
2012-07-05 17:24:35 -07:00
Bill McCloskey
23554c3fa2 Bug 767074 - Fix bug in barrier verifier (r=bhackett) 2012-07-05 16:38:12 -07:00
Bill McCloskey
b6e81abbe8 Bug 771026 - Replace JSProperty with Shape (r=bhackett) 2012-07-04 19:34:06 -07:00
Bill McCloskey
d57947baca Backed out changeset fe305819d2f2 (bug 771026) for orange 2012-07-04 20:22:30 -07:00
Bill McCloskey
ab72b4aa50 Bug 771026 - Replace JSProperty with Shape (r=bhackett) 2012-07-04 19:34:06 -07:00
Bill McCloskey
252cf2ecc5 Bug 771018 - Replace "const Shape" with "Shape" (r=luke) 2012-07-04 19:33:41 -07:00
Luke Wagner
83fa53f7f9 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
1775e92469 Bug 770999 - Add get() method to Handle<T> and Rooted<T> (r=bhackett) 2012-07-04 13:34:42 -07:00
Bill McCloskey
2100b10524 Bug 770759 - Add mutable handles (r=bhackett) 2012-07-04 11:12:16 -07:00
Ehsan Akhgari
5842de901d Merge backouts 2012-07-04 19:44:26 -04:00
Ehsan Akhgari
751b028c22 Backout changeset aec1ad4171a1 (bug 769504) because of merge conflicts with the rest of the backouts 2012-07-04 19:44:15 -04:00
Ehsan Akhgari
f051d81342 Backout changeset 8e3bc766092d (bug 725909) because of merge conflicts with the rest of the backouts 2012-07-04 19:43:42 -04:00
Ehsan Akhgari
a809593e1c Backout changeset f44eca03418c (bug 725907 part 5) because of merge conflicts with the rest of the backouts 2012-07-04 19:43:03 -04:00
Ehsan Akhgari
16ddbb65fa Backout changeset b23429ce0d81 (bug 695908) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:28:14 -04:00
Ehsan Akhgari
6310954652 Backout changeset 1e28b1f771c1 (bug 695908) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:27:50 -04:00
Ehsan Akhgari
4ea57cfaa5 Backout changeset 5f4c341d773a (bug 743107) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:27:15 -04:00
Ehsan Akhgari
79bbc5eb24 Backout changeset 3a488b71b69a (bug 725907 part 1) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:26:42 -04:00
Ehsan Akhgari
ea75e5f7af Backout changeset cb49c3730a97 (bug 725907 part 2) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:26:20 -04:00
Ehsan Akhgari
16fb5a22f8 Backout changeset 4313740f1adc (bug 725907 part 3) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:25:56 -04:00
Ehsan Akhgari
1d0cd765cd Backout changeset 24feaa8bd894 (bug 725907 part 4) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:24:50 -04:00
Ehsan Akhgari
b7c1969ac5 Backout changeset 20b0bce4c165 (bug 703537) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:24:04 -04:00
Ehsan Akhgari
6371779f12 Backout changeset 8417741974ba (bug 770261) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:23:03 -04:00
Luke Wagner
be43698db6 Bug 769987 - don't forget to ExpandInlineFrames before discarding jit code (r=bhackett) 2012-07-04 10:39:48 -07:00
Jason Orendorff
7145432f98 Bug 725909 - Make Maps and Sets iterable. r=luke.
--HG--
extra : rebase_source : dcd0afb9eb8b57ff749a4c31c756fa8f3d4e2c63
2012-07-04 10:24:25 -05:00
Jason Orendorff
d155034c67 Bug 769504 - Atomize strings when using them as hash keys in a Map or Set. r=luke.
--HG--
extra : rebase_source : ba057a23415f4bca85d5c15c555db9fd10b5146e
2012-07-04 10:24:20 -05:00
Jason Orendorff
09218fb9b5 Use // comments in MapObject.cpp. Trivial. r=luke in bug 769504.
--HG--
extra : rebase_source : eb243d44fba36c930b630d992ff5af74517e8a79
2012-07-04 10:24:12 -05:00
Jason Orendorff
0d459625e3 Bug 725907 - for-of improvements, part 5: Make ctypes arrays iterable. r=bhackett.
--HG--
extra : rebase_source : 598baa07d9cfa41255aadff979ca8319e288a05b
2012-07-04 10:24:06 -05:00
Jon Coppeard
378d445c9e Bug 770200: GC: Simplify use of GC lock r=billm 2012-07-04 12:19:23 +01:00
Jon Coppeard
00bb145d73 Bug 770121: GC: Make GC more deterministic when JS_MORE_DETERMINISTIC is defined r=billm 2012-07-04 12:17:49 +01:00
Jon Coppeard
920262360f Bug 770110: GC: gcIncrementalState is now used by non-incremental GCs r=billm 2012-07-04 12:15:18 +01:00
Bobby Holley
73a191f725 Bug 655649 - Introduce an API to recompute wrappers based on various filters. r=billm 2012-07-04 12:13:01 +02:00
Bobby Holley
4624f40980 Bug 655649 - Codify |wrappedObject(value) == key| invariant. r=billm
Now that we're not doing that awful Location thing anymore, We should assert this.
2012-07-04 12:13:01 +02:00
Bobby Holley
c9ff4f3d72 Bug 655649 - Move/Rename RemapWrappers. r=billm
Simple rename/move. Renamed some parameters, and switched from manual iteration to CompartmentsIter.
2012-07-04 12:13:01 +02:00
Bobby Holley
ac86e9959c Bug 655649 - Hoist machinery for remapping a single wrapper into a separate function. r=billm
Aside from some renaming, no functionality has been changed.
2012-07-04 12:13:01 +02:00
Luke Wagner
8811625a5b Bug 770261 - hoist eval code into builtin/Eval.{h,cpp} (r=jorendorff)
--HG--
rename : js/src/jsobj.cpp => js/src/builtin/Eval.cpp
extra : rebase_source : 021246f048f6fd78ead99867a23403d5656ed354
2012-07-03 10:24:35 -07:00
Eddy Bruel
62517a803b Bug 703537 - Rename AbstractWrapper to IndirectWrapper; r=bholley 2012-07-04 01:20:35 +02:00
Jason Orendorff
46b4fc543f Bug 725907 - for-of improvements, part 4: Add .next() method to iterator objects and make for-of call it. r=bhackett.
--HG--
extra : rebase_source : f3a2e83c7bd524e3801c25aba63c6d3802b0d73a
2012-07-03 16:34:56 -05:00
Jason Orendorff
61def7a5da Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
--HG--
extra : rebase_source : 0820d3654318f217b8836a086234736d3aba3819
2012-07-03 16:34:56 -05:00
Jason Orendorff
4516dd9ea0 Bug 725907 - for-of improvements, part 2: Make for-of loops just call .iterator() instead of using the magic iteratorObject hook with an extra flag. r=bhackett.
--HG--
extra : rebase_source : af40be5e08d42f41a33a528644c45d37fe47bc63
2012-07-03 16:34:56 -05:00
Jason Orendorff
4c97069c17 Bug 725907 - for-of improvements, part 1: minor C++ refactoring, rename Iterator to PropertyIteratorObject. r=Waldo.
--HG--
extra : rebase_source : 22a88c4169eba37b61a96dd1ff8507b82765b53e
2012-07-03 16:34:40 -05:00
Jason Orendorff
1aed24e354 Bug 743107 - Add OrderedHashTable. Change implementation of Map and Set to retain insertion order. r=luke.
--HG--
extra : rebase_source : f4f8ac16b79b9a8edf53dd496a503586b1efbf8a
2012-07-03 16:33:38 -05:00
Jason Orendorff
51cfdb676a Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 2: JSBool to bool. r=ejpbruel.
--HG--
extra : rebase_source : fb92b18c7dcb99fb5a930c91076b160953ca7b00
2012-07-03 12:37:19 -05:00
Jason Orendorff
55330ea76a Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 1: true/false literals. r=ejpbruel.
--HG--
extra : rebase_source : b02d48592af130bbc949cf175f15fba8f7b9c97f
2012-07-03 12:37:00 -05:00
Jeff Walden
45d0d2a1b3 Bug 770586 - Move CallArgs into the public API, for eventual use in JSAPI signatures. r=luke 2012-07-03 09:08:23 -07:00
Siddharth Agarwal
9f01801fec Bug 770604 - nsinstall.py should abspath during directory creation too. r=khuey 2012-07-04 00:17:21 +05:30
Luke Wagner
0e439703f6 Bug 770421 - tidy CallObject::getCalleeFunction() (r=njn) 2012-07-03 10:24:27 -07:00
Ed Morley
acf544c10f Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-03 10:10:06 +01:00