Commit Graph

17260 Commits

Author SHA1 Message Date
Jeff Walden
7f55e342de Bug 701224 - Fix destructuring into an E4X qualified name, e.g. x::y. Also fix purely-expression-context evaluation of qualified names, bug 701222. r=cdleary 2011-11-09 18:39:53 -08:00
Brian Hackett
a503daec48 Example property ops need to check the class of the incoming objects, bug 700295. r=waldo 2011-11-09 19:32:30 -08:00
Brian Hackett
9452f6845c Don't treat THROW and RETRVAL as having fallthrough, bug 700127. r=dvander 2011-11-09 19:08:26 -08:00
Chris Leary
6ef1898c65 Back out 1bf4c1a6412b for failing an XP reftest.
--HG--
extra : rebase_source : 52b566a36b755a71402b5a973f309698208cc5db
2011-11-09 17:39:45 -08:00
Justin Lebar
3c1ff6be4d Bug 586010 - Send dump() output to Android device log. r=bz
--HG--
extra : rebase_source : f1712d831aaa6fbd8e1bfd6060fbb4aa951ccb74
2011-11-09 19:27:08 -05:00
Brian Hackett
75ad876da1 Empty shapes attached to type objects must have the same class as the prototype, bug 698150. 2011-11-09 13:08:23 -08:00
Brian Hackett
793e5962dd Hold reference on entry in base shape table when populating initial shape, bug 698902. 2011-11-09 12:04:56 -08:00
Brian Hackett
1133fd4090 Replace uses of GetObjectGlobal with JS_GetGlobalForObject, no bug. 2011-11-09 10:34:54 -08:00
Brian Hackett
099e038680 Fix incorrect test in HasDataProperty, bug 699166. 2011-11-09 10:25:21 -08:00
Brian Hackett
ca7d6003de PropertyCache::fullTest should work on arbitrary scope chains, bug 700792. 2011-11-09 09:59:09 -08:00
Brian Hackett
831cd84d89 Address bug 638316 and bug 694247 review comments, r=luke. 2011-11-09 09:52:59 -08:00
Brian Hackett
708b16abe9 Track whether default 'new' types need unknown properties on the prototype, bug 700501. 2011-11-08 18:34:11 -08:00
Brian Hackett
d2fe69d826 Set DELEGATE for parents of other objects, bug 700300. 2011-11-08 16:56:00 -08:00
Brian Hackett
df6e3d3a4c Allow NULL'ing out of non-NULL scopes of static block chains, bug 700799. 2011-11-08 16:14:34 -08:00
Ed Morley
fddedbce14 Merge m-c to b-s. 2011-11-08 23:18:09 +00:00
Brian Hackett
08c7936173 Address bug 693754 review comments, r=luke. 2011-11-08 13:42:27 -08:00
Brian Hackett
d41ec3161e Address bug 693479 review comments, r=luke. 2011-11-08 13:08:13 -08:00
Brian Hackett
225bd263e5 Address bug 693221 review comments, r=luke. 2011-11-08 13:03:33 -08:00
Brian Hackett
166e4ff20a Address bug 684410 review comments, r=luke. 2011-11-08 12:11:05 -08:00
Gregory Szorc
efb8dac5a2 Bug 700519 - Remove -fpascal-strings from Darwin compiler flags; r=ted 2011-11-08 12:10:22 -08:00
Christian Legnitto
6473113ad0 Bug 700688, Version bump 2011-11-08 09:12:57 -08:00
Jacek Caban
a3a1968a0b Bug 699170 - Tons of JS_* redefined warnings on mingw r=ted 2011-11-08 10:25:51 +01:00
Ed Morley
b66adf55e2 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-08 08:01:18 +00:00
Terrence Cole
65b8697281 Bug 700357 - Run GC_SHRINK more frequently; r=billm
Currently we only run this on idle when allocating memory.  There
are plans in place to also run these when clicking the Minimize
Memory button in about:memory, and when we are under memory
pressure.  This change causes GC_SHRINK to also run when doing so
will result in "lots" of pages being decommitted to the OS.
2011-11-07 13:47:14 -08:00
Ben Turner
dbd7d35169 Bug 658178 - 'Make XHR2 response/responseType work in Web Workers'. r=jst+sicking+mrbkap. 2011-11-07 17:01:29 -08:00
Bill McCloskey
8488a0f273 Bug 699298 - Fix for windows build bustage 2011-11-09 13:53:47 -08:00
Bill McCloskey
e1aa2341e0 Bug 699298 - Overhaul GC statistics gathering (r=gwagner) 2011-11-09 13:32:17 -08:00
Boris Zbarsky
098046172c Bug 699528. Make pausing/unpausing JSD try to turn off/on debug mode as needed. r=sfink
The new boolean argument to SetDebugModeWhenPossible is needed because if we allow sync-disable of debug mode we seem to crash when loading pages with Firebug active.
2011-11-09 16:11:39 -05:00
Chris Leary
a6430d4e60 Bug 700915: Diagnostic for GC helper thread crashes. (r=billm) 2011-11-09 12:24:07 -08:00
Brian Hackett
72511fd37d Fix incorrect use of obj->setDenseArrayLength, bug 699446. 2011-11-03 14:20:44 -07:00
Brian Hackett
7852449307 Fix linkage for IsScopeObject, no bug. IGNORE BAD COMMIT MESSAGES 2011-11-03 10:42:14 -07:00
Brian Hackett
15a754ed89 Fix struct/class mismatches on js::Shape. 2011-11-03 10:38:08 -07:00
Brian Hackett
fbe9152e28 Add cache for constructing new objects from the VM, bug 699446. 2011-11-03 09:57:12 -07:00
Brian Hackett
7c9c7bd9bb Remove JSObject::isNewborn, refactor object creation code, bug 684507. 2011-11-02 13:34:19 -07:00
Brian Hackett
526508bde2 Add memory reporter for base shapes, bug 699210. 2011-11-02 13:32:05 -07:00
Jeff Walden
7a507e08bb Bug 701584 - Move various offsetof uses into static offsetOf* methods. r=cdleary
--HG--
extra : rebase_source : 6d453db67d872318160eee60bed3f628c1915c69
2011-11-02 12:57:59 -07:00
Jeff Walden
b035f1b4a5 Bug 699185 - Building SpiderMonkey with clang warns up the wazoo. Disable the warning that's the primary cause of the spew, because the workarounds are gross and the issue is a purely theoretical spec deviation which no compiler implements. r=ted
--HG--
extra : rebase_source : 09469e9ca787f9dcec43cb4697034d20a61b476f
2011-11-09 01:35:05 -08:00
Chris Leary
165fce4cf0 Bug 701387: RegExpPrivateCache can disappear after lookup. (r=Waldo) 2011-11-10 21:04:04 -08:00
Chris Leary
23cd12ea44 Bug 701332: Followup fix. 2011-11-10 21:04:00 -08:00
Chris Leary
ccc7d0d4ac Bug 701332: Don't expose RegExp privates. (r=Waldo) 2011-11-10 17:30:04 -08:00
Chris Leary
3b0417b8c4 Bug 701332: Defensive refcount on string split. (r=Waldo) 2011-11-10 17:30:01 -08:00
Chris Leary
e7f1749468 Bug 700915: Back out diagnostic changeset fe41fa77e51a. 2011-11-10 17:19:18 -08:00
Michael Wu
34d5f356e4 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Bill McCloskey
3e37ae7a52 Bug 641027 - Fix warnings-as-errors bustage 2011-11-10 13:38:05 -08:00
Jim Blandy
3c343dd097 Bug 684619: Make HeapReverser itself root all nodes referred to by roots. r=bhackett
The comments for HeapReverser::roots explain.
2011-11-10 13:28:55 -08:00
Chris Leary
9f866be0ff Bug 700915: 64-bit RegExp domaeo_basics diagnostic. (r=billm) 2011-11-10 12:42:58 -08:00
Brian Hackett
a145bef354 Add type behavior info to script PC counts, bug 691788. r=sfink 2011-11-10 12:34:24 -08:00
Brian Hackett
6697a98273 Merge MC -> JM
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
2011-11-02 09:23:25 -07:00
Kyle Huey
b14e30c312 Merge m-c to b-s. 2011-10-31 13:12:45 -04:00
Hannes Verschore
66723fc789 Bug 469758 - Incorrect error message with adjacent "let" blocks. r=dmandelin 2011-12-03 17:04:36 +01:00
Reuben Morais
d04ddd51f3 Bug 704841 - Use implicit_jscontext for Components.utils getters. r=bholley 2011-12-03 15:59:01 +01:00
Brian Hackett
455b7ad5b4 Root correct array during makeDenseArraySlow, bug 698148. 2011-10-30 08:50:58 -07:00
Brian Hackett
83ca66c7ef Fix GC hazard when constructing functions, bug 698156. 2011-10-30 08:27:19 -07:00
Ed Morley
7275a8d455 Merge mozilla-central and mozilla-inbound 2011-10-30 11:52:20 +00:00
Brian Hackett
60d061e5cc Fix misuse of shape->slot(), bug 698074. 2011-10-29 22:58:12 -07:00
Brian Hackett
58a7e6059a Fix misuse of shape->slot() in debugging code, bug 690396. 2011-10-29 19:45:51 -07:00
Brian Hackett
0782bac491 Fix uses of native reserved slots in web workers, bug 697537. 2011-10-29 18:26:21 -07:00
Brian Hackett
236e81968d Sync FrameState entries based on tracker, bug 698100. r=dvander 2011-10-29 18:16:35 -07:00
Brian Hackett
27eed80a06 Propagate OOM triggered by inlineCallHelper, bug 695290. r=dvander 2011-10-29 17:40:34 -07:00
Brian Hackett
eb11b40569 Remove defined variables analysis, bug 697861. r=dvander 2011-10-29 17:30:08 -07:00
Brian Hackett
0470c56a60 Restore logic to increase fixed slot count for object types which have had slot arrays allocated, bug 693221. 2011-10-29 17:03:59 -07:00
Ms2ger
731edba0b8 Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv 2011-10-29 22:03:55 +02:00
Jonas Sicking
ac8b04fb20 Bug 687400: Kill Node.isSameNode. r=smaug 2011-10-28 19:52:27 -07:00
Luke Wagner
abe7645317 Bug 702507 - rm JSCLASS_CONSTRUCT_PROTOTYPE and JS_IsConstructing_PossiblyWithGivenThisObjectAndPonies (r=waldo) 2011-11-17 08:58:05 -08:00
Bill McCloskey
930500bdb9 Bug 699668 - Backout aa05d607c95e because of MaxHeap regression 2011-11-17 11:31:40 -08:00
Jacek Caban
1dac1965f5 Bug 706474 - Use -fno-keep-inline-dllexport in mingw builds r=khuey 2011-12-01 12:03:15 +01:00
Johnny Stenback
62a29bb3e4 Fixing bug 690952. Move window.navigator from the outer window to the inner window, and stop persisting it across same origin page navigations. r=mrbkap@gmail.com 2011-12-01 00:28:16 -08:00
Marty Rosenberg
3fbe921e5a Don't place a pool in the middle of a C call (bug 696748, r=dmandelin) 2011-11-30 17:57:30 -08:00
Marco Bonardo
b5caa28910 Backout 281583d67072 (bug 702179) for Win64 opt build failure 2011-11-30 11:12:57 +01:00
Ginn Chen
05dc4d4c9f Bug 702179 dtrace probes are not installed on Solaris with static js lib r=glandium 2011-11-30 11:23:46 +08:00
Brian Hackett
a94b1b5173 Set initial value of native reserved slots to undefined, bug 697537. 2011-10-28 08:43:04 -07:00
Brian Hackett
170513eeec Merge. 2011-10-27 14:17:19 -07:00
Brian Hackett
d740a1c97c Merge MC -> JM 2011-10-27 14:16:02 -07:00
Brian Hackett
ec00fc4831 Clean up API for creating natives with reserved slots, fix uses in CTypes and jsworkers shell, bug 697537. 2011-10-27 11:14:56 -07:00
Brian Hackett
d3a0fcb99d Don't return stale shape in methodShapeChange, bug 690732. 2011-10-27 09:22:32 -07:00
Brian Hackett
547063f0c3 Fix incorrect load for flat closure upvar slots, bug 697537. 2011-10-26 13:41:17 -07:00
Brian Hackett
0c73dcf536 Fix warnings. 2011-10-26 13:30:51 -07:00
Brian Hackett
a9c68ac54d Remove JSFunction fixed slots and unused fields, bug 697537. 2011-10-26 13:02:57 -07:00
Ted Mielczarek
1f0befd9a5 bug 697709 - shuffle around some blocks in configure so we can choose the right STLport flavor for ARMv6 Android builds. r=glandium 2011-10-26 13:59:43 -04:00
Nicholas Nethercote
ee63d07e92 Bug 697016 - Add js-total-* memory reports. r=bhackett. 2011-10-27 22:20:36 -07:00
Nicholas Nethercote
3cd57ec496 Bug 697016 - Refine per-compartment JS reporters. r=bhackett. 2011-10-27 22:19:57 -07:00
Jason Orendorff
2740af3d17 Remove unused flag TCF_NEED_MUTABLE_SCRIPT as suggested by Waldo in review. Bug 696953 comment 8. rs=Waldo over IRC.
--HG--
extra : rebase_source : 2da200e67b56453a6d15a58e8937c23c8ed8403e
2011-10-27 21:20:32 -05:00
Jason Orendorff
1486a1a05f Divorce analyzeFunctions() and friends from class js::Parser. Bug 696953, part 4 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 735796e90d053bc979060c2b988926954b90f435
2011-10-27 21:16:32 -05:00
Jason Orendorff
2a7055f71e Remove class BytecodeCompiler. Bug 696953, part 3 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 2d9b17328a656f5f5dccda11311fd5d4637a6663
2011-10-27 17:03:54 -05:00
Jason Orendorff
9df9164977 Move GlobalScope from BytecodeCompiler to BytecodeEmitter. Bug 696953, part 2 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : d07f9e50246b46d9704c3a45ae0fa368c88319be
2011-10-27 17:00:48 -05:00
Jason Orendorff
12b4bc2093 Split Parser::analyzeFunctions and friends off into their own file. Bug 696953, part 1 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 6f4a032e9d31a0cc549d501661e6c3f5c831f5a8
2011-10-27 16:59:48 -05:00
Nicholas Nethercote
dc27735198 Bug 697646 - Don't create tiny property tables. r=bhackett. 2011-10-27 17:58:44 -07:00
Jason Orendorff
5c62923bbd Bug 696220 - js1_8_5/extensions/reflect-parse.js is failing. r=luke.
--HG--
extra : rebase_source : b6452bd11b342921ac7667dfb2765bb213db9e23
2011-10-27 15:40:40 -05:00
Jim Blandy
4b1daeff70 Bug 695985: Provide CFI for the code address GDB checks when a return address points at JaegerThrowpoline's or JaegerInterpoline's entry point. r=sfink
Details in comments.
2011-10-27 13:14:22 -07:00
Bobby Holley
f28c3b5733 Bug 693341 - Test arrays of iid_is params. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
2a7b499431 Bug 693341 - Improve array and interface comparisons. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
eb8f8822de Bug 693341 - Test iid_is(). r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
232928b5e3 Bug 693341 - Test interface arrays. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
b140fb446f Bug 693341 - Introduce a few test interfaces. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
2a43dc603c Bug 693341 - Test sized strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
870e878e2a Bug 693341 - Test arrays of strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
5731e74e86 Bug 693341 - Test arrays of arithmetic types. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
99e689efc2 Bug 693341 - Use comparators for everything in test_params.js. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
3bfbfd8a2e Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey 2011-10-27 12:43:38 -07:00
Chris Jones
8ea0a5c4fe Bug 669949, part 2: Implement jsreftest browser.js JSContext-munging on top of Components.utils helpers. r=bc 2011-10-27 12:24:38 -07:00
Chris Jones
f850e9c3aa Bug 669949, part 1: Add Components.utils interfaces for playing with callee JSContext params. r=mrbkap sr=jst 2011-10-27 12:24:38 -07:00
Brian Hackett
ce5f244dd5 Watch for imacros in ContextStack::currentScript, bug 697255. r=luke 2011-10-27 12:06:07 -07:00
Jason Orendorff
13bf278d0f Rename PopStatementCG and NewScriptFromCG. Bug 696876, part 3 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : de8a4aa72e70ecc321a987227ee88a1883400db9
2011-10-27 09:29:50 -05:00
Jason Orendorff
b9c4c91103 Convert CG_ macros to BytecodeEmitter methods. Bug 696876, part 2 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : ae396c039122ab4c8e7f002778f003e24229cd47
2011-10-27 09:16:24 -05:00
Jason Orendorff
94ba16b2c0 Rename js::CodeGenerator to js::BytecodeEmitter. Bug 696876, part 1 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : 2cc974e15cdf9e4dce36599b45914bab56825611
2011-10-27 09:15:40 -05:00
Jason Orendorff
0ee17aec01 Bug 684489 - Fix a strict direct eval bug affecting Google Maps. r=Waldo.
--HG--
extra : rebase_source : 5e708cc26a923934a363f327696bcd2913038f21
2011-10-27 08:58:33 -05:00
Ed Morley
19b43ef359 Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak 2011-10-27 16:11:26 +01:00
Boris Zbarsky
947ce13fde Bug 705280 - (2/2) Custom quickstub nsIDOMHTMLDocument.head and change nsIDOMHTMLDocument.body custom quickstub. r=mrbkap 2011-11-29 17:32:31 +01:00
Mounir Lamouri
477f1cb570 Bug 705280 - (1/2) Quickstub nsIDOMHTMLDocument.head. r=mrbkap 2011-11-29 17:30:13 +01:00
Ryan VanderMeulen
22349ca270 Bug 517298 - Re-enable tests that had been skipped previously. r=bclary 2011-11-29 17:22:13 +01:00
Chris Leary
512f0b07a4 Back out 9541ced017f7 -- performance didn't improve as expected. 2011-11-28 17:23:02 -08:00
David Mandelin
f0008d63aa Bug 684922 followup: fix test metadata to expect error
--HG--
extra : rebase_source : b9deb96721dc65822968fec49273010367f0e2ff
2011-11-28 16:59:05 -08:00
Alon Zakai
052ec1805b Bug 705508 - Add printErr to JS console. r=cdleary 2011-11-28 16:49:34 -08:00
Ryan VanderMeulen
62a927d2f5 Bug 705401 - Remove the rest of TraceVis. r=dvander 2011-11-28 16:08:25 -08:00
David Mandelin
e989f473fd Bug 684922: avoid infinite recursion through GetCustomIterator, r=luke 2011-11-28 15:20:15 -08:00
Ryan VanderMeulen
6c5d50b5ed Bug 524732 - Re-enable tests that had been skipped previously. r=bclary 2011-11-28 14:57:31 -08:00
Ryan VanderMeulen
c99172b952 Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander 2011-11-28 14:57:31 -08:00
Chris Leary
8a09202cc6 Bug 691797: Optimize RegExp.prototype.test with leading .* (r=mrbkap)
--HG--
extra : rebase_source : 83c8bf66164a4f6f5895beeeb857179de280c241
2011-11-28 13:35:12 -08:00
Terrence Cole
fb465cb23d Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC.  This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.

--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Rafael Ávila de Espíndola
9799f824dd Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
--HG--
extra : rebase_source : ecd108d166017cbd64c5be459a76cb2522723dfb
2011-11-28 15:32:32 -05:00
Brendan Eich
1319d0d674 Bug 685321: detect closed-over variables conservatively, r=jorendorff 2011-11-28 11:57:10 -08:00
Jeff Walden
75178a4438 Bug 701973 - Make callers pass the type of function body being parsed to Parser::functionBody, rather than inferring it from the current token. r=jorendorff
--HG--
extra : rebase_source : 6fe4c4dc4bcb0b7b44383da995934f2ff2383046
2011-11-12 01:38:24 -08:00
Jeff Walden
f4134134c8 Bug 701973 - Make js::Parser::variables not depend on the current token, and extract TOK_CONST from TOK_VAR. r=jorendorff
--HG--
extra : rebase_source : f6825ae9b1780fd1ecb2bc7831e14639abaeb735
2011-11-11 19:23:25 -08:00
Jeff Walden
3c5ca419bc Bug 701620 - Split up PNK_LC into PNK_STATEMENTLIST and PNK_XMLCURLYEXPR. r=jorendorff
--HG--
extra : rebase_source : 4d781725639c6c94da53fd33fcfcedf221634a35
2011-11-11 18:05:43 -08:00
Jeff Walden
2a586af759 Bug 701620 - Rename PNK_DO to PNK_DOWHILE to make the meaning clearer. r=jorendorff
--HG--
extra : rebase_source : c3320c052e937a7700ed8c1dd2259c9c4b6f0b03
2011-11-06 07:51:39 -08:00
Jeff Walden
7293d6c2ce Bug 701620 - Split parse nodes for the parenthesized heads of for loops into PNK_FORHEAD (for(;;) loops) and PNK_FORIN (for(var _ in _) loops) kinds. r=jorendorff
--HG--
extra : rebase_source : d98eeba2b14581aae589fd6e3eb12ba4220c1670
2011-11-05 12:43:39 -07:00
Jeff Walden
444d050d4e Bug 701620 - Use two different kinds for the + operator when used in unary and binary expressions, likewise for -. r=jorendorff
--HG--
extra : rebase_source : ae4b6490a658893b51a069ac40151ca63fff0055
2011-11-05 12:20:22 -07:00
Jeff Walden
071dfc0efb Bug 701620 - Split default parse nodes into PNK_DEFAULT into PNK_DEFAULT (for default cases in switches) and PNK_DEFXMLNS (for those other uses). r=jorendorff
--HG--
extra : rebase_source : 795141b3c10ccc731a8690a1c91df6db441ed46c
2011-11-05 12:10:33 -07:00
Nicholas Nethercote
f1e77095c2 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Mounir Lamouri
631be0b19b Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue. 2011-11-27 16:59:10 +01:00
Rafael Ávila de Espíndola
0ea58cfe7f Bug 705461 - Use MOZ_CHECK_HEADER(S) everywhere. r=neil. 2011-11-26 16:05:17 -05:00
Andrew Paprocki
eb7980a023 Bug 620452 - Always define sharpnum to prevent compiler error when JS_HAS_SHARP_VARS is undefined. r=mrbkap 2011-11-21 21:54:35 -05:00
Tom Schuster
18afa40401 Bug 647628 - Remove SKIP_POP_AFTER_SET. r=bhackett
--HG--
extra : rebase_source : 1332f0176be3db638d112392b5265a12eeee5ec2
2011-11-26 18:52:27 +01:00
Tom Schuster
59c2940705 Bug 554691 - Remove dead js_RegisterCloseableIterator definiton from header file. r=Ms2ger
--HG--
extra : rebase_source : b8b5fe8b03ded91b37560d045d4fe5d2da7f7925
2011-11-26 18:51:06 +01:00
Marco Bonardo
ca613c9cf5 Merge mozilla-central to mozilla-inbound 2011-11-26 14:29:05 +01:00
Ms2ger
3b924f7857 Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley 2011-11-26 11:32:03 +01:00
Ms2ger
50174a0e92 Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley 2011-11-26 11:05:59 +01:00
Bobby Holley
e7353e9706 Bug 692342 - Get rid of the large and unnecessary table-driven reflectability detector. r=mrbkap
The XPIDL machinery should never output an invalid configuration here, so all this checking is unnecessary. The only thing we have to watch out for is native types, which all get shoehorned into T_VOID. So let's make this a simple check.
2011-11-25 17:09:07 -08:00
Bobby Holley
cf0c523c0d Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap
JSval is the only different between the two, and we handle that above.
2011-11-25 17:09:07 -08:00
Bobby Holley
8ae1b4f193 Bug 692342 - Coalesce cleanup flagging even further. r=mrbkap
This eliminates another pesky use of IsPointer().
2011-11-25 17:09:07 -08:00
Bobby Holley
80a53aed88 Bug 692342 - Assert against arrays of jsvals, since we don't handle them. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
06df2e6a7d Bug 692342 - Coalesce cleanup flagging within ConvertDependentParam. r=mrbkap
The only change in functionality here is that we flag for cleanup on 'inout' sized strings in addition to 'in' sized strings. I'm pretty sure we want that.
2011-11-25 17:09:07 -08:00
Bobby Holley
ce087657c7 Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
eb2e2115a2 Bug 692342 - Reorder in/out/inout handling in XPCWrappedNative parameter conversion. r=mrbkap
Apologies for the copy paste here. Fixing that will require some more serious re-architecting.
2011-11-25 17:09:07 -08:00
Bobby Holley
95cde91eeb Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
5424bb3bcc Bug 692342 - Remove check for !IsInterfacePointer(), given the code a few lines above. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
62e80bfb1b Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
583010a596 Bug 692342 - Create a ConvertDependentParam(i) method to match ConvertIndependentParam(i) (modulo reindentation). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
6b83abef00 Bug 692342 - Simplify cleanup code in ConvertIndependentParameter(). r=mrbkap
We're not dealing with dependent parameters here. So as far as I can tell, the only behavior change that this introduces is that we flag for cleanup on T_WCHAR_STR in addition to T_CHAR_STR. This seems like something we probably want.
2011-11-25 17:09:07 -08:00
Bobby Holley
ab29eff0be Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap 2011-11-25 17:09:06 -08:00
Bobby Holley
cd0b0da035 Bug 692342 - Remove the obviously superfluous uses of IsPointer(). r=mrbkap
These are the easy cases, which all fall into one or more of the following categories:
* A check-and-throw, followed by a switch whose default case also throws
* A check of IsPointer() &&-ed with or tightly enclosing a check that implies IsPointer()
* A check of something clearly enforced by the XPIDL compiler
2011-11-25 17:09:06 -08:00
Bobby Holley
01cb0af700 Bug 692342 - Remove use of IsReference() within XPConnect. r=mrbkap
All we're doing is checking that various types aren't flagged as reference. But xpidl makes sure this doesn't happen, so we should just trust it instead.
2011-11-25 17:09:06 -08:00
Mounir Lamouri
64f6355173 Bug 705280 - Quickstub nsIDOMHTMLDocument.*. r=mrbkap
Currently not all methods of nsIDOMHTMLDocument were quickstubbed which means
some methods like document.head were excessivly slow (see bug report).
2011-11-26 01:24:08 +01:00
Andrew Paprocki
6e53604b3e Bug 660747 - Reverting YARR begin characters optimization. r=dmandelin 2011-11-22 00:21:18 -05:00
Brian Hackett
f90413cb77 Fix incorrect test in FindIdentifierBase, bug 694247. 2011-10-25 08:48:22 -07:00
Nicholas Nethercote
006eaea440 Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett. 2011-11-01 21:59:43 -07:00
Ms2ger
20e2c89cee No bug - Fix OSX -Werror builds by initializing Chars::cx in the constructor; rs=Waldo over IRC 2011-11-01 22:46:48 +01:00
Brian Hackett
971df17161 Back out b979f9d59e89 (bug 678687) for intermittent test_jQuery timeout. 2011-11-01 14:52:26 -07:00
Brian Hackett
a960b32d4b Remove ARGCNT, ARGSUB opcodes, bug 698015. r=dvander 2011-11-01 09:01:04 -07:00
Brian Hackett
7ca6184810 Try converting known doubles to integers in GETELEM/SETELEM paths, bug 678687. r=dvander 2011-11-01 08:43:40 -07:00
Brian Hackett
41e18127a7 Add JSScript::function, bug 693754. 2011-10-21 14:31:01 -07:00
Leon Sha
41e821d743 Bug 697014 - Javascript test case testTypedArrays.js failed on sparc with typed array and TI. Part II. r=bhackett1024. 2011-10-27 14:03:02 +08:00
Andrew Paprocki
74e88cc52c Bug 696957 - Add Sparc, POWER/PPC, IA64 big-endian detection to jscpucfg.h. r=ted.mielczarek. 2011-10-27 14:02:20 +08:00
Dave Herman
435f33242f Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Brian Hackett
b37cde22be Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander 2011-10-26 18:46:06 -07:00
Ed Morley
64da4fd7f6 Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange 2011-10-27 01:53:05 +01:00
Dave Herman
62eae0dec1 Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Rasmus Jensen
b60cdaa715 Bug 680858 - Setting the namespace of an existing attribute may cause it to duplicate another existing attribute (E4X spec bug). Remove the already-existing attribute before mutating the attribute's namespace to not introduce duplicate attributes. r=jwalden
--HG--
extra : rebase_source : c99c0efad1e78c5a63ed6e04beb0fdedbf3e4967
2011-10-26 15:35:32 -07:00
Doug Sherk
63e6006511 Bug 656824: Implemented ARB_robustness to detect driver resets in WebGL, only on GLX for now - r=bjacob
This patch implements ARB_robustness on GLX and allows scripts to handle driver resets
through events. The changes in this patch are very sweeping; they hit almost
every NS_IMETHODIMP function within WebGLContextGL.cpp and WebGLContext.cpp.
More work must be done on this to support EGL_CONTEXT_LOST.
2011-10-26 16:00:44 -04:00
Marty Rosenberg
e0cdccfbb9 When using DoubleConditionBitSpecial, actually strip out the bits before emitting an instruction (bug 691073, r=dvander) 2011-10-26 12:35:41 -07:00
Boris Zbarsky
23835e20a5 Bug 697244. Quickstub nsIDOMWindow.self. r=peterv 2011-10-26 15:34:22 -04:00
Stephan Herhut
a3f15c8871 Bug 697515 - WeakMap.set should return undefined, not itself. r=jorendorff.
--HG--
extra : rebase_source : 0e01d5899710f05bc1d8379eb1b98df5b40bade5
2011-10-26 14:25:20 -05:00
Andrew Paprocki
fd6c3ae810 Bug 691001 part 2. AppendAttributeValue escapes values without creating transient StringBuffer and JSFlatString. r=brendan 2011-10-24 21:46:35 -04:00
Andrew Paprocki
e8cf10d776 Bug 691001 part 1. Hoist property check out of tight loop / prevent unnecessary Namespace object creation. r=brendan 2011-10-24 21:45:17 -04:00
Boris Zbarsky
a328014b0f Bug 697351. Implement has() on the nodelist proxy handler so that we don't have to do the property descriptor song and dance for it. r=peterv 2011-10-26 08:47:10 -04:00
Jan de Mooij
08b0896ac2 Bug 697076 - Fix some Clang warnings. r=luke 2011-10-26 11:50:40 +02:00
Jan de Mooij
1d6e3ef66d Bug 696803 - Remove unused PushMarkStack function. r=billm 2011-10-26 11:48:36 +02:00
Leon Sha
a213c8bba0 Bug 697014 - Javascript test case testTypedArrays.js failed on sparc with typed array and TI. r=bhackett1024. 2011-10-26 10:37:06 +08:00
Brian Hackett
8c63ed57af Fix failing test, bug 693754. 2011-10-20 14:56:24 -07:00
Brian Hackett
6fba97c678 Fix misuse of JSObject::getParent, bug 694247. 2011-10-20 10:09:36 -07:00
Brian Hackett
55ceee9e12 Fix OPT build break. 2011-10-20 07:38:44 -07:00
Brian Hackett
d64dce75db Merge MC -> JM
--HG--
rename : js/src/jsparse.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/jsparse.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/jsemit.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/BytecodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/jsparse.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/jsparse.h => js/src/frontend/ParseNode.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
rename : js/src/xpconnect/src/xpcjsruntime.cpp => js/xpconnect/src/XPCJSRuntime.cpp
rename : js/src/xpconnect/src/xpcquickstubs.cpp => js/xpconnect/src/XPCQuickStubs.cpp
rename : js/src/xpconnect/src/nsXPConnect.cpp => js/xpconnect/src/nsXPConnect.cpp
2011-10-19 14:26:08 -07:00
Brian Hackett
4deff4dab5 Fix test failures. 2011-10-19 08:12:44 -07:00
Mike Hommey
2db96543a3 Bug 695989 - Properly pick changes to jemalloc/mozutils on Linux incremental builds. r=ted 2011-10-27 15:15:21 +02:00
Mike Hommey
5c15ccafeb Bug 692918 - Ignore .pyo files in config|js/src/config synchro. r=ted 2011-10-27 15:14:49 +02:00
Mike Hommey
4a62f1045e Bug 686464 - Leave it to Android to unpack the content process executable. r=ted 2011-10-27 14:53:20 +02:00
Brian Hackett
ed28c77902 Fix GC hazard in fun_trace, bug 693754. 2011-10-14 15:31:53 -07:00
Brian Hackett
19e2a50062 Move singleton flags to TypeObject, remove JSObject::flags, bug 694561. 2011-10-14 14:54:04 -07:00
Brian Hackett
e66c1a2dc0 Move rarely set object flags to BaseShape, bug 694561. 2011-10-14 13:51:21 -07:00
Brian Hackett
7dd33f659d Move fixed slot count from JSObject to Shape, bug 594561. 2011-10-14 11:06:15 -07:00
Brian Hackett
bd47b18c9b Just load payload when accessing scope object chains, bug 694247. 2011-10-13 20:44:53 -07:00
Brian Hackett
47aca3f8c2 Move JSObject::parent to BaseShape, bug 638316. 2011-10-13 20:21:36 -07:00
Bill McCloskey
654cbb225e Bug 699668 - Increase JS type arena size for faster GC sweeps (r=njn) 2011-11-16 17:31:28 -08:00
Chris Leary
7390eeca6b Bug 702426: Add test. 2011-11-16 16:40:13 -08:00
Bill McCloskey
f8a50c849a Bug 702003 - Handle NULL during JSXML tracing (r=luke) 2011-11-14 14:55:21 -08:00
Gregor Wagner
6ab717790a Bug 702496 - Fix MOZ_GCTIMER makeTable. r=billm 2011-11-16 10:56:51 -08:00
Bill McCloskey
93819b71b4 Back out 2f276de2e526 (burning) 2011-11-16 10:48:51 -08:00
Bill McCloskey
b9aca2f5a5 Bug 702003 - Handle NULL during JSXML tracing (r=luke) 2011-11-14 14:55:21 -08:00
Ed Morley
0d4271ee17 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-16 11:02:43 +00:00
Ms2ger
c475769c1a Bug 700740 - Remove 'out' label from obj_toSource; r=jorendorff 2011-11-16 08:50:20 +01:00
Ms2ger
6622e2e115 Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey 2011-11-16 08:50:19 +01:00
Ms2ger
98a2a7433a Bug 702106 - Remove xpc_CloneJSFunction; r=bholley 2011-11-16 08:50:18 +01:00
Ms2ger
18f3c0a9f6 Bug 701735 - xpc_qsJsvalToWcharStr shouldn't const_cast; r=bz 2011-11-16 08:50:18 +01:00
Jim Blandy
87641064c1 Bug 701274: Make jsd_ThrowHandler return the proper JSTrapStatus value, not JSD_HOOK_RETURN_CONTINUE_THROW. r=sfink 2011-11-15 08:04:58 -08:00
Jeff Walden
3a9bae8669 Bug 702437 - Implement MOZ_OVERRIDE to encapsulate support for the contextual override keyword on virtual member functions. r=cjones 2011-11-14 10:31:46 -08:00
Chris Leary
c777420fef Bug 702426: Hoist executable allocator for better RegExp code sharing, take 2. (r=luke) 2011-11-15 14:33:54 -08:00
Terrence Cole
b92b60928b Bug 702681 - Remove the double chunk loop in DecommitFreePages; r=igor
In DecommitFreePages we iterate over the runtime's ChunkSet and inside that walk
over the list in the chunk info header.  The chunk set contains all chunks, so
we can ignore the internal list.

--HG--
extra : rebase_source : 3b1976fbf97308cc53b532a9e74b1871aa616079
2011-11-15 15:13:13 -08:00
Tom Schuster
d2e73d550b Bug 697279 - Properly disable some E4X opcodes in strict mode. r=brendan 2011-11-14 20:43:33 +01:00
Bill McCloskey
d2d3e17c2f Bug 701682 - Avoid write barrier when slowifying an array (r=bhackett) 2011-11-14 11:10:22 -08:00
Bill McCloskey
54915c0e95 Bug 701761 - Purge regexps only when regexp_trace is called for GC (r=cdleary) 2011-11-14 11:02:23 -08:00
Ed Morley
b4b63e4e16 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-12 12:43:56 +00:00
Jeff Walden
24b1586811 Bug 701628 - Remove the empty _COMPILER_PREFIX configure.in variable and its uses. r=ted
--HG--
extra : rebase_source : 1803f6b912ee62790daae0687ae449cd3521f59a
2011-11-11 13:50:48 -08:00
timeless@mozdev.org
a9696861ac Bug 700302 - Handle null script filenames (r=sfink)
--HG--
extra : rebase_source : 18a1c744b796ca021fa37ff4676a46d78229cd56
2011-11-11 11:35:06 -08:00
Chris Leary
16e11c793c Back out ebc6ef282df4 for build breakage. 2011-11-15 12:33:41 -08:00
Chris Leary
367e61dec3 Bug 702426: Hoist executable allocator for better RegExp code sharing. (r=luke)
--HG--
extra : rebase_source : fa6c50980d6b0539064140567ddaddab45341a49
2011-11-15 12:18:34 -08:00
Terrence Cole
63861b290d Bug 702480 - Fix description of js-gc-heap-unused-fraction; r=njn
--HG--
extra : rebase_source : bf479d6df1b903b148b807757aa8702aa2db9a8d
2011-11-14 17:28:27 -08:00
Brian Hackett
6422769ff8 Add call scope to JSFunction, bug 693754. 2011-10-13 12:10:52 -07:00
Brian Hackett
a78ff80519 Account for ObjectElements header when inlining JSOP_NEWINIT, bug 693971. 2011-10-13 09:18:45 -07:00
Brian Hackett
83d28ee44c Fix uses of getParent() in nsXPConnect, bug 694247. 2011-10-13 09:03:52 -07:00
Brian Hackett
ce20b23c51 Fix compiler warnings. 2011-10-13 08:55:35 -07:00
Brian Hackett
d087a08c61 Preserve last shape while converting to dictionary mode, bug 693966. 2011-10-13 08:38:05 -07:00
Brian Hackett
35a50f4afb Move scope chains of scope objects to reserved slots, bug 694247. 2011-10-12 22:29:43 -07:00
Brian Hackett
ef3ad9e6ff Fix test failures, bug 693754. 2011-10-12 08:32:42 -07:00
Brian Hackett
a9e67532b0 Fix test failures, bug 693479. 2011-10-11 16:46:42 -07:00
Brian Hackett
9c64bfccd6 Remove JSObject::getFunctionPrivate, add call scope to JSFunction, bug 693754. 2011-10-11 15:28:54 -07:00
Brian Hackett
e9b876258d Remove JSObject::privateData, bug 693479. 2011-10-10 17:14:38 -07:00
Brian Hackett
f5a853bac0 Reallocate slots when inserting slotful properties into dictionaries, bug 693221. 2011-10-10 13:39:01 -07:00
Brian Hackett
99df9202c3 Remove JSObject::capacity and JSObject::initializedLength, split JSObject::slots into slots and elements, bug 693221. 2011-10-10 11:41:03 -07:00
Brian Hackett
a61bdb81a1 Move JSObject::newType to a hashtable, bug 684410. 2011-10-07 20:09:09 -07:00
Brian Hackett
7bedad19d8 Fix --disable-tracejit build. 2011-10-18 14:50:35 -07:00
Bill McCloskey
558e68e5ef Bug 695213 - Add total time to MOZ_GCTIMER output. 2011-10-18 14:03:51 -07:00
Bill McCloskey
074a4aac21 Bug 695493 - Fix JM opcode spew. 2011-10-18 14:03:40 -07:00
Jason Orendorff
2c0fe461ba Bug 695450 - Rename js/src/frontend/CodeGenerator.h to BytecodeGenerator.h to avoid conflict with IonMonkey. r=dvander.
--HG--
rename : js/src/frontend/CodeGenerator.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/frontend/CodeGenerator.h => js/src/frontend/BytecodeGenerator.h
2011-10-18 14:45:33 -05:00
Brian Hackett
2762d10152 Add Array.concat stub for concatenating known dense arrays, bug 692960. r=dvander 2011-10-18 11:24:28 -07:00
Brian Hackett
9393f3f433 Speed up Array.shift, and Array.{pop,shift} on empty arrays, bug 692847. r=dvander 2011-10-18 11:08:52 -07:00
Brian Hackett
a8989c224b Always initialize 'this' value of constructor frames when going through InvokeConstructorKernel, bug 688974. r=luke 2011-10-18 11:00:54 -07:00
Brian Hackett
b80ef4cb95 Address shape number removal review comments, bug 684505. 2011-10-05 11:54:28 -07:00
Brian Hackett
14ea545a2a Fix inline methods for debug builds, bug 690133. 2011-10-05 09:23:36 -07:00
Brian Hackett
b5ea0e25d1 Move inline methods depending on getClass into *inlines.h, bug 690133. 2011-10-04 18:46:03 -07:00
Ted Mielczarek
2cd9d1bd75 bug 695685 - Make JS module/component dump go to stdout and flush. r=mrbkap 2011-10-19 10:01:24 -04:00
Ginn Chen
43ee03feec Bug 689916 Fix yarr crashes on SPARC r=dmandelin 2011-10-25 12:50:03 +08:00
Brian Hackett
35116a76ef Always discard methodjit code on GC, remove JM+TM integration, bug 685358. r=dvander 2011-10-24 20:46:00 -07:00
Matt Brubeck
4c00680be2 Merge mozilla-central to mozilla-inbound 2011-10-24 20:24:51 -07:00
Jeff Walden
a006f537e5 Bug 696941 - Privatize Token::u::dval. r=cdleary 2011-10-24 19:24:06 -07:00
Jeff Walden
711171807d Bug 696941 - Make Token::u::reflags private and hidden behind accessors. r=cdleary 2011-10-24 19:22:27 -07:00
Terrence Cole
0f6497a4d8 Bug 690204 - Migrate jsarray.cpp to CallArgs; r=waldo
Except for array_splice and array_concat which have other
work outstanding.
2011-10-25 02:02:36 +01:00
Jesse Ruderman
d2371a1d0e Bug 675553 followup: remove tautologous assertions. r=ehsan 2011-10-24 16:21:09 -07:00
Brendan Eich
2b72a53735 Make test for bug 695577 shell-only pending investigation. 2011-10-24 00:27:48 -07:00
Brendan Eich
28be4a7344 Ban E4X in ES5 strict mode (bug 695577, r=luke). 2011-10-23 22:42:29 -07:00
Brian Hackett
0d02665637 Don't inline scripts which native and getter IC stubs have been generated for, bug 683804. r=dvander 2011-10-22 07:35:04 -07:00