Commit Graph

14664 Commits

Author SHA1 Message Date
Bill McCloskey
27012c858d Bug 672112 - Remove PICTable optimization from tracejit (r=cdleary) 2011-07-22 09:58:25 -07:00
Jeff Walden
4641c09f96 Bug 645464 - js::ClassMethodIsNative doesn't return false when the object has a property of the given name which isn't the specified native method. r=luke
--HG--
extra : rebase_source : a9c6944975bec3b155dc537733643e0faa5f6b0b
2011-03-28 19:27:14 -07:00
Jeff Walden
eba19e34f0 Remove the unused js_CoerceArrayToCanvasImageData. rs=luke
--HG--
extra : rebase_source : 040d3f596b2dcc1fa38c77d9cf16c484e252a243
2011-06-09 01:12:28 -07:00
Jeff Walden
7f7f1141f6 Bug 663331 - Make U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR match the LineTerminator production when parsing code. r=njn
--HG--
extra : rebase_source : 9d6c02d03a5631e90b06fed4394d3867e5a29d5f
2011-06-10 11:22:06 -07:00
Jeff Walden
44a8747e80 Bug 663300 - Treat \u not followed by four hexadecimal digits, or \x not followed by two hexadecimal digits, as syntax errors in string literals. r=njn
--HG--
extra : rebase_source : 78f37bc91e44598ba99c1983b65b8627bed876b5
2011-06-10 11:21:57 -07:00
Jeff Walden
190c5e9bc0 Bug 662231 - Stop installing the jsnum.h header (again). r=jimb
--HG--
extra : rebase_source : 23bfbf1d8d10ed3efd501338b65e509b1344ae26
2011-06-08 16:50:23 -07:00
Chris Leary
f819c3428e Merge mozilla-central and tracemonkey. 2011-06-13 10:00:23 -07:00
Ted Mielczarek
a88f0715f0 merge m-c and b-s 2011-06-13 09:09:43 -04:00
Ed Morley
223c46b36b Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
Daniel Holbert
4eba537fff Bug 662086: Convert recently-added comment in jsval.h to be C-style, to fix build warning. r=mrbkap DONTBUILD 2011-06-11 17:28:48 -07:00
Ms2ger
a2b407958f Bug 660433 - Remove nsIDOMNSHTMLTextAreaElement; f=volkmar r=peterv 2011-06-11 09:52:24 +02:00
Chris Leary
b7aeb38134 Bug 660453: Proper regexp bytecode deallocation. (r=dmandelin) 2011-06-09 14:48:03 -07:00
Ted Mielczarek
c7f40506bf merge m-c to b-s 2011-06-10 12:58:21 -04:00
Nicholas Nethercote
5b874aa38c Bug 662963 - Add JSString::charsHeapSize(). r=luke. 2011-06-09 09:20:12 +10:00
Jim Blandy
3b47d4d410 Bug 599764: Define jsval in terms of a type we control, not a type defined, depending on circumstances, by either NSPR or our own headers. r=luke 2011-06-08 12:14:58 -07:00
Jim Blandy
3b7ea5d45a Bug 662836: Don't require JS_EvaluateUCScriptInStackFrame to be able to extend call objects that the bytecode compiler didn't expect to be extensible. r=dvander 2011-06-08 12:10:39 -07:00
Makoto Kato
5e8a381066 Backed out changeset c25968f1f4f0 2011-06-08 15:56:43 +09:00
Makoto Kato
f96bf9011f Bug 635617 - 64-bit crash [@ MakeDay]. r=jwalden 2011-06-08 10:41:37 +09:00
Kyle Huey
08c7819893 Fix MSVC warning. 2011-06-07 17:17:30 -07:00
Blake Kaplan
96c422f69a Bug 662114 - Don't use DummyFrameGuard directly to avoid Windows DLL-linkage warnings. r=luke
--HG--
extra : rebase_source : 8ef14ff1cecaa7f426adc55b3a1ad205f00d0b8c
2011-06-07 19:43:18 -04:00
Brendan Eich
f567b76676 Strict mode early error (strict option warning) on assignment to declared const (383902, r=jwalden). 2011-06-07 16:24:33 -07:00
Steve Fink
dc5fdefaa0 Bug 637393 - Give JSScript control over the lifetime of JSPCCounters, to allow freeing with cx (r=dmandelin)
--HG--
extra : rebase_source : 9e94ec8506bc3aac28c1dd0ef5b9047e33ff6e8d
2011-06-06 16:48:20 -07:00
Kyle Huey
2e0d728356 Merge m-c to b-s. 2011-05-31 15:29:32 -07:00
Jonathan Protzenko
39aa116d95 Bug 658351 - Add extra assertions to jsval.h to check for malformed JSBools r=mrbkap 2011-05-31 20:18:21 +02:00
Mitchell Field
5e5f1a616a Merge mozilla-central to build-system. 2011-05-29 14:10:30 +10:00
Blake Kaplan
e25afea942 Disable this test on Android as well since it's broken in Electrolysis. r=vingtetun 2011-05-24 11:21:42 +02:00
Ed Morley
d2d7cf35c3 Bug 591611 - Clean up FIREFOX_VERSION handling; r=khuey 2011-05-28 14:33:07 +02:00
Ms2ger
35e44f908f Bug 659113 - Remove nsIDOMNSHTMLDocument; r=bz 2011-05-28 09:43:57 +02:00
Ms2ger
b171b9ae5c Bug 658906 - Remove nsIDOMNSDocument; r=sicking 2011-05-28 09:43:53 +02:00
Michael Wu
d064b6eefe Backed out changeset eaa69ae330ab (bug 592943) for extensions bustage 2011-05-28 00:15:25 -07:00
Mitchell Field
d0794ce6a8 Merge mozilla-central to build-system. 2011-05-15 16:07:45 +10:00
Masatoshi Kimura
2a8de1f5f6 Bug 508905 - /Zc:wchar_t- is no longer required 2011-05-12 12:02:54 +00:00
Steve Fink
4fe2a2b264 Bug 637393 - Add a -D option to the shell to disassemble all scripts, with per-op per-runmode execution counts, at shutdown
--HG--
extra : rebase_source : da191562758eb5dc64e76be79d55a09153cce391
2011-05-10 11:26:39 -07:00
Steve Fink
f944ff55d2 Bug 637393 - Add JS_DumpProfile, JS_DumpAllProfiles to disassemble one or all scripts' along with execution counts of each op
--HG--
extra : rebase_source : 58afddcf73ded6505fabe3ef42495faa5cb6915a
2011-05-10 11:26:39 -07:00
Steve Fink
e760bcc0f4 Bug 637393 - Add an option to count number of executions of each JSOp, broken down by "run mode" (method JIT/trace JIT/interpreter)
--HG--
extra : rebase_source : ba9a916197f8c2e449b3096f1c31fe2b154feef4
2011-05-10 11:26:39 -07:00
Luke Wagner
0d7bf8cc22 Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
--HG--
extra : rebase_source : 756a640568464d11fe6bb00104a2fdb6f6d02d02
2011-05-13 08:56:26 -07:00
Luke Wagner
67af97e094 Bug 656462, part 3 - Syntactic touchups (r=waldo)
--HG--
extra : rebase_source : 7a81c352a96b9e23fc8f7bee5cb1d095c5cdb998
2011-05-24 16:08:40 -07:00
Luke Wagner
fe7b0581ce Bug 656462, part 2 - Merge ContextStack::get* and push* operations (r=waldo)
--HG--
extra : rebase_source : bdc7a7ba9ee21435a20e77bf6cea8c4d34a840c9
2011-05-24 16:04:18 -07:00
Luke Wagner
78dc696e0e Bug 656462, part 1 - Remove StackSegment::initialVarObj (r=waldo)
--HG--
extra : rebase_source : 54ae58bec51c4c7fcc58db2148167be828dda8a3
2011-05-24 15:05:30 -07:00
Jeff Walden
f63e8d0dc3 Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones 2011-06-06 11:02:34 -07:00
Jeff Walden
9ed41bbdc2 Bug 657367 - Don't attempt to use the JSON parser to fast-path eval if the eval code contains either U+2028 or U+2029, which JSON permits within strings but which JavaScript doesn't permit in strings. (In case you missed it, this means that there's no subset relationship between JavaScript and JSON. (!)) r=njn
--HG--
extra : rebase_source : 5dfa4da6ec6b2238bc6e0e36bc349c9fabcbfd19
2011-06-03 16:53:31 -07:00
Nicholas Nethercote
a1825387bc Bug 645598 - Trim last bits of fat from the scanner, part 3 of 3. r=jwalden. 2011-06-07 13:48:55 +10:00
Nicholas Nethercote
af44ef61b4 Bug 645598 - Trim last bits of fat from the scanner, part 2 of 3. r=jwalden. 2011-06-07 13:48:21 +10:00
Nicholas Nethercote
5e87a0c3ea Bug 645598 - Trim last bits of fat from the scanner, part 1 of 3. r=jwalden. 2011-06-07 13:47:12 +10:00
Paul Biggar
33979e422d Bug 660681: Add NULL check to LeaveFunction (r=jimb) 2011-06-06 14:24:11 -07:00
Paul Biggar
118bf3fdae Bug 660670: Report an error on OOM in Parser::analyzeFunction (r=jimb) 2011-06-06 14:24:11 -07:00
Paul Biggar
08fcb0b61d Bug 660638: Add NULL check to Compiler::compileScript (r=jwalden) 2011-06-06 14:24:10 -07:00
David Mandelin
ea7d5ed079 Bug 662165: fix MSVC warning 2011-06-06 13:36:57 -07:00
Chris Leary
278e5141b8 Followup fix for merge, fix ifdef directive. 2011-06-06 09:58:15 -07:00
Chris Leary
f8e0e912ab Merge mozilla-central to tracemonkey. 2011-06-06 09:41:22 -07:00
timeless@mozdev.org
deceb8bf2b Bug 620182 [@ QuoteString | DecompileSwitch] when JSVAL_IS_DOUBLE(key) and SprintDoubleValue fails due to oom
r=jorendorff
2011-06-03 08:57:00 -07:00
Ed Morley
5f60af28bb Bug 316661 - Remove null-checks before delete: Part B; r=pbiggar,brendan,bzbarsky 2011-06-01 03:07:00 -07:00
Alon Zakai
5ea390381e Bug 644241 followup for compiler warning 2011-06-03 18:13:47 -07:00
Alon Zakai
f482160f72 Bug 644241, part 2: Disabling OOMing tests. r=igor 2011-06-03 17:54:30 -07:00
Alon Zakai
2f4274045c Bug 644241, part 1 - Remove script stack quota. r=igor 2011-06-03 17:54:26 -07:00
Chris Leary
ad6cf7c541 Bug 576828: Test self-referential backreference. (r=dmandelin)
--HG--
extra : rebase_source : 42b9319d8e9c5ae48a04e8f9e099ee2ea8d93294
2011-06-03 16:36:42 -07:00
Chris Leary
dae433fed7 Bug 661770: Avoid call overhead atomizing from js_AtomizeChars. (r=njn)
--HG--
extra : rebase_source : 0bcacc47c6171886e6d200c1de093df5aa326e8d
2011-06-03 15:36:07 -07:00
Chris Leary
db8f0665e7 Bug 661770: Make shell's compile builtin compile-and-go. (r=dvander)
--HG--
extra : rebase_source : d6ad31d173ff1b4c115957db23af034d3cee7ba2
2011-05-31 20:38:02 -07:00
Bill McCloskey
f7c5d49018 Bug 660778 - Deal with stack overflow in UnmarkGrayChildren (r=gal) 2011-06-03 13:08:21 -07:00
Nicholas Nethercote
f54b0fa19d Bug 546477 - add explicit/js/stack memory reporter. r=luke. 2011-06-02 19:40:57 -07:00
Phil Ringnalda
0344c24e80 Interim bug 660497 bustage fix, use $(OS_TARGET) until ANDROID is usable as a makefile define 2011-05-28 20:25:30 -07:00
Luke Wagner
6beaae8ad4 Dial down recursion in new test added by abd2dcd555f4 so as to not chew up so much C stack when the mjit is disabled (r=orange) 2011-06-02 18:39:48 -07:00
Luke Wagner
07c939e83e Bug 538293 - remove inlineCallCount and this STACK_QUOTA silliness (r=dvander)
--HG--
extra : rebase_source : 724910c67423b0720ca5c3732699bca4d64324ef
2011-05-27 18:15:39 -07:00
Luke Wagner
a710729944 Bug 656171 - Just remove this mutual subsumption assertion; with document.domain it's not strictly true (r=mrbkap)
--HG--
extra : rebase_source : 78247eba80e9196c929d9136273557faa717407c
2011-06-02 16:35:31 -07:00
Bill McCloskey
c23838f371 Fix jstest timeouts caused by patch for bug 650978 2011-06-02 15:07:01 -07:00
Gregor Wagner
9ce0f0d1ba Bug 660329 - GC: add reason for GC to GCTimer. r=igor 2011-06-02 13:02:21 -07:00
Brian Hackett
a804aa88fe Fix bug 650673, r=dmandelin. 2011-06-02 12:22:39 -07:00
Igor Bukanov
8e11a702b7 bug 656261 - followup to fix compilation warning 2011-06-02 19:36:59 +02:00
Paul Biggar
0a66b46e25 Bug 660668: Fix Shape::search() assertion after OOM (r=nnethercote)
Shape::search() assumes hasTable() will be false if Shape::search() OOMs - make it so.
2011-06-02 10:06:36 -07:00
Paul Biggar
459861e42c Bug 660630: Only error once in OOM in NewCompartment (r=igor) 2011-06-02 10:06:36 -07:00
Paul Biggar
c333f22f78 Bug 660610: Don't double-free execAlloc_ after OOM. (r=nnethercote) 2011-06-02 10:06:36 -07:00
Rafael Ávila de Espíndola
f9339f6813 b=661145, r=bsmedberg Move the function declarations passed to AC_TRY_COMPILE out of the body of main. 2011-06-03 16:34:42 -04:00
Mike Hommey
df686a06f3 Bug 626035 - Modify the way arm compiler flags are set in configure. r=ted 2011-06-03 01:49:28 +02:00
Mike Hommey
1cb5d6d328 Bug 658251 - Fix MK{,C}SHLIB when using wrap-malloc. r=ted 2011-06-03 01:27:07 +02:00
Igor Bukanov
3e2ef6c4ef bug 656261 - better GC arena layout. r=wmccloskey 2011-05-19 21:01:08 +02:00
Bill McCloskey
b902b98248 Bug 650978 - Add gczeal setting to GC on every allocation (r=gwagner) 2011-06-01 17:48:52 -07:00
Bill McCloskey
719f0678e9 Bug 652985 - Use off-the-books malloc in DumpHeap (r=pbiggar) 2011-06-01 17:48:02 -07:00
Makoto Kato
634f7d1946 Bug 660591 - Bug 625600 causes bustage on Win64. r=dmandelin 2011-06-01 14:05:36 +09:00
Justin Lebar
be822c8496 Bug 660930 - Force InlineGetProp to be inlined. r=dmandelin 2011-05-31 19:57:36 -04:00
Igor Bukanov
875a4ed0e8 bug 660430 - do not call the security manager during GC-marking of GC wrappers. r=gal 2011-05-30 21:36:16 +02:00
Luke Wagner
b99eb46ea1 Fix jit_test.py so that -g works again (rs=dmandelin) 2011-05-27 18:19:14 -07:00
Gregor Wagner
cbb17d528d Bug 658041 - Stack based marking for JSRopes. r=igor 2011-05-27 15:17:47 -07:00
David Mandelin
88e2fc9186 Remove some stray Ctrl-M characters 2011-05-27 14:05:05 -07:00
timeless@mozdev.org
c18f5ac818 Bug 619794 DECOMPILE_CODE leaks xval on failure in Decompile
r=jorendorff
2011-05-27 10:58:28 -07:00
timeless@mozdev.org
0333a7ce54 Bug 620251 js_CurrentThread and friends should have AndLockGC in their name
r=jorendorff
2011-05-27 10:58:26 -07:00
timeless@mozdev.org
ba16ed7739 Bug 621153 Add JS_ALWAYS_TRUE markers to ValueToNumber() for cases where it should be so
r=jorendorff
2011-05-27 10:58:22 -07:00
Jan de Mooij
ef0a847b87 Bug 624298 - Add an IC for JSOP_CALLNAME. r=dvander 2011-05-27 13:56:11 +02:00
Luke Wagner
bf3e38e9d2 Bug 656490 - Fix direct-eval assert (r=dmandelin) 2011-05-26 17:23:21 -07:00
David Mandelin
2299c54162 Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
--HG--
extra : rebase_source : 42c6e9594f36fd7320bdea90fdb01c955bf07f4d
2011-05-16 16:17:19 -07:00
Chris Leary
8a58ce9072 Bug 657537: clean up jschar inflation/deflation. (r=Waldo) 2011-05-26 15:50:05 -07:00
Jim Blandy
6f5851edb8 (no bug): Fix comments referring to allocation policies defined in jstl.h --- they're now in jsalloc.h. 2011-05-26 10:55:58 -07:00
Luke Wagner
e25124700b Bug 659462 - remove no-op JS_ClearNewbornRoots and uses in xpconnect (r=mrbkap) 2011-05-13 08:56:25 -07:00
Paul Biggar
a860fb2d95 Bug 634711 - Use nanojit::BitSet instead of avmplus::BitSet. r=nnethercote. 2011-05-25 22:47:49 -07:00
Nicholas Nethercote
0a71cf8b26 Update nanojit-import-rev stamp. 2011-05-25 20:32:19 -07:00
Nicholas Nethercote
d1a041757e Bug 634711: add BitSet::resetAndAlloc(). r=pbiggar.
--HG--
extra : convert_revision : 8eec2117b714ec754c483b681acb3737f63b994c
2011-05-25 19:46:02 -07:00
Makoto Kato
a365c30cae Bug 576247 - asm_stkarg not implemented for x86_64. r=edwsmith
--HG--
extra : convert_revision : 6176f4f11b273ddde0de661a2c2de0d2219515b2
2011-05-25 17:37:27 +09:00
Paul Biggar
998c7234fe Bug 634711 - Remove BitSet implementation from avmplus.h, because it's a duplicate of the one in Containers.h. r=nnethercote.
--HG--
extra : convert_revision : 8bf26319d7f15c6d22d69557d8b6d95ff65cd381
2011-05-23 21:47:43 -07:00
Ed Morley
08e3b18da0 Bug 656017 - Re-remove WinCE ifdef from js/src/vprof/vprof.cpp (was incorrectly added by bug 644900). r=jorendorff.
--HG--
extra : convert_revision : b6b89f27651adcc38be57ef25357ccc1d2e9ea8e
2011-05-23 21:13:06 -07:00
William Maddox
9be8135422 Bug 658389 - Make sure branch and delay slot remain contiguous in function epilogue [chris@mips.com] (r=wmaddox)
--HG--
extra : convert_revision : 9ffbe7d3623c705593139412b82a79ba87786d08
2011-05-23 11:46:21 -07:00
Jacob Bramley
0ebf6f47d9 When NJ back-tracks _nIns in the ARM back-end, back-track _nInsAfter too. [bug 658526] [r=nnethercote]
--HG--
extra : convert_revision : 070ac9dc74702ec0658384b0ec2c44cfe10d3fdd
2011-05-23 11:37:47 +01:00
Rick Reitmaier
778c1c64ce Bug 609393 - resourceConsistencyCheck x87 stack assert can fire (r+wmaddox)
--HG--
extra : convert_revision : 87a15611dc195b0f520299c6f5f317f779eb31ba
2011-05-20 16:01:11 -07:00
David Mandelin
216d4906f0 Bug 625600 followup: attempt to fix Android build 2011-05-25 14:50:59 -07:00
David Mandelin
508233ea30 Backout merge 2011-05-25 14:50:23 -07:00
David Mandelin
bd6d662fa8 Backed out changeset 6f4ca81b13d5 -- was temporary diagnostic 2011-05-25 14:50:07 -07:00
David Mandelin
4a0a44b095 Diagnostic for failing Android build 2011-05-25 13:27:24 -07:00
Tom Schuster
34b477e3fa Bug 608823. Speed up bitops on doubles. r=dvander 2011-05-25 16:26:26 -04:00
Igor Bukanov
19e8c49c32 bug 658864 - preventing GC when reporting OOM on other threads. r=anygregor
--HG--
extra : rebase_source : 611b09f30000688eba161b12803b1ca44d7adbab
2011-05-22 20:50:08 +02:00
Ehsan Akhgari
fd57a9f752 Merge mozilla-central into mozilla-inbound 2011-06-09 18:29:16 -04:00
Ed Morley
8d9b7f227d Bug 659997 - Remove typo'd ENVIRONMENT_MAC_OS_X_VERION_MIN_REQUIRED define; r=ted 2011-06-09 12:10:42 -07:00
Ehsan Akhgari
1601471f11 Merge mozilla-central into mozilla-inbound 2011-06-09 09:26:52 -04:00
Peter Van der Beken
ae44770a16 Fix for bug 658632 (Provide easy way to add non-leaky classinfo to JS components). r=gavin.
--HG--
extra : rebase_source : 8463c6f8ba1f969278d4e33bfa08495fa3e36071
2011-05-25 10:46:51 +02:00
Rafael Ávila de Espíndola
eb595ddfc3 Bug 657653. Check for libstdc++ versions in stdc++compat.cpp; r=ted,glandium 2011-06-08 22:35:24 -04:00
Jeff Walden
87ccff3aa5 Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones 2011-06-06 11:02:34 -07:00
Jonathan Protzenko
6e0a823a8a Bug 658351 - Add extra assertions to jsval.h to check for malformed JSBools r=bz 2011-06-07 20:05:08 +02:00
Mook
c671b3dec1 bug 651663 - mark TestXPC global class as JSCLASS_GLOBAL_FLAGS (r=jorendorff) 2011-04-20 15:19:43 -07:00
Ms2ger
941e819c63 Bug 616684 - Remove support for DOM Views; r=sicking,ehsan 2011-04-24 08:54:25 +02:00
Chris Jones
ed22df8f64 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Justin Lebar
7af0c522be Bug 590181 part 2 - Switch default gcc optimize options to -O3. r=ted. a=philor CLOSED TREE 2011-04-28 15:49:16 +02:00
Olli Pettay
744a48fa95 Bug 652814 - Rename nsIDOMTouchPoint to nsIDOMTouch (and a *aRetVal = nsnull for bug 648573 comment 19), r=mbrubeck 2011-04-27 14:58:25 +03:00
Steve Fink
4174affffa bug 637136 - const-ify JS_ON_TRACE (r=luke)
--HG--
extra : rebase_source : a275648b51b33b166087c3a8ab8a1b51e8b97bcf
2011-03-24 23:47:48 -07:00
Luke Wagner
815d718d1e Bug 668261 - Change EvalInContext to not clobber callee early; don't propagate rval on js::Execute failure so that rval-clobbering callers don't trigger assert (r=waldo)
--HG--
extra : rebase_source : ba03185f711e4f459b629b9c45162da5ace945fe
2011-06-30 09:26:42 -07:00
Luke Wagner
3ba259d091 Bug 667824 - Make tracer match changes to JSOP_CALL (r=waldo)
--HG--
extra : rebase_source : ff0c504b824963433b6b8195804c42f241fa9175
2011-06-30 09:23:15 -07:00
David Mandelin
04e76bd7d7 Bug 660371: report regexp syntax errors as compiler errors when appropriate, r=cdleary 2011-06-27 18:53:26 -07:00
Jim Blandy
e107c04e19 Bug 667126: Allow WeakMaps where the criterion for retaining an entry does not imply that the entry's key has been marked. r=jorendorff
This patch replaces the 'markKey' and 'markValue' member functions of the
MarkPolicy template parameter with two functions:

- markEntryIfLive determines if a map entry should be retained, and, if so
  ensures its key and value have been marked.
- markEntry simply marks an entry's key and value, unconditionally.

The comments describe these in more detail.
2011-06-29 02:27:47 -07:00
Jim Blandy
7134b29a2e Bug 627859: Use the standard placeholder-making function when re-scoping variable references in generator 'yield' expressions. r=brendan
CompExprTransplanter::transplant did a bunch of bespoke pointer-fiddling to
take the free variable references in the 'yield' expression and re-scope
them within the comprehension tail clauses. That code incorrectly
constructed placeholders for function references; this was fixed in bug 576847.

However, it would also work to simply use the same placeholder construction
function everybody else does. This patch makes it so.
2011-06-29 02:11:08 -07:00
Nicholas Nethercote
6af272b7e5 Update nanojit-import-rev stamp. 2011-06-29 10:33:21 +10:00
Daniel Holbert
981e7fbcd5 Bug 666480: Remove set-but-not-used variable 'priorIns' from LIR.cpp. r=wmaddox
--HG--
extra : convert_revision : 4cc8b8ebd44b989e08935ed8ffae7e9cb4eb4ae9
2011-06-29 09:57:01 +10:00
Dave Herman
324dbe8390 Bug 590973 - Reflect.parse(): expose to chrome as a toolkit component (r=gal) 2011-06-28 10:57:16 -07:00
Jeff Walden
1bfc2c45f1 Bug 667646 - fun.caller should be null, not undefined, when fun is being called by global code. r=evilpie 2011-06-27 15:57:50 -07:00
Jeff Walden
d938b446a3 Remove a superfluous #include "jstypedarray.h" from nsXPConnect.cpp. No bug, r=driveby 2011-06-27 15:55:12 -07:00
Jeff Walden
1a51bb7cb1 Bug 645922 - Remove nsIJSON.encode/decode, because their functionality is subsumed by JSON.parse and JSON.stringify, and their idiosyncrasies are hindering code improvements. Also remove js_TryJSON and JS_TryJSON, which are no longer used after these changes and have no clear use cases. r=brendan, r=jst 2011-03-28 19:27:15 -07:00
Jeff Walden
033bbeebcd Bug 667538 - Crash accessing Function.caller or Function.arguments when no script is running. r=evilpie 2011-06-27 13:36:11 -07:00
Jeff Walden
450815b5d9 Bug 646574 - dis() is broken when the function being disassembled has upvars. r=mrbkap 2011-06-24 18:03:04 -07:00
Dave Herman
498bc96281 Bug 630897 - Reflect.parse(): catch clauses should always be an array (r=jorendorff) 2011-06-27 20:47:48 -07:00
Blake Kaplan
34b8ccdde8 Fix bustage from bug 634156. 2011-06-27 18:16:27 -07:00
Blake Kaplan
5e77cf86d0 Bug 660797 - Don't accidentally lift the prototype property onto the element itself. r=jorendorff
--HG--
extra : rebase_source : 7346e0a482af18b7c2ead77a423030e180241cad
2011-06-16 16:39:45 -04:00
Blake Kaplan
9f1a75137b Bug 634156 - Come up with a way of creating an API in content that exposes real content objects without using a sandbox. r/sr=jst/mossop/gal
--HG--
extra : rebase_source : c3ca469ff33d099b51e140d0a274113884507a03
2011-05-03 13:43:08 -07:00
Dave Herman
f823587beb Bug 667131 - crash: 'yield' unnoticed due to calling maybeNoteGenerator() too late (r=cdleary) 2011-06-27 15:38:10 -07:00
Chris Leary
76a694fdab POD trait for |long long| family, attempt to rambo Winx64 back to life. (rs=luke) 2011-06-27 15:00:17 -07:00
Chris Leary
18d9f54ae4 Bug 667504: Allow atom declaration updates in linked list form. (r=luke) 2011-06-27 14:02:09 -07:00
Steve Fink
457647eddb Test for bug 638178 - new feature getExecutableLines (r=timeless)
--HG--
extra : rebase_source : d29194bf998a6dfcb2fadd5e2186d4d64396bd6f
2011-03-03 10:11:54 -08:00
Steve Fink
715faebf0e Bug 638178 - Add jsdIScript.getExecutableLines for fast identification of breakable lines (r=timeless)
--HG--
extra : rebase_source : a7d66e9ec47ccedfdf1abc3c1d339629c7eb5f3d
2011-03-03 10:11:54 -08:00
David Mandelin
4e818e3c46 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
098ec8fea9 Backed out changeset 10b4c261e3d0 -- Tracemonkey tinderbox is stricter than try 2011-05-25 08:53:26 -07:00
David Mandelin
64fee2ad60 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander
--HG--
extra : rebase_source : 80887364e39608eadb947d77ff80725642e41f31
2011-05-12 18:39:47 -07:00
Jan de Mooij
34004d56cb Bug 658968 - Don't clobber Registers::ReturnReg in emitStubCmpOp and jsop_relational_double. r=dvander 2011-05-25 16:59:32 +02:00
Paul Biggar
ec235df94c Bug 651595: Reinstate call to JSSourceHandler registered with JS_SetSourceHandler (r=dmandelin) 2011-05-25 06:48:11 -07:00
Steve Fink
093e050f1b Backout 8d39d7a5b85c 2011-05-24 16:53:07 -07:00
Steve Fink
d4de79130b Backout 6358f05bdd6d 2011-05-24 16:52:46 -07:00
David Mandelin
e60ba13e9e Bug 655368: Use Spidermonkey delete methods, r=gal 2011-05-24 15:05:55 -07:00
Steve Fink
72421370af Test for bug 638178 - new feature getExecutableLines (r=timeless) 2011-03-03 10:11:54 -08:00
Steve Fink
baaa9a6514 Bug 638178 - Add jsdIScript.getExecutableLines for fast identification of breakable lines (r=timeless) 2011-03-03 10:11:54 -08:00
Steve Fink
4cc660c2ff Fix comment referring to "main thread" (r=comment-only) 2011-05-20 15:08:23 -07:00
Igor Bukanov
e41886ec1e bug 658510 - eliminating JSCOMPARTMENT_NEW and associated compartment initialization race. r=mrbkap 2011-05-22 12:09:28 +02:00
Blake Kaplan
1f0061e893 Bug 657292 - Don't create Xray wrappers in debugger compartments. r=gal 2011-05-24 11:33:44 +02:00
Blake Kaplan
2a476969e1 Disable this test on Android as well since it's broken in Electrolysis. r=vingtetun 2011-05-24 11:21:42 +02:00
Blake Kaplan
3065a0b71f bug 658560 - Don't call WaiveXray on an object that's already in the right compartment as that will leak the WaiveXrayWrapperWrapper to the calling JS code. r=gal
--HG--
extra : rebase_source : 0fba697513ca5cd0984ed3999a7a8df7f005b343
2011-05-23 17:20:28 +02:00
David Mandelin
46408c2ec4 Backed out changeset 119f17b3f03a -- still failing TB 2011-05-23 17:54:42 -07:00
David Mandelin
83c9f9dee2 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
d52fa2f1b8 Backed out changeset 195f8cf8758f due to ARM bustage 2011-05-23 14:49:33 -07:00
David Mandelin
e60b7b472a Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
37887345d9 Backed out changeset de6dfe16fd91 due to Linux/Mac build bustage 2011-05-23 14:22:03 -07:00
David Mandelin
f7eb07c405 Bug 625600: Update Yarr import to WebKit rev 83339, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
Brian Hackett
4c008cf13d Add test, bug 614688. r=Waldo 2011-05-23 09:38:21 -07:00
Chris Leary
52221a8477 Merge mozilla-central and tracemonkey. 2011-05-23 00:02:05 -07:00
Jeff Walden
98949e34d6 Silence mega-spammy build warning on Windows. r=class-to-struct 2011-05-22 19:50:47 -07:00
Jeff Walden
6b07caee53 Fix Windows bustage. r=hate-windows.h-macros 2011-05-22 19:50:09 -07:00
Nicholas Nethercote
30e92c3349 Bug 657327 - about:memory: merge the "mapped" and "heap used" trees, and make the resulting tree flatter. r=sdwilsh,Jesse, sr=roc. 2011-05-22 19:49:56 -07:00
Nicholas Nethercote
4a6c88377c Bug 656520 - Make sure the gc-heap memory reporter is in the right place. r=gwagner. 2011-05-22 19:48:31 -07:00
Jeff Walden
e7f1497ce9 Fix --disable-tracejit bustage, make some headers #include some files they need, add a forward declaration to produce the same effect in another. r=¬t-redness 2011-05-22 18:50:12 -07:00
Jeff Walden
fb232cee35 Bug 657665 - Add documentation comments to ArgumentsObject detailing its structure, and add ArgumentsObject::getElement{,s} to abstract attempting to speedily get the value of one or more elements. r=bhackett 2011-05-18 11:45:27 -07:00
Igor Bukanov
71d7289d00 bug 658016 - followup to fix !JS_THREADSAFE builds. 2011-05-22 09:27:01 +02:00
Igor Bukanov
c6893bfa52 bug 658016 - properly synchronizing the free lists with arenas when dumping the heap. r=wmccloskey 2011-05-20 12:38:31 +02:00
Igor Bukanov
a74b534b3f bug 658505 - removal of thread synchronization when setting a prototype. r=jorendorff
--HG--
extra : rebase_source : 8ef87070a88a3323c3b657c043741f087a98d5d3
2011-05-20 18:40:35 +02:00
Chris Leary
a2d213f0d0 Bug 619561: GC telemetry hooks for TestPilot study. (r=billm) 2011-05-20 13:40:06 -07:00
Chris Leary
b2d9eba98e Merge mozilla-central and tracemonkey. 2011-05-20 14:29:36 -07:00
Blake Kaplan
21d04c350b Fix merge mistake. 2011-05-20 21:22:21 +02:00
Bill McCloskey
d98ff20cc1 Bug 658053 - Fix #ifdefs for disabling methodjit and tracejit (r=dmandelin) 2011-05-20 11:27:33 -07:00
Bill McCloskey
6a8823ab66 Bug 658055 - Always use getter to access fun->script() (r=dmandelin) 2011-05-20 11:27:27 -07:00
Bill McCloskey
6204deb7f6 Bug 653026 - Fix NoSuchMethod (r=Waldo) 2011-05-20 11:27:22 -07:00
Blake Kaplan
c303dfca62 Disable this test on Maemo for now. 2011-05-20 21:13:43 +02:00
Blake Kaplan
cfb87bd6b3 Attempting to fix bustage. r=bustage fix 2011-05-20 18:17:31 +02:00
Joel Maher
579034f58a Bug 658524 - annotate remaining jsreftest manifests for android. r=bear, a=test-only 2011-05-20 11:54:02 -04:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Joel Maher
8d37f99984 Bug 616999. Xpcshell manifest support; harness changes. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Daniel Holbert
f3cc3a9d15 Merging cedar with mozilla-central. 2011-05-21 16:18:49 -07:00
timeless@mozdev.org
bfb9019adf Bug 619769 FrameState::init leaks cursor when reifier.init() fails. r=jorendorff 2011-05-20 16:21:27 -04:00
Vladimir Vukicevic
4b2230fe03 Bug 630672 - implement WebGL OES_texture_float extension - r=bjacob
This implements floating-point textures in WebGL
2011-05-20 15:53:53 -04:00
Mike Hommey
b55239ba48 Bug 620931 part 6 - Add a -a option to xpcshell to set an application directory. r=bsmedberg 2011-05-06 10:40:51 +02:00
Blake Kaplan
fbea73993b Fix bug 657267. r=bz 2011-05-19 13:31:54 +02:00
Bill McCloskey
a572e3fb87 Bug 658137 - Add API for iterating over the entire GC heap. r=igor,nnethercote. 2011-05-19 17:11:16 -07:00
Nicholas Nethercote
a705714616 Bug 576175 - TM: rename js_Unbox{Double,Int32}. r=luke. 2011-05-19 17:02:46 -07:00
David Mandelin
7b38f467cb Bug 652054: tweak register allocation for 64-bit stores, r=njn 2011-05-19 10:55:36 -07:00
Igor Bukanov
82d8e149da bug 601234 - followup to restore tolerance of calling the allocator during the GC. 2011-05-19 15:34:37 +02:00
Igor Bukanov
397237b2b1 Backed out changeset 869479a8d3c8 - patch for bug 656261 caused jsreftest failure on Windows in the browser. 2011-05-19 00:59:19 +02:00
Igor Bukanov
8f8b62c845 bug 656261 - better GC arena layout. r=wmccloskey
--HG--
extra : rebase_source : d6b63d38ef586c7e1d7141c8e0859fe026803a5d
2011-04-22 00:47:46 +02:00
Jeff Walden
249a380f7b Bug 657713 - eval JSON parser hack misfires in strict mode, for objects with duplicate property names. r=njn
--HG--
extra : rebase_source : 148d1ea8255a38c967d7b7c74afc02be9474840a
2011-05-18 10:57:59 -07:00
Jeff Walden
a13a0634f7 Bug 657585 - Guard against runaway recursion converting |this| to string in all the String.prototype.* methods. r=luke
--HG--
extra : rebase_source : 76642de53803bfdbc3b4d02e83f1d0e5713bd206
2011-05-18 10:57:52 -07:00
Jeff Walden
a0caea8ac7 Bug 655921 - Check for Function being forbidden before creating the function private which would ordinarily be returned. Also create that function private with an explicitly specified parent, that being the Function function's global object. r=mrbkap
--HG--
extra : rebase_source : d0638bf75648e5dc0f9bb0c1fcf61559d1422771
2011-05-10 14:56:49 -07:00
Jeff Walden
90cdb85452 Bug 656365 - Creating an arguments object shouldn't require a parent, only a callee. r=luke
--HG--
extra : rebase_source : 0f4b0bc449bd7e0a2bd4e929c10e775d79e788ea
2011-05-11 14:04:25 -07:00
Jeff Walden
95c67a9cea Use a checked pointer rather than a raw pointer in one place in the JSON parser. r=trivial
--HG--
extra : rebase_source : 60bf8c5ac1e9e7294d4b9d6b5fd7807517c9b541
2011-05-16 11:43:39 -07:00
Jeff Walden
4cf43e2ca4 Bug 657013 - Remove the old JSON parser. r=njn
--HG--
extra : rebase_source : 5c11e9179d2291d498667c17c05ff7e5f8ace3f2
2011-05-13 14:27:07 -07:00
Bill McCloskey
68588bf424 Remove call to dis() in tests 2011-05-18 11:06:17 -07:00
Bill McCloskey
601bf94f18 Bug 634090 - Make jstests and jit-tests handle timeout better (r=dmandelin) 2011-05-18 10:30:56 -07:00
Bill McCloskey
e623b63357 Bug 656555 - Handle JSOP_TRAP inside JSOP_LAMBDA (r=dmandelin) 2011-05-18 10:30:47 -07:00
Bill McCloskey
88f9a88fb1 Bug 656381 - Handle JSOP_TRAP when looking up block chain (r=dmandelin) 2011-05-18 10:30:39 -07:00
Bill McCloskey
960a3d7b07 Bug 651563 - Comment new GC marking behavior (r=bhackett) 2011-05-18 10:30:32 -07:00
Bill McCloskey
f4933bcaae Bug 640265 - Don't GC during OOM reporting (r=dmandelin) 2011-05-17 11:23:31 -07:00
Bill McCloskey
194a0b290d Bug 657710 - Fix strict aliasing warning (r=luke) 2011-05-18 10:23:08 -07:00
Bob Clary
3346c44ea2 Bug 657608 - JavaScript tests - remove all Sisyphus and Antediluvian cruft, r=jorendorff 2011-05-18 09:55:15 -07:00
Igor Bukanov
678c5b61b2 bug 657227 - followup to fix the regression test not to throw an exception. 2011-05-18 15:31:48 +02:00
Igor Bukanov
cad92af0cc bug 657227 - IsCacheableProtoChain must check for a null proto. r=dvander 2011-05-18 14:26:22 +02:00
Blake Kaplan
b0ecb22bf5 Fix compilation warning on Linux. 2011-05-18 12:07:05 +02:00
Philipp von Weitershausen
4cba1e98dd Bug 655641 - Expose RegExp flags and source in JS API. r=gal 2011-05-08 22:10:21 -05:00
Philipp von Weitershausen
0a08fc9edf Tests for Bug 650931 (JS_ObjectIsRegExp). r=gal 2011-05-08 20:12:57 -05:00
Paul O'Shannessy
c6e3f311c7 Bug 650931 - No API to determine if a JSObject is a RegExp. r=gal 2011-05-17 20:04:28 -07:00
Nicholas Nethercote
e65f3e3ad3 merge 2011-05-18 12:22:25 +10:00
David Mandelin
8c1a69f7eb Fix MSVC warning. 2011-05-17 18:31:00 -07:00
Nicholas Nethercote
cb2e2e1fe6 Update nanojit-import-rev stamp. 2011-05-18 11:13:15 +10:00
Ed Morley
0df455e8fa Bug 648862 - nanojit: Remove WINCE code. r=edwsmith,Jacob.Bramley.
--HG--
extra : convert_revision : 37586d0b07857d871d1cc5184db25336bc0b8864
2011-05-18 10:38:17 +10:00
Chris Leary
a7253cc393 Bug 654301: Better interned string API, take 2. (r=Waldo) 2011-05-17 12:15:12 -07:00
Paul Biggar
57a34fb988 Backout merge (bug 600522, e0288c977846) 2011-05-17 05:24:30 -07:00
Paul Biggar
c556ef313c Backed out changeset e0288c977846 (bug 600522) due to windows oranges. 2011-05-17 05:23:21 -07:00
Blake Kaplan
08a8f3a6ab Bug 654370 - Initialize bp to false to avoid reading random memory. r=gal
--HG--
extra : rebase_source : 0a3b1b9e203d0ccc5bf33998f1509bef1beae36c
2011-05-17 09:25:06 +02:00
Dirkjan Ochtman
e5dbb597d1 Bug 600522 - Force TZ to US/Pacific for jit tests [r=pbiggar] 2011-05-16 21:11:54 +02:00
Paul Biggar
e0fa025e18 Bug 657384: Change new_ parameters to pass-by-copy, not pass-by-const-reference. (r=luke)
new_ [1] took a const reference for each of its parameters. Unfortunately, that
adds const-ness even when the constructor needs non-constness. Unfortunately,
the other way (turning off constness) can lead to excess copying.

According to the Forwarding Problem [2], there is no great solution here. C++
does not have a perfect way to write a function which wraps another function.
So we settle for non-constness, and we must rely on forbidding copying of
expensive objects.

[1] as in cx->new_<T>(p1)
[2] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm
2011-05-17 04:25:39 -07:00
Nicholas Nethercote
12840cb477 Bug 657164 - disable the assertion because it's failing in xpcshell tests; bug 654820 will re-enable it. rs=philor. 2011-05-16 20:44:45 -07:00
Chris Leary
089bf2c468 Back out bug 654301 to run again on try. 2011-05-16 19:03:20 -07:00
Chris Leary
a2ba07f853 Followup fix for broken changeset 7fe5fb2450f4. 2011-05-16 18:39:59 -07:00
Nicholas Nethercote
7ab4abb283 Bug 657164 - fix '=' vs '==' confusion in an assertion. r=bhackett. 2011-05-16 18:26:01 -07:00
Chris Leary
338cf025af Bug 654301: Better interned string API. (r=Waldo) 2011-05-16 18:18:59 -07:00
David Mandelin
5ad1963088 Fix MSVC warning 2011-05-16 16:16:55 -07:00
Chris Leary
4d1fba5db8 Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Luke Wagner
b1faffbccb Bug 655435 - Fix leak in Atomize (r=njn,cdleary) 2011-05-12 13:15:36 -07:00
Luke Wagner
4a10088b08 Bug 656171 - Use object principals finder in PrincipalsForCompiledCode, this time with hacks to fix xpcshell hacks (r=mrbkap) 2011-05-12 12:12:50 -07:00
Ed Morley
c9aaef67a9 Bug 652731 - Remove check for ZIP in js/src configure, since spidermonkey does not require it; r=jimb 2011-05-13 06:59:56 -07:00
Nicholas Nethercote
611ccaee3f Bug 633653 - revamp about:memory (NJ-specific part). The original patch was landed on mozilla-central. But because NJ-to-TM merges clobber any NJ changes made in TM, I need to land the NJ-specific directly onto nanojit-central. r=edwsmith.
--HG--
extra : convert_revision : 79ed08770916b0c2ccd587900066a9a009d05a4c
2011-05-11 16:53:11 -07:00
Rick Reitmaier
0e7e197a1e build broken on windows along with lirasm breakage
--HG--
extra : convert_revision : 0623adbccaf277410970dff1907efdd8a92f50b3
2011-05-06 12:11:06 -07:00
Rick Reitmaier
5a49964781 Bug 602264 - Self-tests to validate the page permission settings employed by the JIT. (r+nnethercote,edwsmith)
--HG--
extra : convert_revision : 2c412e8f99bb745bf6d5e758b270fc08e307a142
2011-05-04 15:38:33 -07:00
Rick Reitmaier
8880e03d8b Bug 640318 - LIR control-flow graph gml output (r+nnethercote,wmaddox)
--HG--
extra : convert_revision : 45ca084d9cbe063ce96e2b0bd2f7df8a562d0b2f
2011-05-04 08:48:53 -07:00
Igor Bukanov
b996fb9a59 bug 601234 - avoiding extra indirection and branch on the fast path of GC allocation. r=wmccloskey 2011-04-22 00:20:12 +02:00
Joel Maher
9a0f36241a Bug 655752 - 3 jsreftests cause failures on Android. r=bc, a=test-only 2011-05-12 12:47:38 -04:00
Mounir Lamouri
f4d3a8686d Merging cedar with mozilla-central. 2011-05-12 12:29:49 +02:00
Takanori MATSUURA
6c88e1c625 Bug 655439 - Use $(LIBXUL_DIST)/bin/xpcshell instead of $(DIST)/bin/xpcshell. r=khuey 2011-05-11 15:13:43 +02:00
Michael Wu
034def94d2 Merge backout (to fix bug 656172) 2011-05-10 19:10:01 -07:00
Michael Wu
4746e4ca82 Back out parts 3-7 of bug 620931 which caused bug 656172, r=killer 2011-05-10 18:27:51 -07:00
Chris Leary
10ad9f372b Merge mozilla-central and tracemonkey. (CLOSED TREE) 2011-05-10 14:55:52 -07:00
Ed Morley
082d53f39b Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
Chris Leary
e9c15c147e Merge mozilla-central to tracemonkey. 2011-05-09 14:27:44 -07:00
Paul Biggar
1cd5ff1908 Backed out changeset 0c6254cb818d (bug 652593) due to PROCESS-CRASH orange in M(oth). 2011-05-09 09:50:36 -07:00
Paul Biggar
9c572e750b Bug 652593: Remove compound GET*PROP opcodes, to fix strict warnings (r=bhackett,dao)
The undefined property strict-mode warning was missed under some compound
opcodes. JM had removed those opcodes, and so the warnings appeared. This
ports the opcode remove to TM, fixing the warnings.

Bug 647626 removed the compound opcodes from JM, as they made type-inference
and the JITs more complex, for a minor speed impact (see
https://bugzilla.mozilla.org/show_bug.cgi?id=647626#c6 for benchmarks).

This also fixes the strict mode warnings that appeared in the browser as a
result of the fix.
2011-05-09 07:37:37 -07:00
Tom Schuster
82f4ee4b3f Bug 654685: add reportCompare to fix warnings, no_r= 2011-05-08 00:11:03 +02:00
Tom Schuster
d84a191ec4 Bug 654685: Remove Boolean.prototype.toJSON r=pbiggar 2011-05-07 22:34:44 +02:00
Tom Schuster
cd0d919992 Bug 652154: Fix path reversal on windows in jstest r=pbiggar 2011-05-07 19:20:31 +02:00
Makoto Kato
fc6d231d63 Bug 654873 - ARM target (gcc 4.5.2 or later) should use built-in atomic function instead of arm-kuser. r=gal 2011-05-08 00:47:13 +09:00
Paul Biggar
b7a5a9115b Bug 653153: Fix the parseInt fast path doubles above 1e21 (r=jwalden)
The spec says parseInt needs to convert to a string before being converted to
an integer. For 1e+21 (and greater), ToString uses exponential notation:
"1e+21", which get's parsed as 1. The existing parseInt fast path for doubles
converted it directly into an integer, giving the result 1e21. The fix adds a
bounds check to see if the exponential notation is triggered, and still uses
the fast path if not.
2011-05-07 05:31:59 -07:00
Nicholas Nethercote
810ba8da79 Bug 648490 - Remove the "heap-used/js/string-data" memory reporter because it is totally bogus. r=gal. 2011-05-11 16:09:50 -07:00
Jason Orendorff
953a8d71f6 Bug 645160 - jsdIStackFrame is incorrectly truncated at indirect eval calls. r=mrbkap. 2011-05-11 11:11:40 -05:00
Gregor Wagner
b087efb463 Bug 655175 - Add entrance and exit time to GCTimer. r=igor 2011-05-06 13:59:37 -07:00
Mike Hommey
fbb326c536 Bug 620931 part 6 - Add a -a option to xpcshell to set an application directory. r=bsmedberg 2011-05-06 10:40:51 +02:00
Igor Bukanov
0370e3ab43 bug 652416 - race fixes and other cleanups for background finalization. r=anygregor
--HG--
extra : rebase_source : b1685fff8fa5dab43b9b595daa6118249d3ef891
2011-04-25 22:05:30 +02:00
Josh Matthews
1e266b7afb Bug 652803 - Check for existing proxy operations before attempting to fix a proxy object. r=gal 2011-05-05 21:55:25 +02:00
Andreas Gal
e7d653fb45 Add a "binary" argument to snarf (bug 655168, r=cdleary). 2011-05-05 17:59:47 -07:00
Andrew McCreight
5d31eb0d55 Bug 650519. Add safe function to check gray GC mark bits, then use it. (r=gal)
--HG--
extra : rebase_source : bb8eeed202e30c575ff22165c0b4de591c1dcb64
2011-05-04 09:26:44 -07:00
Blake Kaplan
9c143b391d Bug 651298 - Remove this assertion because document.domain makes it false. r=luke
--HG--
extra : rebase_source : 32cdb0b90074c7c7abe8a4d76de518bfc2757798
2011-04-28 15:40:21 -07:00
Blake Kaplan
c16987745d Bug 653309 - Don't break compartment rules. Hold the XPCWrappedNative pointer directly in the holder. r=gal
--HG--
extra : rebase_source : f59294302611044458748c76adcd4343ebaada54
2011-04-29 14:51:49 -07:00
Ryan VanderMeulen
36e9afa970 Bug 653959 - Fix warning spam by using consistent declaration for js_DeclEnvClass. r=luke 2011-05-05 17:53:36 +02:00
Jeff Walden
849fe0bfd1 Backed out changeset 83ae6e7c572e, maybe caused an orange, trying a backout of the most likely regressor. r=orange 2011-05-04 23:10:16 -04:00
Jeff Walden
e625314785 Bug 653888 - Clean up the Walk internal spec function, make the reviver delete properties from arrays if it returns undefined. r=pbiggar
--HG--
extra : rebase_source : 6d2004b0d6089c0c6d85bdaf4d4b0c8240840109
2011-04-30 03:22:48 -04:00
Jeff Walden
ca1b251411 Bug 653847 - JSON.parse should properly handle omitted arguments. r=pbiggar
--HG--
extra : rebase_source : 4ac9654d421a2504dbe24767fd5ffc0cbf52592e
2011-04-30 03:22:36 -04:00
Jeff Walden
eabb72c0f4 Bug 653782 - Properly handle JSON.stringify(_, replacer) when replacer isn't callable or an array. r=pbiggar
--HG--
extra : rebase_source : fed45c114091f45c0573f6d3cafef4ab0dd442b1
2011-04-30 03:22:11 -04:00
Jeff Walden
9361f3bfc8 Bug 653782 - Remove js_IndexToId, replace with an inline js::IndexToId. Also removes the redundant IndexToId in jsxml.cpp. r=igor
--HG--
extra : rebase_source : 4cb2b69a8f3d1877ca6514c8f9dfb3dc1af551b7
2011-04-30 03:19:26 -04:00
Jeff Walden
e9bdd399b1 Move GlobalObject.* into vm/. rs=cdleary
--HG--
rename : js/src/GlobalObject.cpp => js/src/vm/GlobalObject.cpp
rename : js/src/GlobalObject.h => js/src/vm/GlobalObject.h
extra : rebase_source : 724ae53fda5a1c74a71b01f3d44796536d413a45
2011-04-28 19:08:22 -04:00
Gregor Wagner
685d432db1 Bug 652931 - Proper handling of large mark stack insertion. r=billm 2011-05-04 12:54:48 -07:00
Chris Leary
e5b4259e5a Bug 654792: Give Shape::shape and Shape::id better names for great justice. (r=jorendorff) 2011-05-04 12:01:39 -07:00
Igor Bukanov
212be881c3 Bug 600648 - faster GC mark bitmap operations. r=billm 2011-04-22 00:29:24 +02:00
Paul Biggar
4d87b14d7d Bug 654073: Mark StopIteration as a class with no prototype. (r=jwalden)
This prevents infinite recursion when trying to initialize StopIteration.
2011-05-03 12:31:02 -07:00
Christian Holler
b0902374f8 Bug 628332 - Avoid double-frees when compartment allocation fails (r=billm). 2011-05-03 04:26:40 -07:00
Luke Wagner
05bfe5cb0b Bug 653631 - Fix faulty inlining of js_GetScriptedCaller (r=mrbkap) 2011-04-30 14:31:13 +07:00
Luke Wagner
4023060e30 Bug 653396 - Include JS_ARGS_LENGTH_MAX check in SplatApplyArgs (r=waldo) 2011-05-03 17:34:07 +07:00
Chris Leary
55f7c6409e Merge mozilla-central to tracemonkey. (CLOSED TREE) 2011-05-02 10:55:34 -07:00
Igor Bukanov
5164b785fd bug 605029 - followup to fix inconsequel typo 2011-04-29 14:11:23 +02:00
Paul Biggar
b005c6c2d4 Merge backout. 2011-04-29 04:01:23 -07:00
Paul Biggar
15828cd649 Backed out changeset 334ada87e329 (bug 628332) - those a11y errors arrived at the same time as this landing, so backing this out to see if that fixes it. 2011-04-29 04:00:57 -07:00
Christian Holler
faf48eb1e7 Bug 628332 - Avoid double-frees when compartment allocation fails (r=billm). 2011-04-27 16:09:00 -07:00
Paul Biggar
0a4b3c92dd Bug 651864 - Extract magic slot formula into inline functions (r=jwalden)
The global object has special slots for built-in objects' prototypes,
constructors and properties. This makes explicit the formula to calculate the
slot number for these special slots.
2011-04-28 07:18:11 -07:00
Paul Biggar
4011ba8b50 Backed out changeset 2919a6aa1ab7 (bug 652449) - jstests in |make check| bounces again. 2011-04-28 07:46:33 -07:00
Paul Biggar
a987ff3fd1 Bug 652449 - Turn on jstests in |make check| on linux only (r=jimb) 2011-04-28 06:45:18 -07:00
Paul Biggar
e4d6748cc4 Bug 642772: Don't recreate a class during enumeration, if it has been deleted (r=bhackett)
In SM, classes are lazily resolved. If we detect that a class about to be used
has not yet been resolved, then we resolve it. However, the way that we decided
that they were resolved was broken. If the global object had a String property,
then it had been resolved. So what happened when we deleted the String
property? Well, it got resolved again.

Instead of using the String property of the global object, we now use the
contructor slot on the global object. This works fine for String, but some
classes don't have a constructor, like Math and JSON. For those classes, we set
the constructor slot to True. In either case, we can now tell that a class is
resolved if the constructor slot in not Undefined.
2011-04-27 04:13:56 -07:00
Matthew Draper
3eb02c1b43 Bug 564577 - __noSuchMethod__ no longer invoked for defined non-function properties (r=igor) 2011-04-22 04:38:24 +09:30
Igor Bukanov
8b0d367736 bug 605029 - ArenaHeader versus Arena<FreeCell> and other cleanups. r=wmccloskey 2011-04-20 07:30:10 +02:00
Chris Jones
a61c26e2c0 Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke 2011-04-28 17:48:52 -05:00
Chris Jones
6fd4cbff2d Bug 642381, part 2: Rename LazilyConstructed to Maybe. r=luke 2011-04-28 17:48:51 -05:00
Chris Jones
0adf6af157 Bug 642381, part 1: Remove js::Conditionally. r=luke 2011-04-28 17:48:51 -05:00
Jeff Walden
76a4343e93 Bug 652215 - Add a js::StringObject subtype of JSObject. r=njn
--HG--
extra : rebase_source : 7cdfe72d0932b51408b9ec5dc38219605e1925ce
2011-04-20 16:33:05 -04:00
Jeff Walden
af6649155f Bug 647385 - Implement a ToInteger helper that corresponds to the spec method (rather than inlining its contents everywhere it can be trivially used). Also fixes a couple bugs in one place that should have used ToInteger but didn't. r=cdleary 2011-04-02 11:33:20 -07:00
Jeff Walden
a6c5ef2297 Bug 643537 - Properly interpret String and Number objects provided as the space argument to JSON.stringify(value, replacer, space). r=pbiggar
--HG--
extra : rebase_source : 0d7e32f5ce57be2a1e341db7888df41033bbd2be
2011-03-18 18:20:15 -07:00
Jeff Walden
234a32b92a Bug 648471 - If JSON.stringify's replacer is an array, only get the list of property names to use from it once (i.e. invoke getters on the array only once), and get them in order from 0 to the array's initial length. Also use non-enumerable array index properties in addition to enumerable array index properties. r=pbiggar
--HG--
extra : rebase_source : 874e2502e5b5223feb19b457debc8cc8dc51e6cb
2011-04-11 01:46:12 -07:00
Rob Arnold
1fa00902b6 Bug 651510 - "Signature for JS_StructuredClone differs in jsapi.h and jsapi.cpp" [r=jorendorff] 2011-04-20 08:28:00 -07:00
Paul Biggar
2bcf2bd5aa Merge backout of bug 651864. 2011-04-28 09:02:57 -07:00
Paul Biggar
ec3b6da446 Backed out changeset 00313f95d106 (bug 651864). 2011-04-28 09:02:13 -07:00
Jeff Walden
a0446bf092 Bug 512266 - JSON.stringify for various special characters should produce the corresponding one-character escapes. r=pbiggar
--HG--
extra : rebase_source : a76fb038143bd053ee9e30ae29e99d3c2e91c528
2011-03-18 17:57:18 -07:00
Jeff Walden
faf5216de3 Bug 635389 - Check for overrecursion in functions that might need it. r=jorendorff
--HG--
extra : rebase_source : 72d6f2c915a4aa19e9820ea4f66039f75421c32d
2011-04-18 16:50:46 -04:00
Jeff Walden
573931e488 Bug 650574 - No recursion checks converting a cyclic object to source, if the object's toSource hooks are built-in functions. r=luke
--HG--
extra : rebase_source : 1d94c30c3a7335b1124e19020b8244a1de32aab3
2011-04-26 16:05:58 -04:00
Luke Wagner
8492c1e5ed Fix linker error. I fixed this in the patch I pushed to try but seem to have lost it in the meantime (r=burning-windows) 2011-04-26 14:34:09 -07:00
Luke Wagner
4fec8aa043 Fix --disable-methodjit bustage (r=red) 2011-04-26 13:39:59 -07:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Chris Leary
71c7cfdc1f Merge mozilla-central and tracemonkey. 2011-04-26 10:42:36 -07:00
Tom Schuster
7d405787a7 Fix style nit request in Bug 651973 r=jorendorff via irc 2011-04-26 16:23:01 +02:00
Olli Pettay
46d7b33a70 Bug 648573 - Implement touch event interfaces, r=jst, pref'ed off by default 2011-04-26 15:30:17 +03:00
Jan de Mooij
e7219c101f Bug 646938 - Fix NaN-check in jsop_stricteq. r=dvander 2011-04-26 10:29:00 +02:00
Ryan VanderMuelen
40d8f2f5d2 Bug 646312: Enable methodjit by default for chrome JavaScript, r=dmandelin 2011-04-25 18:17:32 -07:00
Tom Schuster
de983504ce Bug 202019 - Objects with [[Call]] arent automatically constructbale r=jorendorff 2011-04-26 00:28:30 +02:00
Ehsan Akhgari
d2a61eb331 Backout changeset 13f6847dd840 (bug 616684) because it changes code semantics in a bad way, which results in problems like the crash in bug 652580, possibly among others 2011-04-25 17:05:17 -04:00
Michael Wu
b81c4d653e Bug 651973 - Release RegExp on error, r=cdleary 2011-04-25 13:20:14 -07:00
Michael Wu
8fb6fc73ed Bug 605707 - r=igor 2011-04-25 13:20:14 -07:00
Ed Morley
b17a6e7f83 Bug 648865 - Remove WINCE code from js/src/assembler/* ; r=dmandelin 2011-04-25 15:06:47 -04:00
Luke Wagner
c7e18b4a7b Bug 652438 - Add back OOM checks in JSString::getChars (r=waldo) 2011-04-25 11:53:50 -07:00
Paul Biggar
f52bbc7614 Disable jstests on all platforms again (r=orange) 2011-04-23 12:47:23 -07:00
Igor Bukanov
c8e26ae567 bug 652185 - r=luke 2011-04-23 00:12:05 +02:00
Jan de Mooij
035e5c1537 Bug 652060 - Fix double check in JSVAL_SAME_TYPE_IMPL on 64-bit. r=luke 2011-04-23 09:49:59 +02:00
Tom Schuster
13b9f917f0 Bug 649575 - Date.prototype.toISOString must throw a RangeError for non-finite dates. r=jwalden 2011-04-22 22:46:59 -04:00
Jeff Walden
a8a0234d77 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Paul Biggar
da590e6e27 Turn off jstests during |make check| on configs which turned tinderbox orange (no bug, r=jimb,orange) CLOSED TREE
The bad configs are:
   - windows with either --disable-tracejit or --disable-methodjit
   - mac with --enable-dtrace
2011-04-22 12:00:35 -07:00
David Anderson
cfba96780a merge backout CLOSED TREE CLOSED TREE CLOSED TREE CLOSED TREE CLOSED TREE 2011-04-22 11:48:57 -07:00
David Anderson
cfa95c8cf3 Backed out changeset d851d44ad77a 2011-04-22 11:40:55 -07:00
Paul Biggar
d4ed94cf34 Minor usage-string typo fix. No bug, no review. 2011-04-22 07:29:59 -07:00
Paul Biggar
6a750a4341 Bug 647482 (followup): Re-enable jstests in |make check| (r=dmandelin) 2011-04-22 07:29:22 -07:00
Rafael Ávila de Espíndola
8f5366a4c0 Bug 631928 - Check for libffi_cv_as_x86_pcrel should not look for just "warning". r=ted 2011-04-22 01:23:35 +02:00
Gregor Wagner
45c6d1befe Bug 651915 - Fix MarkStack size. r=billm 2011-04-21 13:44:29 -07:00
Jeff Walden
77e6fd7646 Backed out changeset c8ba5bd72b0c, we have too many test harnesses and I forgot to run one. r=tree-decorator 2011-04-21 16:29:54 -04:00
David Anderson
43e7e71dd5 Refactor Call ICs (bug 638680, r=luke). 2011-04-21 11:14:49 -07:00
Luke Wagner
5b206e05b6 Loosen test from 905a35f3a76b to account for conservative GC rooting fuzziness (r=orange) 2011-04-20 21:06:01 -07:00
Luke Wagner
b02663aef4 Fix typo in --enable-threadsafe builds (r=burning) 2011-04-20 19:29:11 -07:00
Luke Wagner
6e9ef90124 Bug 651041 - add API to store private data to an external string (r=njn) 2011-04-20 18:34:49 -07:00
Chris Jones
ea1f5e599c Bug 647011: Sprinkle some DebugOnly in js/src. r=luke 2011-04-20 18:27:30 -05:00
Jason Orendorff
b72daf3760 Merge backout. 2011-04-20 16:11:48 -05:00
Jason Orendorff
7c1bcbce33 Backed out changeset e02df4a05968 due to orange. 2011-04-20 16:10:38 -05:00
Tom Schuster
479dc912bc Bug 202019 - Built-in functions should not be constructors. r=jorendorff.
--HG--
extra : rebase_source : 2f845218384004c09a60c59ae03704729f1d91dc
2011-04-20 13:22:57 -05:00
Jeff Walden
f7e9104cd4 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Josh Matthews
5bac8b067d Bug 600677 - Add fix hook to proxies. r=gal 2011-04-16 17:14:10 -04:00
Gregor Wagner
6c6726d922 Bug 651546 - Remove stackLimit from GCMarker. r=billm 2011-04-20 12:22:04 -07:00
Ms2ger
295bf7256b Bug 616684 - Remove support for DOM Views; r=sicking 2011-04-24 08:54:25 +02:00
Mike Hommey
2076517e87 Backout changeset d29e1e37e7c2 from bug 640494 because of jsreftest orange on Win opt builds 2011-04-23 13:06:48 +02:00
Jason Orendorff
c0c1b22466 Bug 640494 part 2 - Use bit masking instead of signbit() to avoid problems when including some STL headers. r=luke 2011-04-23 08:48:50 +02:00
Jason Orendorff
cef5bccdba Bug 640494 part 1 - Get rid of STL algorithm use in jsworker.cpp. r=jimb 2011-04-23 08:48:50 +02:00
Brian Hackett
6e99d2c8df Fix bug 643839. r=brendan, a=clegnitto 2011-04-22 12:32:44 -07:00
Mike Hommey
e4a0852976 Bug 638056 - Avoid "The cacheFlush support is missing on this platform" error on exotic platforms. r=cdleary 2011-04-22 10:33:08 +02:00
Bill McCloskey
4a9bde3182 Bug 648647 - Eliminate JSObjectMap (r=jorendorff) 2011-04-08 14:21:08 -07:00
Gregor Wagner
7d8bb32bb8 Bug 651193 - fix delayedOutOfMemory in js_InvokeOperationCallback. r=gal 2011-04-20 09:28:57 -07:00