Commit Graph

19582 Commits

Author SHA1 Message Date
Jeff Walden
ccfc129f21 Bug 771743 - Remove generator_op and have the methods that call it do their work manually. r=luke 2012-07-06 15:35:59 -07:00
Jeff Walden
40fb929704 Bug 771744 - Remove num_toStringHelper in favor of including its functionality in callers (most of which don't even need all its functionality!). r=luke 2012-07-06 17:45:14 -07:00
Jeff Walden
e0e03fb3c3 Bug 771744 - Move declarations from the start of num_toLocaleString throughout the method, for better readability. r=luke 2012-07-06 17:30:06 -07:00
Jeff Walden
cf23fd3d30 Bug 771744 - Remove num_to, and fold its functionality into its callers, for greater clarity and readability, and to move method-guarding code to the start of each user method. r=luke 2012-07-06 17:21:18 -07:00
Jeff Walden
fbba5de22d Bug 771946 - Convert most of the internal Date functions to work in terms of doubles, and add a ton of assertions to verify proper time clipping, integerization, etc. r=luke 2012-07-09 14:28:20 -07:00
Cameron Kaiser
48aa5533c8 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-10 18:31:04 -04:00
Neil Rashbrook
e43aed79cb Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 22:01:08 +01:00
Ehsan Akhgari
80a12e96e3 Backout changeset 3a7ece100089 (bug 770182) because of make check failures 2012-07-10 15:41:43 -04:00
Neil Rashbrook
0093dbe1f3 Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 19:51:53 +01:00
Takanori MATSUURA
ee9aff8a33 Bug 772507 - Add vpx/vpx_encoder.h and vpx/vp8cx.h to system-headers files. r=bsmedberg 2012-07-10 10:51:18 -07:00
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