Jason Orendorff
adbaa9db8c
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
547fc501fd
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
8d7655f42e
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
e45abf9efb
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
684211c150
Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak
2011-10-27 16:11:26 +01:00
Mike Hommey
bcde7f06a7
Bug 695989 - Properly pick changes to jemalloc/mozutils on Linux incremental builds. r=ted
2011-10-27 15:15:21 +02:00
Mike Hommey
2ccff223d9
Bug 692918 - Ignore .pyo files in config|js/src/config synchro. r=ted
2011-10-27 15:14:49 +02:00
Mike Hommey
c04dec79a7
Bug 686464 - Leave it to Android to unpack the content process executable. r=ted
2011-10-27 14:53:20 +02:00
Leon Sha
6896f0c0d5
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
9d73f3dc2a
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
002b9719d0
Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff
2011-10-26 16:45:25 -07:00
Brian Hackett
43d69c2cf5
Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander
2011-10-26 18:46:06 -07:00
Ed Morley
d303cbe72d
Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange
2011-10-27 01:53:05 +01:00
Dave Herman
041d9a3791
Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff
2011-10-26 16:45:25 -07:00
Rasmus Jensen
9a4902d909
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
1c15893d0b
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
476203f5aa
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
fd2696ae97
Bug 697244. Quickstub nsIDOMWindow.self. r=peterv
2011-10-26 15:34:22 -04:00
Stephan Herhut
4a5405546d
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
e026a31272
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
0c540bf07c
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
b079ce7195
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
daf7178298
Bug 697076 - Fix some Clang warnings. r=luke
2011-10-26 11:50:40 +02:00
Jan de Mooij
97cb332545
Bug 696803 - Remove unused PushMarkStack function. r=billm
2011-10-26 11:48:36 +02:00
Leon Sha
2778392625
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
Bill McCloskey
d48d3cdc24
Bug 699668 - Increase JS type arena size for faster GC sweeps (r=njn)
2011-11-16 17:31:28 -08:00
Chris Leary
c5fe5614b0
Bug 702426: Add test.
2011-11-16 16:40:13 -08:00
Bill McCloskey
5f42b9e778
Bug 702003 - Handle NULL during JSXML tracing (r=luke)
2011-11-14 14:55:21 -08:00
Gregor Wagner
8ba0a58e99
Bug 702496 - Fix MOZ_GCTIMER makeTable. r=billm
2011-11-16 10:56:51 -08:00
Bill McCloskey
247c04ed42
Back out 2f276de2e526 (burning)
2011-11-16 10:48:51 -08:00
Bill McCloskey
2081c52fa6
Bug 702003 - Handle NULL during JSXML tracing (r=luke)
2011-11-14 14:55:21 -08:00
Ed Morley
1c87228e23
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-16 11:02:43 +00:00
Ms2ger
fc2ca0ad3d
Bug 700740 - Remove 'out' label from obj_toSource; r=jorendorff
2011-11-16 08:50:20 +01:00
Ms2ger
d2ea6246bf
Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey
2011-11-16 08:50:19 +01:00
Ms2ger
b97f7f7801
Bug 702106 - Remove xpc_CloneJSFunction; r=bholley
2011-11-16 08:50:18 +01:00
Ms2ger
2424957995
Bug 701735 - xpc_qsJsvalToWcharStr shouldn't const_cast; r=bz
2011-11-16 08:50:18 +01:00
Jim Blandy
1bfe86b4a5
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
e15cf47cfd
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
24834c0bb3
Bug 702426: Hoist executable allocator for better RegExp code sharing, take 2. (r=luke)
2011-11-15 14:33:54 -08:00
Terrence Cole
be951c871d
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
0ac8e05277
Bug 697279 - Properly disable some E4X opcodes in strict mode. r=brendan
2011-11-14 20:43:33 +01:00
Bill McCloskey
04809a2986
Bug 701682 - Avoid write barrier when slowifying an array (r=bhackett)
2011-11-14 11:10:22 -08:00
Bill McCloskey
8c0d564b70
Bug 701761 - Purge regexps only when regexp_trace is called for GC (r=cdleary)
2011-11-14 11:02:23 -08:00
Ed Morley
e160c7055c
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-12 12:43:56 +00:00
Michael Wu
dcc2c6030e
Bug 691847 - Always check bytecode version, r=Waldo
2011-11-11 19:15:19 -08:00
Jeff Walden
51dc78450f
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
Marco Bonardo
58bfb85dcd
Merge mozilla-central and mozilla-inbound
2011-11-11 11:09:58 +01:00
Luke Wagner
86474973a1
Bug 698299 - rm bogus assert in SecurityWrapper::nativeCall (r=mrbkap)
...
--HG--
extra : rebase_source : 76029f08a99557061e33550165267488acf38e9b
2011-11-10 21:55:35 -08:00
Luke Wagner
ce23677698
Bug 701239 - add back arg/local-handling in DecompileDestructuringLHS (r=waldo)
...
--HG--
extra : rebase_source : b296a3a47e4b687f773f9f5cf8bada7812ba2b81
2011-11-10 21:55:23 -08:00
Luke Wagner
5c9952fece
Bug 701227 - don't assume catch's block object has only one entry (r=waldo)
...
--HG--
extra : rebase_source : 77673329e0841330a954a7f419d2561701c43f3c
2011-11-10 21:53:55 -08:00
Luke Wagner
b2a621aa92
Bug 701244 - add back JSOP_LENGTH case to DecompileDestructuring (r=waldo)
...
--HG--
extra : rebase_source : ddc7c80a94772b5b234a0d8f000189618051b7ff
2011-11-10 21:52:57 -08:00
timeless@mozdev.org
f8353b8539
Bug 700302 - Handle null script filenames (r=sfink)
...
--HG--
extra : rebase_source : 18a1c744b796ca021fa37ff4676a46d78229cd56
2011-11-11 11:35:06 -08:00
Chris Leary
6b85017e77
Back out ebc6ef282df4 for build breakage.
2011-11-15 12:33:41 -08:00
Chris Leary
90f6a5f8e1
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
2dcbf80d34
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
Jeff Walden
2b2646eebe
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
ca6ba5c8ed
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
8951d2e99a
Bug 701387: RegExpPrivateCache can disappear after lookup. (r=Waldo)
2011-11-10 21:04:04 -08:00
Chris Leary
1bd2f9ab1d
Bug 701332: Followup fix.
2011-11-10 21:04:00 -08:00
Chris Leary
b72a4dfff6
Bug 701332: Don't expose RegExp privates. (r=Waldo)
2011-11-10 17:30:04 -08:00
Chris Leary
10066a1d5e
Bug 701332: Defensive refcount on string split. (r=Waldo)
2011-11-10 17:30:01 -08:00
Chris Leary
27a5f7bc9a
Bug 700915: Back out diagnostic changeset fe41fa77e51a.
2011-11-10 17:19:18 -08:00
Michael Wu
3e0835d415
Bug 694206 - Add Gonk (B2G) widget backend, r=cjones
2011-11-10 16:17:46 -08:00
Bill McCloskey
a6734b541f
Bug 641027 - Fix warnings-as-errors bustage
2011-11-10 13:38:05 -08:00
Jim Blandy
4ef75e7f38
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
40d309e06f
Bug 700915: 64-bit RegExp domaeo_basics diagnostic. (r=billm)
2011-11-10 12:42:58 -08:00
Brian Hackett
a6951bc7dd
Add type behavior info to script PC counts, bug 691788. r=sfink
2011-11-10 12:34:24 -08:00
Ted Mielczarek
b89ad0aa81
bug 695685 - Make JS module/component dump go to stdout and flush. r=mrbkap
2011-10-19 10:01:24 -04:00
Ginn Chen
519a8f4fa1
Bug 689916 Fix yarr crashes on SPARC r=dmandelin
2011-10-25 12:50:03 +08:00
Brian Hackett
c905df3eb2
Always discard methodjit code on GC, remove JM+TM integration, bug 685358. r=dvander
2011-10-24 20:46:00 -07:00
Matt Brubeck
57042802ec
Merge mozilla-central to mozilla-inbound
2011-10-24 20:24:51 -07:00
Jeff Walden
434b71dd18
Bug 696941 - Privatize Token::u::dval. r=cdleary
2011-10-24 19:24:06 -07:00
Jeff Walden
843a24f3c4
Bug 696941 - Make Token::u::reflags private and hidden behind accessors. r=cdleary
2011-10-24 19:22:27 -07:00
Terrence Cole
9f1003e871
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
4a98a7e828
Bug 675553 followup: remove tautologous assertions. r=ehsan
2011-10-24 16:21:09 -07:00
Brendan Eich
aacc0463c8
Make test for bug 695577 shell-only pending investigation.
2011-10-24 00:27:48 -07:00
Brendan Eich
e2844f3c0c
Ban E4X in ES5 strict mode (bug 695577, r=luke).
2011-10-23 22:42:29 -07:00
Brian Hackett
fb59337639
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
Tom Schuster
997a7d9326
Small style fixes no bu r=lumpy
2011-10-22 16:30:28 +02:00
Brian Hackett
c8432d3b5b
Get more precise known type tag for type sets containing any object, bug 685472. r=dvander
2011-10-22 07:20:56 -07:00
Marco Bonardo
a72c49ddb7
Backout cb50e96dbee0 (Bug 677079) for Win PGO mochitests failures.
2011-10-22 11:03:26 +02:00
Bill McCloskey
0d988f23d3
Bug 677079 - Remove jscntxt.h from INSTALLED_HEADERS (r=Waldo)
2011-10-20 10:14:24 -07:00
Jim Blandy
69c03b9c6e
Bug 696261: Correct references to 'tempPool' in comments; it's now 'tempLifoAlloc'. r=cdleary
2011-10-21 16:53:30 -07:00
Luke Wagner
3725a389bf
Bug 696108 - hoist EmitFor, EmitForIn, EmitNormalFor out of EmitTree (r=jorendorff)
...
--HG--
extra : rebase_source : bec844e4a62f0492c33d3447fb31ca460768c62a
2011-10-20 08:27:25 -07:00
Mitchell Field
61f3f4ae6d
Bug 593768 - Remove --enable-cpp-exceptions configure option; r=ted
2011-10-21 18:56:25 +01:00
Marco Bonardo
7a65efe109
Merge mozilla-central to mozilla-inbound
2011-10-21 10:02:30 +02:00
Marco Bonardo
824c514d6a
Merge last green changeset from mozilla-inbound to mozilla-central
2011-10-21 10:00:11 +02:00
Nicholas Nethercote
ab80fd9083
Bug 695756 - add missing files to 986f31890872. r=red.
2011-10-20 23:11:34 -07:00
Terrence Cole
0a7c9413fd
Bug 695756 - Implement js::BooleanObject. r=nnethercote.
2011-10-20 22:47:30 -07:00
Terrence Cole
023ca05eed
Bug 696211 - Align ChunkInfo by inserting padding in Chunk; r=billm
...
We get a 2% speedup on EarlyBoyer if ChunkInfo (hot all over the
GC allocator paths) is not split across a cache line. An easy
and guaranteed effective way to do this is to just pad Chunk out
to the full 1MiB allocation. This makes ChunkInfo abut the end
of the 1MiB allocation, rather than whereever the Arenas and
ChunkBitmap happen to end. Since GC Chunks are aligned at 1MiB
address boundaries, this ensures that ChunkInfo is inside of a
cache line.
2011-10-20 17:42:39 -07:00
Nicholas Nethercote
0c4c3e74cb
Back out 56ec5e954858 (from bug 685783) due to a Dromaeo regression.
2011-10-20 15:47:39 -07:00
Kyle Huey
0d874b65fa
Bug 687361: Implement the new IndexedDB setVersion API. r=bent
...
--HG--
rename : dom/indexedDB/nsIIDBVersionChangeRequest.idl => dom/indexedDB/nsIIDBOpenDBRequest.idl
2011-10-20 12:10:56 -04:00
Jeff Muizelaar
e9a339bae2
Bug 695422. js: Return NULL instead of false. r=luke
...
Caught with clang
--HG--
extra : rebase_source : dbb9c4ffc8e38f30b467ee38d1923f0645ea8b2e
2011-10-18 15:20:02 -04:00
Jeff Walden
ef6f019c95
Bug 699691 - Remove an unused argument from ino2name in pathsub.{c,h}. r=ted
2011-11-04 18:36:40 -07:00
Jeff Walden
7b4b3fbdcc
Remove js::tl::ArraySize and js::tl::ArrayEnd. They're unused, and mozilla::ArrayLength and mozilla::ArrayEnd supersede them regardless. No bug, r=lumpy
2011-11-04 01:37:53 -07:00
Jeff Walden
e5a5f784c1
Bug 700498 - Change StringBuffer::append to take a JSLinearString*, not a JSAtom*. r=cdleary
2011-11-07 16:28:37 -08:00
Chris Leary
a3247c0573
Bug 634654 - Add RegExpPrivate cache. (r=Waldo)
2011-11-07 13:42:31 -08:00
Dave Mandelin
8e49acb81a
Bug 679986: Deoptimize unnecessary regexps. (r=cdleary)
...
--HG--
extra : rebase_source : 63f2d3865ea362fd2071751edce00737ab83ae26
2011-11-07 11:42:02 -08:00
Luke Wagner
370e03b0c9
Bug 696813 - Hoist function out of Decompile JSOP_POPV case for later reuse (r=jorendorff)
...
--HG--
extra : rebase_source : 49b7adbbaf2e9d3fbf2f4756cefdc659109488d3
2011-11-07 11:46:26 -08:00
Luke Wagner
fe8ff28dbe
Bug 696813 - Hoist two functions out of Decompile JSOP_ENTERBLOCK case for later reuse (r=jorendorff)
...
--HG--
extra : rebase_source : f9c0a19d1926efc7cc89ff64fa0eca3e73775830
2011-11-07 11:46:26 -08:00
Luke Wagner
ffe1e4a200
Bug 696813 - Simplify Decompile (r=waldo)
...
--HG--
extra : rebase_source : 452ffc58a6dc2f9d152fe6cbc2a1206fd3db0e27
2011-11-07 11:46:25 -08:00
Luke Wagner
1ff80ec936
Bug 696813 - Remove dead Decompile parameter (r=waldo)
...
--HG--
extra : rebase_source : a97c2551cae6de7a1c5b345ce5b7ceee26868cff
2011-11-07 11:46:25 -08:00
Luke Wagner
60a6edc8c9
Bug 696813 - Simplify several bytecode generator Emit* functions (r=jorendorff)
...
--HG--
extra : rebase_source : 2d85e4add09a9a99071755151ab8691299fc8c05
2011-10-24 11:15:34 -07:00
Luke Wagner
01f92afc5d
Bug 696813 - Simplify Parser::forStatement (r=jorendorff)
...
--HG--
extra : rebase_source : 9e5d9eebffee46d35a55e869a45b8ec5db5877e6
2011-10-21 10:54:33 -07:00
Terrence Cole
630f28b7e7
Bug 692547 - Split up array_extra; r=Waldo
...
Using array_extra as a common implementation method does not shave off many
bytes of code and makes understanding all of the functions it implements very
difficult. This patch splits this mess up and makes these methods follow
ECMA steps.
--HG--
extra : rebase_source : e31647801e4c54414534bc5770cabfa463c7d149
2011-11-04 15:56:40 -07:00
Igor Bukanov
73466befa4
bug 684529 - remove script object. r=jorendorff
2011-09-22 12:08:55 +02:00
Marco Castelluccio
7daeb82b15
Bug 642957 - Remove obsolete x|0 and x << 0 optimization. r=jandem
2011-10-24 19:11:15 +02:00
Mike Hommey
a8efd96765
Fixup for bug 694499 for pa-risc. r=ted
2011-10-24 18:13:53 +02:00
Bill McCloskey
5fcf91ecbf
Bug 641027 - Add snapshot-based verifier for JS write barriers (r=luke)
2011-08-05 10:25:23 -07:00
Bill McCloskey
8e7a5d934a
Bug 641027 - Add snapshot-at-the-beginning write barriers for incremental GC (r=luke,bhackett)
2011-10-25 16:07:42 -07:00
Jason Orendorff
a4fcc61f73
Report an error when trying to watch an E4X property with a qualified name, rather than set a watchpoint that will not hit reliably. Bug 691746, r=jimb.
2011-10-24 10:51:52 -05:00
Jason Orendorff
26fb877031
Bug 695907 - Use qualified C++ definitions in js/src/frontend instead of wrapping whole .cpp files in namespace js {...}. r=luke.
...
--HG--
extra : rebase_source : 8fca165f696344e6e269cee06871d87259386172
2011-10-19 16:45:12 -05:00
Ted Mielczarek
61711beab0
bug 694499 - get rid of jscpucfg binary. r=jimb
2011-10-19 10:01:24 -04:00
Nicholas Nethercote
95ee61442b
Bug 697931 - Remove KidHashes when possible. r=luke.
2011-10-27 23:06:17 -07:00
Chris Leary
f004557fde
Bug 700822: Randomize JIT VirtualAlloc location on win32. (r=dmandelin)
2011-07-18 20:39:13 -07:00
Chris Leary
db2933b49f
Bug 700822: Add javascript.options.jit_hardening pref, default enabled. (r=dmandelin)
2011-11-08 13:28:49 -08:00
Jan de Mooij
e3dfcb5651
Bug 686381 - JSOP_AND/JSOP_OR should always leave the value on the stack. r=dvander
2011-11-09 17:43:46 +01:00
Jan de Mooij
4be8796dfe
Bug 684384 - Add JSOP_LABEL opcode for IonMonkey. r=dvander
2011-11-09 17:42:27 +01:00
Peter Van der Beken
c8d5e65a28
Bug 700668 - Don't enumerate all compartments for every traversal of a XPCWrappedNative. r=mrbkap.
2011-11-08 18:06:40 +01:00
Jeff Walden
c54dfe474f
Bug 700910 - Implement MOZ_DELETE to encapsulate C++11 = delete syntax. r=cjones
...
--HG--
extra : rebase_source : 0fc4bc154923c84fd91e52be99fdac78f7c6dbc4
2011-11-08 19:19:44 -08:00
Nicholas Nethercote
b5f0310b81
Bug 699724 - Shrink js::HashTable. r=luke.
2011-11-08 21:02:11 -08:00
Jeff Walden
56141b82ad
Bug 700802 - Define private overrides of all JSString methods with vacuous behavior for a given subclass, on that subclass. This will prevent someone from accidentally attempting to, say, linearize a linearly-typed string. r=luke
2011-11-08 14:18:29 -08:00
Jeff Walden
5740259c0e
Bug 700752 - Fix erroneous build warning about a may-be-used-uninitialized variable. r=cdleary
2011-11-08 14:17:58 -08:00
Marco Bonardo
01f25559b7
Merge mozilla-central to mozilla-inbound
2011-11-08 23:58:10 +01:00
Steve Fink
a2aaea2361
indent the #ifdef tree for readability (no bug, r=firebot)
...
--HG--
extra : rebase_source : 3113540e5c9f1fc39e6f195d69899f795e964445
2011-11-08 13:08:43 -08:00
Steve Fink
d6f2210311
Bug 687102 - Check line2pc, pc2line argument range (r=cdleary)
...
--HG--
extra : rebase_source : a746956e36e1ecb24b540c25f3e5716e67fee152
2011-09-16 16:00:00 -07:00
Terrence Cole
cf9f5a30ad
Bug 697322 - Add easier to use reset method to CallReceiver; r=luke
...
All users of InvokeArgsGuard that use calleeHasBeenReset use it before
setting a new callee/this in a loop. We should make it easier to use
by combining the reset with the setup with the setting of the new
callee.
2011-11-08 10:17:25 -08:00
Jeff Walden
ba27c4052c
Bug 699227 - Change ParseNode::getKind() to use a type separate from TokenKind, for greater clarity. r=jorendorff
...
--HG--
extra : rebase_source : a7a0f9028f6094a29f013aafd1eeea4b22d08fa2
2011-10-28 16:06:14 -07:00
Jeff Walden
6e3535c115
Bug 697795 - Replace TOK_ASSIGN with separate kinds for each op it covers. r=cdleary
...
--HG--
extra : rebase_source : 00422b0c005bfbed5ad214f6d37463e4ffb56acf
2011-10-26 01:15:51 -07:00
Jeff Walden
23226e477d
Bug 697795 - Replace TOK_PRIMARY with separate kinds for each op it covers. r=cdleary
...
--HG--
extra : rebase_source : 170789e91bb378baf735fb99571924af83198514
2011-10-25 23:52:39 -07:00
Jeff Walden
03b0c32b0e
Bug 697795 - Replace TOK_DIVOP with TOK_DIV and TOK_MOD. r=cdleary
...
--HG--
extra : rebase_source : 17f89d9f41b9bab4ed12060d52b99aec3619ab15
2011-10-25 23:51:52 -07:00
Jeff Walden
5e239d4d6e
Bug 697795 - Replace TOK_SHOP with separate kinds for each op it covers. r=cdleary
...
--HG--
extra : rebase_source : 0b688db6762213793f1db7ac7916e11bff58a73a
2011-10-25 23:51:50 -07:00
Jeff Walden
25f9c34660
Bug 697795 - Replace TOK_RELOP with separate kinds for each op it covers. r=cdleary
...
--HG--
extra : rebase_source : bdc26f48b7915209567c9223718f4e47311a90af
2011-10-25 23:51:28 -07:00
Jeff Walden
bf60cd4ced
Bug 697297 - Replace TOK_UNARYOP with separate kinds for each op it covers, in both the tokenizer and in the parser (with different semantics in each!). r=dherman, r=cdleary
...
--HG--
extra : rebase_source : 8aca4520370b8ad3f5c0e7cb11e77fa9f486d9be
2011-10-25 16:04:48 -07:00
Jeff Walden
f2397b762a
Bug 697179 - Remove initializers from almost all TokenKind enumerations. Yay for simpler, more easily maintained code! r=cdleary
...
--HG--
extra : rebase_source : 1fd7105bba011f098e777387346702852da646aa
2011-10-25 16:03:53 -07:00
Jeff Walden
1a9c4fadb3
Bug 697179 - Split out appending behavior from js::ParseNode::newBinaryOrAppend into a new method, for a simpler-to-read algorithm. r=cdleary
...
--HG--
extra : rebase_source : 4788600a32be4d9dde31b218c5d45fda6cc426de
2011-10-24 19:39:20 -07:00
Jeff Walden
a76b915802
Bug 697175 - Replace TOK_EQOP with separate kinds for each op it covers. r=cdleary
...
--HG--
extra : rebase_source : 71724c457d5563e67931a355ce5f93504f97a280
2011-10-24 19:39:20 -07:00
Kyle Huey
3d9ef7dc9c
Back out Bug 687511 since it doesn't work in pymake.
2011-11-08 11:49:54 -05:00
Joey Armstrong
9c7282ae77
bug 687511 - edits allowing make-makefile to be run from sandbox root. Unit tests added - r=khuey
2011-10-24 09:59:39 -04:00
Boris Zbarsky
25cec39950
Bug 699826. Fix nodelist access out of bounds to correctly forward to the proto. r=peterv
2011-11-08 07:59:38 -05:00
Luke Wagner
cad36b0123
Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
...
--HG--
extra : rebase_source : f18561fff556332789e05623ab0cec2e7faacf78
2011-07-01 14:11:31 -07:00
Ed Morley
5eaf370364
Bug 700166 - Hg rm dom/interfaces/threads/ since it's no longer built; r=bent
2011-11-07 15:44:11 +00:00
Peter Van der Beken
38efb60d36
Bug 699796 - Note objects holding JSScript as roots in the CC. r=igor.
...
--HG--
extra : rebase_source : 68ef72cd709aed89ee6a1cc30bd6079d3e1ddf3d
2011-11-07 13:57:46 +01:00
Peter Van der Beken
8d5dca787e
Bug 695867 - Crash [@ LookupPropertyById] with getPropertyDescriptor returning a NodeList. r=bz.
...
--HG--
extra : rebase_source : 7647c232594ab918b9c4488e8cb56d77dfea9b42
2011-10-27 19:31:37 +02:00
Peter Van der Beken
087de76d53
Bug 684938 - Proxy nsXPCWrappedJS::Release to the main thread. r=mrbkap.
...
--HG--
extra : rebase_source : faf9c46616c52bc03b776a4aae8fd3f87e11f132
2011-09-14 08:44:27 -07:00
Peter Van der Beken
2c7841a5b9
Bug 697643 - Crash [@ JS_IsExceptionPending] modifying a live NodeList. r=bz.
...
--HG--
extra : rebase_source : 1d2e5e17c76a04a88468d976e89576d127e4e54f
2011-10-27 19:39:03 +02:00
Jason Orendorff
5a2478b22d
Comment out busted assertions. See bug 695922. r=red.
2011-10-19 18:56:35 -05:00
Jason Orendorff
2294005e86
Follow-up for bug 695752. Fix "error: extra ';'" and "warning: empty macro arguments are undefined in ISO C90 and ISO C++98" (this broke maemo). r=red.
2011-10-19 18:36:19 -05:00
Nicholas Nethercote
2eeb850544
Bug 685783 - Take advantage of slop bytes in js::Vector. r=luke.
2011-10-19 16:19:06 -07:00
Jason Orendorff
5169ca2c72
Bug 695752 - Part 3 - class ParseNodeAllocator. r=luke.
...
--HG--
extra : rebase_source : 28452c60079a18e5c872317f4ab32e4216215fc9
2011-10-19 16:45:05 -05:00
Jason Orendorff
b47b741943
Bug 695752 - Part 2 - Add Parser::new_ methods for creatinng parse nodes. r=luke.
...
--HG--
extra : rebase_source : 9978265f81e72929f55a78da55250a431c64c041
2011-10-19 16:44:18 -05:00
Jason Orendorff
1003b261e4
Bug 695752 - Part 1 - Give js::ParseNode a constructor. r=luke.
...
--HG--
extra : rebase_source : 562e58afb9f00d8f4ba73989a6a0e779d3d8000b
2011-10-19 16:43:21 -05:00
Jason Orendorff
5105838e7c
Bug 695549 - Rename almost everything in the JS front end. Part 4, rename js::Compiler to js::BytecodeCompiler and fix up old comments referring to jsparse.c etc. r=luke.
...
--HG--
extra : rebase_source : f1f7d634b48e3cd2cdae15c02cbb1903151e49be
2011-10-19 09:51:04 -05:00
Jason Orendorff
50e34b7d27
Bug 695549 - Rename almost everything in the JS front end. Part 3, rename tokenizer global functions and put them in the js namespace. r=luke.
...
--HG--
extra : rebase_source : f5f96588fc824cc4b2462b56872905deddee012b
2011-10-19 09:43:36 -05:00
Jason Orendorff
c68a88cbcd
Bug 695549 - Rename almost everything in the JS front end. Part 2, rename emitter global functions and put them in the js::frontend namespace. r=luke.
...
--HG--
extra : rebase_source : eac14a2379edf70c4e9df4045f432b4a15ed64f0
2011-10-19 09:42:06 -05:00
Jason Orendorff
617b407afb
Bug 695549 - Rename almost everything in the JS front end. Part 1, rename types and put them in the js namespace. r=luke.
...
--HG--
extra : rebase_source : 13efff29e9afb428f4a7658f0a0051f2e501dc15
2011-10-19 09:35:52 -05:00
Jeff Walden
266d25fdc1
Bug 656059 - Initialize a bunch of variables which some versions of gcc (but not 4.6.1) think might be used uninitialized. Technically none need to be, but this code isn't hot, so no reason not to just initialize and move on. r=warnings
2011-10-19 14:28:14 -07:00
Jeff Walden
dc5a9f3316
Bug 656059 - Ask for specific original prototypes in much of jstracer.cpp, not through a generic JSProtoKey-keyed interface. r=jorendorff
...
--HG--
extra : rebase_source : 9e6973a708ccbdd4785ef67fd6536c3f46c3dbb3
2011-05-10 14:56:49 -07:00
Jeff Walden
49b1d699b4
Bug 655907 - Start adding GlobalObject-specific methods to get Object.prototype, Function.prototype, and a few others, and use them where it's easy to do so. r=jorendorff
...
--HG--
extra : rebase_source : efa30ea3ba9cf3a90117f9b9119d140e516cbb62
2011-05-09 13:06:53 -07:00
Jeff Walden
098d025bcc
Bug 694210 - Fix regressions from bug 668024 landing: first a forgotten check for denseness exceeding 2**32 - 1, second for a performance regression from an optimization condition that doesn't hold often enough and bit kraken-stanford-crypto-sha256-iterative. r=bhackett
...
--HG--
extra : rebase_source : a349dc1fd236d96a67c807ce174b2742130d047d
2011-10-17 11:10:43 -07:00
Jeff Walden
5c5308cfad
Bug 692333 - Split setProperty into property and generic forms, and use them throughout the engine. r=bhackett
...
--HG--
extra : rebase_source : 9239eb648466f929733428eb1a18bb0c0af51506
2011-10-05 17:16:25 -07:00
Jeff Walden
8b4270b28b
Bug 692039 - Split defineProperty into property and generic forms, and use them throughout the engine. r=bhackett
...
--HG--
extra : rebase_source : dce725d8771e2737f1a7059dc1698cc1b0814cd0
2011-10-05 01:00:23 -07:00
Jeff Walden
32f38cb2bb
Bug 691993 - Split deleteProperty into property and generic forms, and use them throughout the engine. r=bhackett
...
--HG--
extra : rebase_source : a69ce113bb0f1787b10f203912bc95d9b9026c49
2011-10-04 17:49:57 -07:00
Jeff Walden
3cd5da43d5
Bug 691992 - Split getAttributes and setAttributes into property and generic forms, and use them throughout the engine. r=bhackett
...
--HG--
extra : rebase_source : ab383bf621c212424db6c0f358b6dd2c31443b68
2011-10-04 17:21:06 -07:00
Brian Hackett
0612add764
Fix bogus assert, bug 685472. r=dvander
2011-10-19 08:25:50 -07:00
Brian Hackett
82f85ed701
Fix --disable-tracejit build.
2011-10-18 14:50:35 -07:00
Bill McCloskey
52c3cb2132
Bug 695213 - Add total time to MOZ_GCTIMER output.
2011-10-18 14:03:51 -07:00
Bill McCloskey
e9e02c73ec
Bug 695493 - Fix JM opcode spew.
2011-10-18 14:03:40 -07:00
Jason Orendorff
0f76e5ab72
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
b001b60a02
Add Array.concat stub for concatenating known dense arrays, bug 692960. r=dvander
2011-10-18 11:24:28 -07:00
Brian Hackett
9c5cfe112f
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
Dave Herman
3fd52e982f
Bug 695238 - Reflect.parse should throw when an object literal is missing a property RHS. r=jorendorff
2011-10-17 21:09:56 -07:00
Blake Kaplan
fcc6580746
Bug 665279 - Resolve interface constants properly through Xray wrappers. r=peterv
2011-09-21 19:16:50 -07:00
Jason Orendorff
22883838ca
Fix breakage from rev 31b5cad155fb (bug 695097). r=red.
2011-10-17 17:47:37 -05:00
Jason Orendorff
9faab81d05
Bug 695097 - Split up frontend/Parser.{h,cpp}. r=luke.
...
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/frontend/Parser.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/ParseNode.h
2011-10-17 16:54:30 -05:00
Jason Orendorff
1102691b89
Bug 695094 - Move js{scan,parse,emit}.{h,cpp} into js/src/frontend/. r=luke.
...
--HG--
rename : js/src/jsemit.cpp => js/src/frontend/CodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/CodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsscan.cpp => js/src/frontend/TokenStream.cpp
rename : js/src/jsscan.h => js/src/frontend/TokenStream.h
2011-10-17 16:54:28 -05:00
Jeff Walden
b0a6a72b75
Bug 693100 - Fix "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]" with gcc 4.6.1 in SpiderMonkey. r=dvander
...
--HG--
extra : rebase_source : 92f3e6f79a27b3a83dec63d5c745c97453937889
2011-10-17 14:33:32 -07:00
Nathan Froyd
ab4cf36056
Bug 695025 - don't use false when we really mean NULL; r=luke
...
--HG--
extra : rebase_source : 6ea45cafa2dda181e1d8c43321a727a2b0bfd550
2011-10-17 12:38:08 -04:00
Brian Hackett
2db12b04ff
Don't disable ICs on error paths, bug 694200. r=dvander
2011-10-17 14:23:40 -07:00
Brian Hackett
84f4720fa0
Bail out from compilation if an OOM was triggered during type inference, bug 693961. r=dvander
2011-10-17 14:18:23 -07:00
Chris Leary
0f159aabc9
Bug 694752: Test JSOP_REGEXP inline path on recompilation. (test only)
...
--HG--
extra : rebase_source : 16c8cbb20b028af184114c2dcdf288209f94755d
2011-10-15 20:57:08 -07:00
Andrew McCreight
b15127b229
Bug 680482, part 2 - change debug string for grey globals to help analysis scripts. r=mrbkap
2011-10-20 09:26:49 -07:00
Andrew McCreight
ec7a7e0cdd
Bug 680482, part 1 - add new js::DumpHeapComplete to dump the entire heap. r=billm
2011-10-20 09:25:31 -07:00
Peter Van der Beken
34fc1ec4a5
Fix for bug 693258 (Fixes for test failures when turning off new list DOM bindings). r=bz/Waldo.
...
--HG--
extra : rebase_source : f0b6f8443cc29098ce75c114ff5a343597d9f38c
2011-10-13 15:36:09 +02:00
Matheus Kerschbaum
c5e0ed5349
Bug 694722 - Remove support code for obsolete platforms from js/src/Makefile.in r=ted
2011-10-20 09:57:36 +02:00
jhorak@redhat.com
f0c25c3b32
Bug 694261 - link xpcshell against jemalloc on ia64. r=bz
2011-10-20 09:55:18 +02:00
Tom Schuster
8ed9e04910
Bug 698584 - Fix crash in RegExp.test in case of OOM. r=mrbkap
2011-11-06 16:29:33 +01:00
Bobby Holley
945e130b39
Bug 677788 - Remove use of length_is xpt value from gecko. r=mrbkap
2011-11-06 13:32:25 +01:00
Bobby Holley
7718872fbb
Bug 677788 - Remove array/string 'capacity' argument from XPCConvert. r=mrbkap
...
Because length_is duplicates size_is, 'capacity' is just an alias for 'count'.
2011-11-06 13:32:25 +01:00
Bobby Holley
6ff068db60
Bug 691781 - Generate IDL lexer and parser as part of the build system. r=khuey
2011-11-06 13:32:25 +01:00
Ed Morley
6a998be2c5
Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail
2011-11-05 18:35:59 +00:00
Terrence Cole
e03c32f96e
Bug 670596 - Mark ununused arenas as decommitted; r=?,njn
...
This patch tells the OS which pages we are not using after we do a GC_SHRINK.
The result is that the OS can do a better job managing memory, send less to
swap and will not count these pages against us in RSS.
2011-10-11 18:37:40 -07:00
Steve Fink
1c12901db7
Bug 625639 - fix XPCConvert error handling (r=mrbkap)
2011-10-28 12:35:35 -07:00
Steve Fink
b95b3b3be6
Bug 693907 - Once Upon a JSAPI (move JS_CallOnce from jslock.cpp to jsapi.cpp) (r=waldo)
...
--HG--
extra : rebase_source : 718fa503c0b73f0a4a94f50f28bc4a7981ef4202
2011-10-11 21:52:36 -07:00
Tom Schuster
3f3cf270f9
no bug - Add 0 add the end of a char array rs=waldo
...
--HG--
extra : rebase_source : f0f7051cbb7842da215bf3163db49c68ada60bc3
2011-11-04 23:49:56 +01:00
ABE Hiroki
32178e822e
Bug 675593 - Fix nspr4!1.pgc path mistake on NSPR PGO build (m-c part); r=ted
2011-11-04 21:26:53 +00:00
Rail Aliiev
364e83c545
Bug 616542 - Shorten file path length of mochitest; r=ted
2011-11-04 21:13:42 +00:00
Boris Zbarsky
de30d4c687
Bug 698495 followup: deal with uint32 being inconsistently defined by JS and NSPR in ways that break the Win64 build. r=waldo pending
2011-11-04 13:57:39 -04:00
Tom Schuster
b64fec24e6
Backout 8b394bdb306f because of test failures
2011-11-04 18:50:09 +01:00