Commit Graph

15620 Commits

Author SHA1 Message Date
Chris Leary
87089e8f09 Bug 669776 - Genericize tagged pointer hasher. (r=Waldo) 2011-07-19 16:37:11 -07:00
Chris Leary
a619b5f224 Bug 668095 - Write a proper option parser for SpiderMonkey CLI. (r=dvander) 2011-07-19 16:37:09 -07:00
Bill McCloskey
e41d5f10b1 Bug 671113 - Poison JSScripts when freed to get more crash data (r=dmandelin) 2011-07-19 14:21:58 -07:00
Jason Orendorff
ca0b6c2b6b Bug 648175 - Remove JSOP_FOR*. Second second landing, to coin a phrase. r=dvander.
--HG--
extra : rebase_source : f893091e91a5b409c38ba08ddccfa0a6aa0a92c8
2011-07-19 11:00:43 -05:00
Andrew McCreight
a23526f81d Bug 666549 - Don't delete empty ObjectValueMaps in WeakMaps. r=igor 2011-07-19 09:30:16 -07:00
Justin Lebar
470956d8ab Bug 671280 - Rename KIND_MAPPED to KIND_NONHEAP in nsIMemoryReporter. r=njn 2011-07-19 10:33:49 -04:00
Jeff Walden
bca3d6372d Remove code for JS_HAS_ARRAY_EXTRAS, and make the extra methods ES5 added to Array.prototype always present. rs=luke
--HG--
extra : rebase_source : 8dd08dee39ae2ff15d326ece9ad82ffe6ab1946a
2011-07-15 14:06:40 -07:00
Jason Orendorff
336c92f85f Follow-up to previous changeset, just move a few things around. 2011-07-14 16:51:15 -05:00
Jason Orendorff
37c358c7bf True story: GCC likes function templates in debug builds, but not in release builds. Fix by ripping out the templates. 2011-07-14 16:42:23 -05:00
Jason Orendorff
c99f653075 Make more functions static. 2011-07-14 14:11:49 -05:00
Jason Orendorff
a16e1dd709 Add Debugger.Object.prototype.{seal,freeze,preventExtensions,isSealed,isFrozen,isExtensible}. 2011-07-14 11:05:52 -05:00
Siddharth Agarwal
a7d1a0c8f9 Bustage fix for bug 670249 -- remove PLSRCS 2011-07-13 18:54:41 -07:00
Siddharth Agarwal
bee5d53a97 Bug 670249 - Get rid of NFSPWD, nfspwd.pl and fastcwd.pl. r=glandium 2011-07-13 17:54:31 -07:00
Jason Orendorff
182e234314 Remove unneeded Vector::find methods now that there is a js::Find in jstl.h. 2011-07-13 19:15:38 -05:00
Bill McCloskey
095fa57be2 Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary) 2011-07-13 15:43:33 -07:00
Bill McCloskey
7643e7af42 Bug 670205 - Preserve JSOPTION_UNROOTED_GLOBAL in ContextHolder::ContextHolder (r=gal) 2011-07-13 15:43:31 -07:00
Jason Orendorff
79a19dcd35 Get rid of Debugger.prototype.hooks, a major API change.
This renames the hooks as follows:
  dbg.hooks.debuggerHandler -> dbg.onDebuggerStatement
  dbg.hooks.throw -> dbg.onExceptionUnwind
  dbg.hooks.newScript -> dbg.onNewScript
  dbg.hooks.enterFrame -> dbg.onEnterFrame

This touches just about every test.

--HG--
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-01.js => js/src/jit-test/tests/debug/onDebuggerStatement-01.js
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-02.js => js/src/jit-test/tests/debug/onDebuggerStatement-02.js
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-03.js => js/src/jit-test/tests/debug/onDebuggerStatement-03.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-01.js => js/src/jit-test/tests/debug/onEnterFrame-01.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-02.js => js/src/jit-test/tests/debug/onEnterFrame-02.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-03.js => js/src/jit-test/tests/debug/onEnterFrame-03.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-05.js => js/src/jit-test/tests/debug/onEnterFrame-05.js
rename : js/src/jit-test/tests/debug/hooks-throw-01.js => js/src/jit-test/tests/debug/onExceptionUnwind-01.js
rename : js/src/jit-test/tests/debug/hooks-throw-02.js => js/src/jit-test/tests/debug/onExceptionUnwind-02.js
rename : js/src/jit-test/tests/debug/hooks-throw-03.js => js/src/jit-test/tests/debug/onExceptionUnwind-03.js
rename : js/src/jit-test/tests/debug/hooks-throw-04.js => js/src/jit-test/tests/debug/onExceptionUnwind-04.js
rename : js/src/jit-test/tests/debug/hooks-throw-05.js => js/src/jit-test/tests/debug/onExceptionUnwind-05.js
rename : js/src/jit-test/tests/debug/hooks-throw-06.js => js/src/jit-test/tests/debug/onExceptionUnwind-06.js
rename : js/src/jit-test/tests/debug/hooks-newScript-01.js => js/src/jit-test/tests/debug/onNewScript-01.js
rename : js/src/jit-test/tests/debug/hooks-newScript-02.js => js/src/jit-test/tests/debug/onNewScript-02.js
2011-07-13 17:17:46 -05:00
Jason Orendorff
4329b9dad0 Add Debugger.Object.prototype.deleteProperty. 2011-07-13 07:34:21 -05:00
Jason Orendorff
7d92fa02e5 Add Debugger.Object.prototype.defineProperties and a few extra defineProperty tessts. 2011-07-13 06:46:23 -05:00
Jason Orendorff
168fd83e74 Add Debugger.Object.prototype.defineProperty. 2011-07-12 20:19:13 -05:00
Jason Orendorff
c5d451a17b Fix the regressions introduced by rev af9974df716c (bug 665214).
1. Fix an embarrassing bug in NewPropertyDescriptorObject.

2. Fix a similar embarrassing bug in GetOwnPropertyDescriptor.

3. An existing jit-test required some seriously buggy Proxy behavior.
   (It's a "don't crash" fuzztest.) Rev af9974df716c accidentally fixed
   the buggy Proxy behavior, causing the test to fail. Keep the fix and
   update the test.
2011-07-13 14:03:36 -05:00
Jason Orendorff
0e95d06901 Delete a test that hg backout failed to back out. 2011-07-13 10:46:38 -05:00
Jason Orendorff
4c4513de61 Backout 40e989742b4d due to failing jstests. 2011-07-13 10:43:00 -05:00
Jason Orendorff
12e082d98d Backed out changeset 93533be00e3e due to failing jstests. 2011-07-13 10:41:09 -05:00
Jason Orendorff
ef3cb9f6dc Add Debugger.Object.prototype.defineProperties and a few defineProperty tests. 2011-07-13 06:46:23 -05:00
Jason Orendorff
01f08a3395 Add Debugger.Object.prototype.defineProperty. 2011-07-12 20:19:13 -05:00
Luke Wagner
1f831c5948 Bug 668915 - JSAutoStructuredCloneBuffer shouldn't require a 'cx' (r=bent,jorendorff)
--HG--
extra : rebase_source : f2fe9ab1e25188223f75e8d2ddcbdf977e62782b
2011-07-12 10:42:24 -07:00
Daniel Holbert
95e333a50a Merge last green mozilla-central changeset to mozilla-inbound 2011-07-28 14:53:21 -07:00
Luke Wagner
640dd6a5c2 Backout 2e0fea2cbd9b for windows linker lameness 2011-07-28 14:35:38 -07:00
Jason Orendorff
5f274ec6ed Bug 674618 - Eliminate warnings on Mac introduced by rev ba2bdf497934 (././js-confdefs.h:110:1: warning: "__STDC_LIMIT_MACROS" redefined). r=jimb.
--HG--
extra : rebase_source : 65140f1129745eabbc18f7d8e7a0409ec207a51c
2011-07-28 15:57:50 -05:00
Mike Hommey
4bd677bc23 Bug 674910 - Statically link against libstdc++ on Android. r=blassey 2011-07-28 18:55:38 +02:00
Luke Wagner
c0bacd6aa9 Bug 668915 - JSAutoStructuredCloneBuffer shouldn't require a 'cx' (r=bent,jorendorff) 2011-07-12 10:42:24 -07:00
Martin Rosenberg
b79662c4d7 Bug 673314: Enable generation of multiply instructions on ARM. r=adrake
--HG--
extra : rebase_source : 084b7cb47d4858fa41b44d702c7e97755eee59b3
2011-07-28 09:35:22 -07:00
Ehsan Akhgari
2f51d73796 Bug 674558 - Implement the HTML5 selectionDirection property for text controls (input and textarea); r=bzbarsky 2011-07-28 13:51:22 -04:00
Jason Orendorff
f5ce61ea3c Merge from mozilla-central to jsdbg2. 2011-07-12 10:47:31 -05:00
Mounir Lamouri
42f2b3d393 Merging mozilla-central and mozilla-inbound. 2011-07-12 10:53:40 +02:00
Daniel Holbert
cf4ffeb9a2 Bug 670794: Remove unused variable 'forInLet' from jsemit.cpp. r=waldo 2011-07-12 00:11:55 -07:00
Jason Orendorff
8ec65d33e5 Add Debugger.Object.prototype.getOwnPropertyNames. 2011-07-11 20:32:05 -05:00
Jason Orendorff
807084b05d Add an initial cut at Debugger.Object.prototype.getOwnPropertyDescriptor. This implementation does not ensure that the debuggee does not run. 2011-07-11 20:22:50 -05:00
Jason Orendorff
e5eb2cf8d7 Bug 665214 - Provide a js::GetOwnPropertyDescriptor function that populates a PropertyDescriptor. r=Waldo. 2011-07-11 20:22:25 -05:00
Jim Blandy
a63b459a2d Make Debugger::frame and Debugger::nonHeldScripts use RuntimeAllocPolicy, not SystemAllocPolicy.
I also changed the Debugger constructor to take an additional JSContext
argument, since that seemed a little more legible than getting the Runtime
out of |dbg|'s compartment all the time.
2011-07-11 15:59:41 -07:00
Jason Orendorff
b25a91e697 Merge from tracemonkey to jsdbg2. 2011-07-11 08:53:27 -05:00
Brian Hackett
4980469d03 Reland a37db4d95026 2011-07-08 18:35:07 -07:00
Brian Hackett
761ce3bec0 Reland 104b182daf70 2011-07-08 18:28:03 -07:00
Brian Hackett
0875c60102 Reland b5ebe47700ce 2011-07-08 18:20:04 -07:00
Brian Hackett
875fc32ac6 Reland rev 1013f4be025f 2011-07-08 18:17:39 -07:00
Brian Hackett
fd156b6340 Revert to 6840fbf4dcdd 2011-07-08 17:58:10 -07:00
Jason Orendorff
a89cc3e718 Add partial support hooks.enterFrame. Currently the return value is ignored. 2011-07-08 18:17:49 -05:00
Siddharth Agarwal
996eff61b5 Bug 668058 - Add a DIR_INSTALL nsinstall shortcut, and allow $(INSTALL) to support target-specific makefiles. r=ted 2011-07-08 14:30:27 -07:00
Brian Hackett
00d04a894d Restore per-compartment empty call shape, bug 670152. r=jorendorff 2011-07-08 11:16:25 -07:00
Jason Orendorff
38a438bc97 Add Debugger.Script.prototype.{url,startLine,lineCount}. 2011-07-08 12:41:12 -05:00
Brendan Eich
9daff163c1 Bug 621954 - common BindLocalVariable harder in jsparse.cpp (r=cdleary). 2011-07-07 23:09:38 -07:00
Brian Hackett
752b11eaa2 Measure type inference memory usage, bug 669958. r=njn 2011-07-07 20:04:47 -07:00
Jason Orendorff
d8af4ff3e4 Fix another bug with getChildScripts: the relevant bit on JSScript was being set after the newScript hook was called. Set it beforehand instead. 2011-07-07 19:07:09 -05:00
Jason Orendorff
5b32744353 Tighten an assertion in Debugger::onNewScript. 2011-07-07 17:54:44 -05:00
Jason Orendorff
cbb3d8cc24 Fix bug in Debugger.Script.prototype.getChildScripts. It didn't know about JSScript::savedCallerFun. 2011-07-07 17:52:39 -05:00
Luke Wagner
b747d1721b Bug 670059 - Add some JS engine telemetry counters to measure occurrences of: E4X, __iterator__, mutable __proto__ (r=taras,waldo) 2011-07-07 15:40:33 -07:00
Luke Wagner
6d1540eb97 Bug 674522 - Fix jsval_layout on 64-bit big-endian platforms (r=waldo) 2011-08-04 14:49:35 -07:00
Jeff Walden
7090baef12 Bug 676700 - Slightly speed up js::IndexToId by converting directly to atom, not to string and then to atom. r=luke
--HG--
extra : rebase_source : d352929e4002f285670448e4515bea404f2cf88f
2011-08-04 19:21:25 -07:00
Jeff Walden
e296c93cd9 Bug 576034 - Remove aliased property implementation details. r=jorendorff
--HG--
extra : rebase_source : 8d87c5b809937b97643b382d49cfae2eee5581a6
2011-08-04 14:38:26 -07:00
Jeff Walden
257c90c2ca Bug 576034 - Remove aliased properties APIs. r=jorendorff
--HG--
extra : rebase_source : 09c9947953d6ae6d2f359e1cfedde0ea09c338ab
2011-08-04 14:38:00 -07:00
Luke Wagner
673fa49bf2 Backout a22fad398472 and 373e6bd2705d because of burnage 2011-08-04 15:54:14 -07:00
Luke Wagner
59e742e724 Bug 670059 - Add some JS engine telemetry counters to measure occurrences of: E4X, __iterator__, mutable __proto__ (r=taras,waldo)
--HG--
extra : rebase_source : f77f2ad5521bf4543b518f7f6cc40a3778b7a74a
2011-07-07 15:40:33 -07:00
Luke Wagner
59da0b7e25 Bug 674522 - Fix jsval_layout on 64-bit big-endian platforms (r=waldo)
--HG--
extra : rebase_source : e604fcda8977f50f528f327db8f7bdef22522bb2
2011-08-04 14:49:35 -07:00
Alon Zakai
e6b019d27d Bug 674800 - Print address of XPTCStub with nsXPCWrappedJS. r=mrbkap 2011-08-04 15:01:43 -07:00
Jeff Walden
062e461a6e Windows warning patrol. rs=luke
--HG--
extra : rebase_source : 1b6800ae7a7d56c1d8f056d6d06d0c9d45815e42
2011-08-04 14:28:41 -07:00
Jeff Walden
46cf7041a8 Followup to bug 671630 for the Windows compiler, which actually might well be right in this case. r=bustage 2011-08-04 13:38:35 -07:00
Makoto Kato
8853bbc4cc backout bug 669564 2011-07-07 23:47:06 +09:00
Mike Hommey
4417ab4a0f Backed out changeset 8b7150ba4450 because of win opt build failure 2011-07-07 14:48:17 +02:00
Makoto Kato
4c0099ad70 Bug 669564 - XMM6 and XMM7 aren't scratch register on Win64 ABI. r=bhackett1024 2011-07-07 16:34:19 +09:00
Nicholas Nethercote
579cb7bb08 Bug 669005 - Fix ArrayBuffer so its slots are reported by the "gc-heap/object-slots" reporters. r=jwalden. 2011-07-12 15:44:22 +10:00
Jonas Sicking
eb9ce9a027 Bug 669433 Part 1: Clean up File implementations by creating a storage-agnostic base class, nsDOMFileBase. r=khuey 2011-07-11 19:41:29 -07:00
Andrew Paprocki
025ec4a673 Bug 665819: build fix for ENABLE_YARR_JIT=0, r=dmandelin 2011-07-11 17:32:47 -07:00
Hannes Verschore
d75ca9c0b2 Bug 663575 - Change to emmiter to give offset to condition in srcnote of NOP instruction of do-while 2011-07-11 17:07:14 -07:00
Jason Orendorff
4757c6de25 Implement the newScript hook. Also, change the shell builtin clone() function to support cloning a function into a different compartment (for use by one of the tests). 2011-07-07 00:34:59 -05:00
Jim Blandy
477067d1ce Bug 668438: Let MakePlaceholder's callers put the placeholder in the lexdeps table, as that needs to be done differently in different cases. r=cdleary 2011-07-06 21:14:45 -07:00
Steve Fink
14742586b2 Bug 671632 - Fix shark builds broken by bug 588537 (r=waldo)
--HG--
extra : rebase_source : baa3e89fb3ccc0549aee2c752bb4a46ccc494eec
2011-07-15 11:47:16 -07:00
Ehsan Akhgari
0787743cf4 Merge the last green changeset on mozilla-inbound to mozilla-central 2011-07-15 08:13:08 -04:00
Ms2ger
50bcc856b0 Bug 670331 - Remove nsIDOMStorageWindow; r=sicking 2011-07-15 12:32:37 +02:00
Ms2ger
36c532ffa2 Bug 670235 - Remove nsIDOMWindowInternal; r=sicking 2011-07-15 12:31:34 +02:00
Nicholas Nethercote
ed80f3df3e Bug 669434 - Fix obscure bugs in CompileFileHelper. r=brendan.
H:Bug 669434 - Fix obscure bugs in CompileFileHelper.  r=brendan.
ubranch 'default'
2011-07-14 19:40:23 -07:00
David Mandelin
0f81026221 Bug 605290: check for null globalObject before innerizing, r=luke 2011-07-13 16:47:10 -07:00
Brad Lassey
df89bedfff bug 671346 - build fails with android NDKr6 r=khuey 2011-07-14 20:45:42 -04:00
Nicholas Nethercote
df63e69bd3 Bug 671482 - Use the trusted principal to identify the system principal. r=luke. 2011-07-15 09:52:51 +10:00
Nicholas Nethercote
bc2ec1e581 Bug 671482 - Rename some identifiers to improve clarity. r=anygregor. 2011-07-15 09:31:52 +10:00
Bill McCloskey
6ccefeb374 Bug 661903 - Fix stupid build issue 2011-07-14 16:07:53 -07:00
Bill McCloskey
fd629a392b Bug 661903 - Move script filename table to compartment (r=igor) 2011-07-14 16:02:12 -07:00
Blake Kaplan
1748f5de80 Backed out changeset 1e6392dd7c14 due to build bustage. 2011-07-14 15:21:42 -07:00
Blake Kaplan
e50f54b72d Fix bug 653926. r=jst 2011-07-14 14:35:41 -07:00
Jim Blandy
4ba5ae27bb Bug 668438: Let MakePlaceholder's callers put the placeholder in the lexdeps table, as that needs to be done differently in different cases. r=cdleary 2011-07-06 21:14:45 -07:00
Chris Leary
c5840b02ed Bug 613820: Regexp forwards ref in quantified parens test. (r=dmandelin) 2011-07-06 18:09:45 -07:00
Chris Leary
47795b9485 Bug 669786: JSCodeGenerator::upvarMap should be a js::Vector. (r=njn) 2011-07-06 18:00:17 -07:00
Jason Orendorff
9f710511b7 Rename eval scripts to non-held scripts and remove a bogus assertion in DebuggerFrame_getScript. 2011-07-06 14:53:56 -05:00
Brian Hackett
a68d60d8e8 Disable type inference on ARM, bug 669715. 2011-07-06 12:29:07 -07:00
Brian Hackett
c0b367b25f Fix memory leak. 2011-07-06 06:30:49 -07:00
Brian Hackett
a6e714e4a4 Fix warning. 2011-07-05 22:41:41 -07:00
Han Chang
3af25db115 Bug 640629 - Move timer declaration instances to prevent premature garbage collection from occuring and wiping out the timer instances before they get a chance to fire. r=jdm,gavin 2011-07-05 21:40:00 -04:00
Rafael Ávila de Espíndola
43597c72c7 Bug 673556 - Make sure that C limits macros are defined on over-zealous compilers; r=khuey
--HG--
extra : rebase_source : 46f5ddf3a2bcfcd882e3814216299af09347de7e
2011-07-26 17:09:42 -04:00
Brian Hackett
1b078f3536 Merge TM -> JM 2011-07-05 18:22:24 -07:00
Chris Leary
679a65fe47 Merge mozilla-central and tracemonkey. 2011-07-05 17:30:35 -07:00
Brian Hackett
e0c7a11c50 [INFER] Fix build breaks with --disable-methodjit. 2011-07-05 16:52:39 -07:00
Paul Biggar
d8243d6d31 Bug 666448: Remove 2nd argument to escape() for ECMA/Test262 compliance (r=jwalden) 2011-07-05 16:51:12 -07:00
Brendan Eich
0fb17bfc60 Fuse common return interpReturnOK; path (and put comment inside ifdef where it belongs); fit assertion in 100 columns (r=me). 2011-07-05 12:57:44 -07:00
Brendan Eich
40fbf4f25a Use common sub-expression more (r=self). 2011-07-05 12:36:54 -07:00
Brian Hackett
18b2c1c295 [INFER] When pushing new frame don't repoint cx->regs until after checking there is space to push, bug 669304. 2011-07-05 10:12:23 -07:00
Boris Zbarsky
7271e89ea8 Version bump from 7.0a1 to 8.0a1 2011-07-05 12:59:19 -04:00
Jason Orendorff
c00de482a4 Add a passing test for Debugger.Frame.prototype.live. 2011-07-05 10:08:49 -05:00
Jason Orendorff
59c4f629be Rename getYoungestFrame to getNewestFrame.
--HG--
rename : js/src/jit-test/tests/debug/Debugger-getYoungestFrame-01.js => js/src/jit-test/tests/debug/Debugger-getNewestFrame-01.js
rename : js/src/jit-test/tests/debug/Debugger-getYoungestFrame-02.js => js/src/jit-test/tests/debug/Debugger-getNewestFrame-02.js
2011-07-05 07:54:47 -05:00
Jason Orendorff
da62d5e77d Remove some nonsense from JS_DefineDebuggerObject. 2011-07-05 07:50:08 -05:00
Jason Orendorff
26c054bdc4 Rename Debug to Debugger.
--HG--
rename : js/src/jit-test/tests/debug/Debug-clearAllBreakpoints-01.js => js/src/jit-test/tests/debug/Debugger-clearAllBreakpoints-01.js
rename : js/src/jit-test/tests/debug/Debug-ctor-01.js => js/src/jit-test/tests/debug/Debugger-ctor-01.js
rename : js/src/jit-test/tests/debug/Debug-ctor-02.js => js/src/jit-test/tests/debug/Debugger-ctor-02.js
rename : js/src/jit-test/tests/debug/Debug-ctor-03.js => js/src/jit-test/tests/debug/Debugger-ctor-03.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-01.js => js/src/jit-test/tests/debug/Debugger-debuggees-01.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-02.js => js/src/jit-test/tests/debug/Debugger-debuggees-02.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-03.js => js/src/jit-test/tests/debug/Debugger-debuggees-03.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-04.js => js/src/jit-test/tests/debug/Debugger-debuggees-04.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-05.js => js/src/jit-test/tests/debug/Debugger-debuggees-05.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-06.js => js/src/jit-test/tests/debug/Debugger-debuggees-06.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-07.js => js/src/jit-test/tests/debug/Debugger-debuggees-07.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-08.js => js/src/jit-test/tests/debug/Debugger-debuggees-08.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-09.js => js/src/jit-test/tests/debug/Debugger-debuggees-09.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-10.js => js/src/jit-test/tests/debug/Debugger-debuggees-10.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-11.js => js/src/jit-test/tests/debug/Debugger-debuggees-11.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-12.js => js/src/jit-test/tests/debug/Debugger-debuggees-12.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-13.js => js/src/jit-test/tests/debug/Debugger-debuggees-13.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-14.js => js/src/jit-test/tests/debug/Debugger-debuggees-14.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-15.js => js/src/jit-test/tests/debug/Debugger-debuggees-15.js
rename : js/src/jit-test/tests/debug/Debug-debuggees-16.js => js/src/jit-test/tests/debug/Debugger-debuggees-16.js
rename : js/src/jit-test/tests/debug/Debug-enabled-01.js => js/src/jit-test/tests/debug/Debugger-enabled-01.js
rename : js/src/jit-test/tests/debug/Debug-getYoungestFrame-01.js => js/src/jit-test/tests/debug/Debugger-getYoungestFrame-01.js
rename : js/src/jit-test/tests/debug/Debug-getYoungestFrame-02.js => js/src/jit-test/tests/debug/Debugger-getYoungestFrame-02.js
rename : js/src/jit-test/tests/debug/Debug-multi-01.js => js/src/jit-test/tests/debug/Debugger-multi-01.js
rename : js/src/jit-test/tests/debug/Debug-multi-02.js => js/src/jit-test/tests/debug/Debugger-multi-02.js
rename : js/src/jit-test/tests/debug/Debug-multi-03.js => js/src/jit-test/tests/debug/Debugger-multi-03.js
2011-07-05 07:48:26 -05:00
Jason Orendorff
8fc23fced7 Add Debug.Script.getChildScripts. 2011-07-05 06:57:06 -05:00
Marco Bonardo
2dc9ae2975 Merge last green changeset from mozilla-central to mozilla-inbound 2011-07-05 10:47:39 +02:00
Gregor Wagner
72e00fabf4 Bug 666058 - Don't share chunks for system compartments. r=gal,igor. 2011-07-05 14:14:33 +10:00
Patrick McManus
054a2164a5 bug 655389 - CRLF Injection and the parsing of HTTP headers. r=bz 2011-07-04 23:12:30 -07:00
Leon Sha
b223802f5f Bug 666488 - [TM] Re-enable YARR on sparc. r=dvander. 2011-07-04 13:40:43 +08:00
Nikhil Marathe
583bf1952d Bug 666599 - Fix ArrayBuffer::obj_lookupProperty. r=mrbkap 2011-07-03 13:32:03 +08:00
Brian Hackett
d9a6f02814 [INFER] ContextStack::currentScript should only return scripts from the current compartment, bug 662841. 2011-07-02 18:49:09 -07:00
Brian Hackett
aacb873583 [INFER] Preserve invariant entry ordering when removing existing redundant entries, bug 668643. 2011-07-02 18:25:12 -07:00
Brian Hackett
9e5b330883 [INFER] Watch for non-closed local names aliased by XML QNAME opcodes, bug 665812. 2011-07-02 07:08:55 -07:00
Brian Hackett
47fd6595dc [INFER] Avoid redundant TypeObject::markUnknown, bug 665289. 2011-07-02 06:58:06 -07:00
Brian Hackett
392d443f17 [INFER] Fix build break. 2011-07-02 06:38:36 -07:00
Brian Hackett
63dde015a5 [INFER] Fix merge botches. 2011-07-01 19:40:53 -07:00
Jason Orendorff
1ceaa9d843 Merge from tracemonkey to jsdbg2. 2011-07-01 19:22:47 -05:00
Jason Orendorff
1f245d40df Merge from tracemonkey to jsdbg2. 2011-07-01 19:02:40 -05:00
Brian Hackett
dee99963bb Merge TM -> JM 2011-07-01 16:24:32 -07:00
Jason Orendorff
18a3fe661b Two changes: Try to make tests/debug/gc-06.js more reliable with conservative GC. And remove the new compartment assertions from jsdbgapi.h, to avoid disturbing jsdbgapi.h-using code other than JSD (such as the shell's trap() function). 2011-07-01 10:30:16 -05:00
Jason Orendorff
6520ac2269 Adjust compartment assertions in the new implementations of jsdbgapi.h Trap entry points. Some are tightened up, but JS_ClearScriptTraps no longer asserts, as that caused a test to fail in debug builds. 2011-06-29 10:16:55 -05:00
Jason Orendorff
ada69f18d9 Fix test jit-test/tests/debug/Debug-ctor-03.js: only expect new Debug(parent) to fail if parent really cannot be put into debug mode. 2011-06-28 18:08:49 -05:00
Jason Orendorff
be6339e5c2 Add breakpoints.
This adds a new per-compartment implementation of breakpoints and
reimplements the jsdbgapi.h "trap" entry points on top of it. Most
jsdbgapi.h-using code will still work, but there is no longer a single
runtime-wide trapList protected by a lock. Embeddings must follow the
compartment rules for thread safety.

JS_ClearAllTraps was removed, replaced by the per-compartment API
JS_ClearAllTrapsForCompartment.

The new implementation asserts that the PC passed to JS_SetTrap is
actually an offset of an instruction, not just a random number. This
caused quite a few tests to fail; fixes are included.

Added Debug.Script.prototype.setBreakpoint, getBreakpoints,
clearBreakpoint, and clearAllBreakpoints; and
Debug.prototype.clearAllBreakpoints.

In addition to tests targeting the new functionality, this changeset
includes some tests for Debug.Script.prototype.getLineOffsets, which is
hard to test without breakpoints.
2011-06-28 16:06:34 -05:00
Jason Orendorff
4230b2f588 Revise comments on js::Debug::mark. Also inline Debug::sweepCompartment into Debug::sweepAll. 2011-06-28 14:48:22 -05:00
Jason Orendorff
8d25455a7a Add Script.prototype.getAllOffsets and getLineOffsets. 2011-06-28 14:46:00 -05:00
Jason Orendorff
5287606d54 Quick follow-up for thinko in bug 667925: lists can be empty. r=orange. 2011-06-28 12:28:02 -05:00
Jason Orendorff
8b9d92f2ef Bug 667925 - Line number is bogus on JSOP_TRACE opcodes. r=brendan. 2011-06-28 12:15:32 -05:00
Jeff Walden
0dfbe6d91b Bug 657298 - Various bugs in setting the length of an array. r=dmandelin
--HG--
extra : rebase_source : f27bd4d0141df46d7ef054c91c2601d3b50d9690
2011-06-28 10:05:53 -07:00
Jeff Walden
d2d6ef6dd4 Bug 667527 - Remove the array-length limitation from the method used in certain cases to append values to newborn arrays, and name it more generally than previously. r=dmandelin
--HG--
extra : rebase_source : 1f7ee1dc5f5bd3185a8c7e02c5fdf8dcef765cb4
2011-06-28 10:05:40 -07:00
Nikhil Marathe
309bac37f9 Bug 665355 - Make delegate object and ArrayBuffer share same prototype. r=mrbkap
--HG--
extra : rebase_source : a7bd7dce5e0fbc53097f56065f5d5290046bc691
2011-06-29 17:42:03 -07:00
Nikhil Marathe
052a90e97b Bug 665355 - Fix __proto__ recursion. r=mrbkap
--HG--
extra : rebase_source : b97d692c2318e3e071e68e2e1cec38ca9e614cb0
2011-06-29 17:41:35 -07:00
Nikhil Marathe
9a3fd541fa Bug 665914 - ArrayBuffer.prototype['byteLength'] crashes. r=mrbkap
--HG--
extra : rebase_source : 09fda2860e11457f516c3b0b0614bde7e3ff3a91
2011-06-29 17:38:10 -07:00
Blake Kaplan
4b185d0ef0 Bug 667630 - Don't treat the payload of a jsval as a pointer and make sure we unroot the value. r=luke
--HG--
extra : rebase_source : b3c5c3a29c859e2632ef97b0acc0a18842f9c52a
2011-06-29 17:36:09 -07:00
Blake Kaplan
e9d975ff6a Bug 664689 - Deal with wrappers-around-wrappers here. r=gal
--HG--
extra : rebase_source : af67e8aded9aa89874c0d74bc9fd48df2268eafc
2011-06-28 14:00:19 -07:00
Brad Lassey
3df774710d bug 661282 - make xpcshell run on android r=bsmedberg 2011-06-26 22:05:51 -04:00
Jason Orendorff
f87c801c95 Add Script.prototype.getOffsetLine. 2011-06-25 20:58:17 -05:00
Jason Orendorff
1c0e0f089a Add Frame.prototype.offset. 2011-06-25 19:13:19 -05:00
Igor Bukanov
e39b18efab bug 673760 - keep ArenaHeader::compartment until the GC finishes. r=anygregor 2011-07-24 18:14:10 +02:00
Ehsan Akhgari
8eaf1685d8 Backout bug 670205 and bug 673451 because of build bustage
--HG--
extra : rebase_source : 1125480c0f47d0388876c09648d64bdbd62d1206
2011-07-26 14:41:43 -04:00
Rob Arnold
30f4fb218a Bug 656320: don't delete properties if the delProperty op says not to, r=jorendorff 2011-07-26 11:41:44 -07:00
Bill McCloskey
eda8607b71 Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary) 2011-07-13 15:43:33 -07:00
Bill McCloskey
51329bbb65 Bug 670205 - Maintain JSOPTION_UNROOTED_GLOBAL in ContextHolder::ContextHolder (r=gal) 2011-07-13 15:43:31 -07:00
Hannes Verschore
a412f60330 Bug 673066: Check for GOTOX in processing source notes, r=dvander 2011-07-26 10:55:02 -07:00
Brendan Eich
a4bd07b516 Oops, forgot the test for bug 588061. 2011-07-26 08:40:15 -07:00