Commit Graph

16018 Commits

Author SHA1 Message Date
Kyle Huey
21cdfe78c0 Merge m-c to b-s. 2011-07-22 00:03:35 -07:00
Brian Hackett
6147c6fd37 [INFER] Rejoin into the interpreter from js_InternalThrow, bug 672123. 2011-07-21 23:03:10 -07:00
Brian Hackett
012ece7c31 [INFER] Don't emit malformed eleminc ops when incrementing XML names, bug 672153. 2011-07-21 21:27:23 -07:00
Brian Hackett
f67df11928 [INFER] Balance stack in decomposed INCELEM emitted for SETCALL, bug 672122. Fix build break. 2011-07-21 21:12:25 -07:00
Brian Hackett
e134ab18bd [INFER] Check for constant integer objects when hoisting array and property accesses, bug 671814. 2011-07-21 20:27:34 -07:00
Brian Hackett
dda30fa4b2 Merge MC -> JM 2011-07-21 18:53:37 -07:00
Brian Hackett
baf48d73e8 [INFER] Fix build breaks, orange. 2011-07-21 17:17:25 -07:00
Kyle Huey
4682f37f8c Bug 585015: Invoke header.py as a native command. r=glandium 2011-07-21 17:01:45 -07:00
Luke Wagner
e8188afccb Backout out bug 672026 for causing mobile startup crashes 2011-07-21 16:39:10 -07:00
Jason Orendorff
0be0bd62cf Address review comments from billm (bug 672829 comment 15). 2011-07-21 18:14:33 -05:00
Jason Orendorff
b01a686753 Address review comments from Waldo (bug 672829 comment 26). 2011-07-21 17:38:05 -05:00
Jason Orendorff
a03f15a1eb Address review comments from Waldo (bug 672829 comment 24). 2011-07-21 17:36:09 -05:00
Kyle Huey
aeb493ded5 Bug 672938: Make pythonpath.py work as a pymake native command. r=ted 2011-07-21 15:07:33 -07:00
Jason Orendorff
30ecf8305b Address review comments from Waldo (bug 672829 comment 23). 2011-07-21 16:23:21 -05:00
Jason Orendorff
254ba76233 Address review comments from dvander (bug 672829 comment 17). 2011-07-21 15:46:04 -05:00
Brian Hackett
6cedc75bac [INFER] Make TypeObject a GC thing, remove lazily created type objects on GC, bug 669969. 2011-07-21 07:28:01 -07:00
Mike Hommey
81927e24f3 Backed out changeset e2c917e0bc31 (bug 671804) because of xpcshell orange 2011-07-21 11:14:06 +02:00
Mike Hommey
34c4b1bb29 Bug 671804 - Provide NS_APP_PREF_DEFAULTS_50_DIR and NS_APP_PREFS_DEFAULTS_DIR_LIST in xpcshell dir provider. r=bsmedberg 2011-07-21 09:57:07 +02:00
Ginn Chen
02f6d40f21 Bug 673850 - Fix YARR with Solaris Studio compiler. r=dmandelin. 2011-07-28 11:35:30 +08:00
Jason Orendorff
f8465f2924 Bug 637985 - Reimplement watchpoints using a JSObject bit. r=jimb. 2011-07-27 17:44:43 -05:00
Jason Orendorff
9b4065b6f0 Bug 651940 - When hashing a jsid, assert that js_CheckForStringIndex(id) == id. r=Waldo. 2011-07-27 17:44:29 -05:00
Blake Kaplan
4dce96c6be Bug 669228 - Don't use the dummy global as a real global. r=jorendorff 2011-07-27 12:33:33 -07:00
Blake Kaplan
f5da8f28a2 Fix bug 674182. r=jst 2011-07-27 12:29:26 -07:00
Bill McCloskey
e5b1c12c0c Bug 672687 - Fix rebasing mistake 2011-07-27 10:48:52 -07:00
Bill McCloskey
b87fbad118 Bug 672687 - Add more asserts for cross-compartment pointers in proxies (r=mrbkap) 2011-07-27 10:31:06 -07:00
Mike Hommey
2c6ed6f9c7 Bug 671804 - Provide NS_APP_PREF_DEFAULTS_50_DIR and NS_APP_PREFS_DEFAULTS_DIR_LIST in xpcshell dir provider. r=bsmedberg 2011-07-21 09:57:07 +02:00
Evan Shaw
114f8c6a2d bug 673072 - remove deprecated curl header curl/types.h from Breakpad includes. r=ted 2011-07-21 02:32:00 -04:00
Nicholas Nethercote
a29b258004 Bug 672694 - Add memory reporters to count compartments. r=gal. 2011-07-21 00:20:47 -07:00
Nicholas Nethercote
f3aebefb11 Bug 669611 - Add memory reporter for GC heap fragmentation. r=jlebar. 2011-07-20 21:08:24 -07:00
Dão Gottwald
eef805ec9f Backed out changeset e25da7cc7c63 2011-07-21 05:25:34 +02:00
Bill McCloskey
6e203755b1 Bug 672112 - Fix PICTable bug in tracer (r=dmandelin) 2011-07-20 17:31:51 -07:00
Jeff Walden
252a1b2636 Bug 672854 - Crash when a syntax error is encountered immediately after the |in| in a for-in loop header. NOT REVIEWED YET
--HG--
extra : rebase_source : 875a214b0d0b140649b0845fb649c5c4926e4804
2011-07-20 14:26:57 -07:00
Makoto Kato
b55f8d896d Bug 669564 - XMM6 and XMM7 aren't scratch register on Win64 ABI. r=dvander 2011-07-22 17:58:26 +09:00
Jason Orendorff
3601afef8b Revert some unnecessary and incompatible changes I made to JS_DumpHeap in rev 2560cd08c828. 2011-07-20 12:01:02 -05:00
Jason Orendorff
6622960d6e Change comments in jsdbg.cpp to conventional style. 2011-07-20 11:05:36 -05:00
Jason Orendorff
4b246b5b3e Cleanup for review. This undoes some changes made earlier to tests, fixes some formatting errors, deletes some dead code, and fixes a bug in JSPROP_NATIVE_ACCESSORS support. 2011-07-20 10:39:01 -05:00
Kyle Huey
936a61f505 Bug 578478: Followup to placate the copy-paste test. 2011-07-19 15:55:22 -07:00
Kyle Huey
945bfa198d Bug 578478: Switch to pyxpidl for header generation. Parts by bsmedberg, with r=jorendorff,khuey, and parts by me, with r=bsmedberg 2011-07-19 14:46:25 -07:00
Kyle Huey
83c42e48af Merge m-c to b-s. 2011-07-19 08:50:02 -07:00
Brian Hackett
4126309311 [INFER] Fix busted jstests. 2011-07-19 07:21:33 -07:00
Jason Orendorff
684476de93 Use reserved slots rather than Debugger fields for hooks. 2011-07-19 08:27:03 -05:00
Mike Hommey
2785b088eb Bug 551138 - Allow to build against system libffi. r=ted 2011-07-22 08:47:57 +02:00
Nicholas Nethercote
ca8a2e6e49 Bug 672732 - Don't report per-compartment measurements that have zero bytes. r=gal. 2011-07-21 17:39:01 -07:00
Chris Leary
51af6b197d Bug 673052: Fix JS shell option parser argument leak. (r=dvander) 2011-07-21 12:14:20 -07:00
Luke Wagner
d8af27d8bc Bug 672283 - eval cache should hit if both 'principals' and 'script->principals' are null (r=mrbkap) 2011-07-18 17:39:28 -07:00
Luke Wagner
de46d72752 Bug 672026 - Ensure that there is an object principals finder during early startup (r=mrbkap) 2011-07-18 17:37:19 -07:00
Jason Orendorff
052fe6b23a In JSCompartment::sweepBreakpoints, enumerate the breakpoints safely instead of reading freed memory. 2011-07-18 16:57:39 -05:00
Ehsan Akhgari
34ec9e0587 Merge mozilla-central and mozilla-inbound 2011-07-18 18:16:25 -04:00
Ehsan Akhgari
b12177a76c Backout changeset fdddabd345b9 and changeset 3857a4309fc3 (bug 649537) because of three mochitest-3 intermittent failures which seem to be caused by this on Windows debug builds 2011-07-18 18:14:59 -04:00
Jason Orendorff
671bbf0bb1 Merge mozilla-central to jsdbg2. 2011-07-18 10:58:56 -05:00
Ben Turner
3b5744241b Bug 649537 - 'Workers: Make one OS thread and JS runtime per worker, and lose XPConnect'. r=sicking+mrbkap.
--HG--
rename : dom/src/threads/Makefile.in => dom/workers/Makefile.in
rename : dom/src/threads/test/Makefile.in => dom/workers/test/Makefile.in
rename : dom/src/threads/test/WorkerTest.jsm => dom/workers/test/WorkerTest.jsm
rename : dom/src/threads/test/WorkerTest_badworker.js => dom/workers/test/WorkerTest_badworker.js
rename : dom/src/threads/test/WorkerTest_subworker.js => dom/workers/test/WorkerTest_subworker.js
rename : dom/src/threads/test/WorkerTest_worker.js => dom/workers/test/WorkerTest_worker.js
rename : dom/src/threads/test/atob_worker.js => dom/workers/test/atob_worker.js
rename : dom/src/threads/test/chromeWorker_subworker.js => dom/workers/test/chromeWorker_subworker.js
rename : dom/src/threads/test/chromeWorker_worker.js => dom/workers/test/chromeWorker_worker.js
rename : dom/src/threads/test/closeOnGC_server.sjs => dom/workers/test/closeOnGC_server.sjs
rename : dom/src/threads/test/closeOnGC_worker.js => dom/workers/test/closeOnGC_worker.js
rename : dom/src/threads/test/close_worker.js => dom/workers/test/close_worker.js
rename : dom/src/threads/test/fibonacci_worker.js => dom/workers/test/fibonacci_worker.js
rename : dom/src/threads/test/importScripts_worker.js => dom/workers/test/importScripts_worker.js
rename : dom/src/threads/test/importScripts_worker_imported1.js => dom/workers/test/importScripts_worker_imported1.js
rename : dom/src/threads/test/importScripts_worker_imported2.js => dom/workers/test/importScripts_worker_imported2.js
rename : dom/src/threads/test/importScripts_worker_imported3.js => dom/workers/test/importScripts_worker_imported3.js
rename : dom/src/threads/test/importScripts_worker_imported4.js => dom/workers/test/importScripts_worker_imported4.js
rename : dom/src/threads/test/json_worker.js => dom/workers/test/json_worker.js
rename : dom/src/threads/test/location_worker.js => dom/workers/test/location_worker.js
rename : dom/src/threads/test/longThread_worker.js => dom/workers/test/longThread_worker.js
rename : dom/src/threads/test/navigator_worker.js => dom/workers/test/navigator_worker.js
rename : dom/src/threads/test/newError_worker.js => dom/workers/test/newError_worker.js
rename : dom/src/threads/test/recursion_worker.js => dom/workers/test/recursion_worker.js
rename : dom/src/threads/test/relativeLoad_import.js => dom/workers/test/relativeLoad_import.js
rename : dom/src/threads/test/relativeLoad_sub_import.js => dom/workers/test/relativeLoad_sub_import.js
rename : dom/src/threads/test/relativeLoad_sub_worker.js => dom/workers/test/relativeLoad_sub_worker.js
rename : dom/src/threads/test/relativeLoad_sub_worker2.js => dom/workers/test/relativeLoad_sub_worker2.js
rename : dom/src/threads/test/relativeLoad_worker.js => dom/workers/test/relativeLoad_worker.js
rename : dom/src/threads/test/relativeLoad_worker2.js => dom/workers/test/relativeLoad_worker2.js
rename : dom/src/threads/test/simpleThread_worker.js => dom/workers/test/simpleThread_worker.js
rename : dom/src/threads/test/suspend_iframe.html => dom/workers/test/suspend_iframe.html
rename : dom/src/threads/test/suspend_worker.js => dom/workers/test/suspend_worker.js
rename : dom/src/threads/test/terminate_worker.js => dom/workers/test/terminate_worker.js
rename : dom/src/threads/test/testXHR.txt => dom/workers/test/testXHR.txt
rename : dom/src/threads/test/test_404.html => dom/workers/test/test_404.html
rename : dom/src/threads/test/test_atob.html => dom/workers/test/test_atob.html
rename : dom/src/threads/test/test_chromeWorker.html => dom/workers/test/test_chromeWorker.html
rename : dom/src/threads/test/test_chromeWorker.xul => dom/workers/test/test_chromeWorker.xul
rename : dom/src/threads/test/test_chromeWorkerJSM.xul => dom/workers/test/test_chromeWorkerJSM.xul
rename : dom/src/threads/test/test_close.html => dom/workers/test/test_close.html
rename : dom/src/threads/test/test_closeOnGC.html => dom/workers/test/test_closeOnGC.html
rename : dom/src/threads/test/test_errorPropagation.html => dom/workers/test/test_errorPropagation.html
rename : dom/src/threads/test/test_fibonacci.html => dom/workers/test/test_fibonacci.html
rename : dom/src/threads/test/test_importScripts.html => dom/workers/test/test_importScripts.html
rename : dom/src/threads/test/test_json.html => dom/workers/test/test_json.html
rename : dom/src/threads/test/test_location.html => dom/workers/test/test_location.html
rename : dom/src/threads/test/test_longThread.html => dom/workers/test/test_longThread.html
rename : dom/src/threads/test/test_navigator.html => dom/workers/test/test_navigator.html
rename : dom/src/threads/test/test_newError.html => dom/workers/test/test_newError.html
rename : dom/src/threads/test/test_recursion.html => dom/workers/test/test_recursion.html
rename : dom/src/threads/test/test_relativeLoad.html => dom/workers/test/test_relativeLoad.html
rename : dom/src/threads/test/test_simpleThread.html => dom/workers/test/test_simpleThread.html
rename : dom/src/threads/test/test_suspend.html => dom/workers/test/test_suspend.html
rename : dom/src/threads/test/test_terminate.html => dom/workers/test/test_terminate.html
rename : dom/src/threads/test/test_threadErrors.html => dom/workers/test/test_threadErrors.html
rename : dom/src/threads/test/test_threadTimeouts.html => dom/workers/test/test_threadTimeouts.html
rename : dom/src/threads/test/test_throwingOnerror.html => dom/workers/test/test_throwingOnerror.html
rename : dom/src/threads/test/test_xhr.html => dom/workers/test/test_xhr.html
rename : dom/src/threads/test/test_xhrAbort.html => dom/workers/test/test_xhrAbort.html
rename : dom/src/threads/test/threadErrors_worker1.js => dom/workers/test/threadErrors_worker1.js
rename : dom/src/threads/test/threadErrors_worker2.js => dom/workers/test/threadErrors_worker2.js
rename : dom/src/threads/test/threadErrors_worker3.js => dom/workers/test/threadErrors_worker3.js
rename : dom/src/threads/test/threadErrors_worker4.js => dom/workers/test/threadErrors_worker4.js
rename : dom/src/threads/test/threadTimeouts_worker.js => dom/workers/test/threadTimeouts_worker.js
rename : dom/src/threads/test/throwingOnerror_worker.js => dom/workers/test/throwingOnerror_worker.js
rename : dom/src/threads/test/xhrAbort_worker.js => dom/workers/test/xhrAbort_worker.js
rename : dom/src/threads/test/xhr_worker.js => dom/workers/test/xhr_worker.js
2011-07-17 15:09:13 -04:00
Brian Hackett
5d950cd220 [INFER] Decompiler and Windows interpreter fixes for decomposed property ops, bug 647624. 2011-07-16 16:40:47 -07:00
Brian Hackett
b93d6270e7 [INFER] Decomposed prop fixes for XDR, INDEXBASE and the tracer, bug 647624. 2011-07-16 13:47:58 -07:00
Brian Hackett
b69580a796 [INFER] Decompose property inc/dec ops for JM and TI, bug 647624. 2011-07-16 08:25:22 -07:00
Brian Hackett
2291066d7c [INFER] Add rejoins for call sites that can trigger GC, bug 671943. 2011-07-16 07:15:34 -07:00
Brian Hackett
14ffb09713 [INFER] Fix merge issues. 2011-07-15 20:38:18 -07:00
Matheus Kerschbaum
55aebc79d4 Bug 579571 - Remove --enable-timeline support. r=tglek 2011-07-17 12:07:42 +02:00
Jeff Walden
468332b8f0 Bug 607371 - Throw an exception when an excessively large arguments array is passed to Function.prototype.apply, rather than silently passing only the maximum number of supported elements. Silently treating the array as smaller than it actually is is prone to silent errors; throwing an exception is immediate and obvious. r=luke
--HG--
extra : rebase_source : 3ae04ac924cd28199ba0e48d90dba2f7c5a2c563
2011-07-25 20:33:02 -07:00
Jeff Walden
518fa9f4fa Bug 674775 - Implement js::IndexToString to get a JSString corresponding to a uint32_t. r=luke
--HG--
extra : rebase_source : 4933683a4d051521d2ba3bad0f16b5f5dc01e03d
2011-07-27 17:09:12 -07:00
Marty Rosenberg
8c038a81e6 Bug 674143 - Change jsval tag representation; change ARM mjit backend to test tags using a single comparison (r=dvander,luke) 2011-07-29 16:24:30 -07:00
Boris Zbarsky
2bf85f93fe Bug 671453. Fix use of [implicit_jscontext] with non-quickstubbed setters. r=mrbkap 2011-07-29 14:30:00 -04:00
Luke Wagner
7c2aed79f4 Fix 22134b2abde4 for non-JS_THREADSAFE builds (r=burning) 2011-07-29 11:14:46 -07:00
Luke Wagner
17beadfb85 Bug 672971 - Remove SetSafeJSContext (r=bz,bent)
--HG--
extra : rebase_source : f7eb1dcd3bc8ae1bfda0a89d044c0da9621d99e9
2011-07-27 16:15:50 -07:00
Luke Wagner
807852f5c4 Bug 669617 - Fix debug-only null-deref in JS_IsRunning (r=igor)
--HG--
extra : rebase_source : f9f1215705f36bb2d37553f92a3058b73304bd6f
2011-07-28 17:59:43 -07:00
Nick Fitzgerald
9098b89abc Bug 674283 - Add source map urls to JSScript. r=jorendorff. 2011-07-29 10:44:45 -05:00
Jeff Walden
3269a728a3 Various minor formatting tweaks, de-indentation, &c. to Utf8ToOneUcs4Char. No change to actual logic in the code. r=sparky
--HG--
extra : rebase_source : f414988004996f16fd01b82263668a8befb727b2
2011-07-15 15:41:47 -07:00
Brian Hackett
89a7a7eac5 Merge MC -> JM 2011-07-15 14:40:15 -07:00
Jeff Walden
55a0fe3577 Bug 520095 - Don't censor U+FFFE and U+FFFF, when decoded by decodeURI or decodeURIComponent, to U+FFFD: just return the character. r=masa141421356@gmail.com
--HG--
extra : rebase_source : 6f93df1bb7e1c6f5621595a277486ad14ac2dcf1
2011-07-15 14:15:55 -07:00
Brad Lassey
d7d64adac1 bug 672939 - fennec package name repeats itself with NDKr5 and greater r=khuey 2011-07-20 17:02:04 -04:00
Brendan Eich
0c46987a59 Bug 671947 - Unqualified function invocation uses the global object the property was gotten from as |this| (r=luke). 2011-07-20 12:48:12 -07:00
Chris Leary
ee638a87ca Bug 613820: Regexp forwards ref in quantified parens test. (r=dmandelin) 2011-07-20 10:12:36 -05:00
Brendan Eich
1cc4cea754 Bug 621954 - common BindLocalVariable harder in jsparse.cpp (r=cdleary). 2011-07-20 09:24:28 -05:00
Michael Wu
9e2c6a0264 Bug 664898 - Cleanup startup cache api, r=taras 2011-07-20 00:39:09 -07:00
Makoto Kato
b1f75f3be0 Bug 672450 - C4233/C4267 warning for jsobj.h, vm/String.h and jsatom.h. r=luke 2011-07-20 14:07:51 +09:00
Nicholas Nethercote
0089d27bf7 Bug 672439 - Avoid duplicate names for system compartment reporters. r=gal. 2011-07-19 16:59:16 -07:00
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
Brian Hackett
c091101935 [INFER] Lazily create type objects for singleton JS objects, bug 670185. 2011-07-15 10:14:07 -07:00
Gary Kwong
f2fcb005ed Merge TM -> JM. Last merge from TM to grab 4 changesets prior to the start of the experiment to use mozilla-inbound instead of tracemonkey. 2011-07-15 23:18:10 +08: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
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
Jan de Mooij
e1aea9d278 [INFER] Enable typed array paths if the type set contains multiple objects with the same array type, bug 670885. r=bhackett 2011-07-14 16:42:37 +02: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
Steve Fink
d2ab0d6e3f Bug 671035 - Remove windows.h from jsprobes.h by moving ETW support into jsprobes.cpp (r=dmandelin)
--HG--
extra : rebase_source : a290b4a967fe86ce4ba70dc3c8f2f6a3698f6b48
2011-07-13 17:26:58 -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
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
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
Jan de Mooij
04cc1b8aa0 [INFER] Inline typed array access if the object may be undefined, bug 670885. r=bhackett 2011-07-13 15:13:04 +02: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
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
Jan de Mooij
9444dd6946 [INFER] Disable inline paths for typed arrays on ARM and fix a regalloc problem, bug 663485. r=bhackett 2011-07-12 18:50:04 +02: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
Daniel Holbert
d7b0e4ac9e Bug 670794: Remove unused variable 'forInLet' from jsemit.cpp. r=waldo 2011-07-11 18:57:45 -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
Luke Wagner
5488719adc Fix GCC warning from 60b1a6a58531 (r=red) 2011-07-11 11:03:27 -07:00
Jan de Mooij
3164866fe0 [INFER] Add inline paths for typed arrays, bug 663485. r=bhackett 2011-07-11 19:28:58 +02:00
Luke Wagner
75272a45d4 Bug 669044 - Undo changes to tracer assert (r=dvander) 2011-07-11 10:22:27 -07:00
Luke Wagner
df1d1c90a9 Bug 669043 - Don't assert when the decompiler temporarily changes script->code (r=waldo) 2011-07-11 10:21:31 -07:00
Jason Orendorff
b25a91e697 Merge from tracemonkey to jsdbg2. 2011-07-11 08:53:27 -05:00
Mike Hommey
7faca4feac Bug 670323 - Fixes for nanojit on ARMv4T. r=jbramley
--HG--
extra : convert_revision : 6943e40c4f0a2f9b3c0551306ce89aa535579178
2011-07-09 09:56:27 +02:00
Steven Johnson
8814b013c4 Bug 672722 - [MIPS] Use unsigned comparison for LIR_leui (r=wmaddox)
--HG--
extra : convert_revision : aa21f56df4d21e27c3b7a9770dfb08f275388751
2011-07-20 17:03:45 -07:00
Jason Orendorff
9c28130121 Back out 305a3a0e26fd (bug 680428). 2011-08-23 15:36:48 -05:00
Jason Orendorff
9b811bb7ac Back out 62f8ca0717d6 (bug 658491). 2011-08-23 15:35:50 -05:00
Jason Orendorff
00a18c6eef Back out d44b0dd28b0d (bug 673125 part 1). 2011-08-23 15:35:15 -05:00
Jason Orendorff
98bf4dad58 Back out 7196b000f9df (bug 673125 part 2). 2011-08-23 15:34:59 -05:00
Jason Orendorff
dfa1defc67 Back out 331146c93ebe (bug 673125 part 3). 2011-08-23 15:34:31 -05:00
Jason Orendorff
62a105a5e7 Back out 4a86c9387193 (bug 673125 part 4) due to red and orange. 2011-08-23 15:32:23 -05:00
Jim Blandy
a140873e5f Bug 673125: Implement the Debugger.Frame.prototype.onStep accessor. r=jorendorff.
--HG--
extra : rebase_source : 54859ba90ebb5da227f6b4460acc6df1bba78107
2011-08-23 14:45:36 -05:00
Jim Blandy
587ee8b976 Bug 673125: Provide stack-allocated vectors of JSObject pointers. r=luke.
--HG--
extra : rebase_source : 95f862207b19c1923871135e21b8f0839270f24a
2011-08-23 14:45:21 -05:00
Jim Blandy
0cf47b01d9 Bug 673125: Have each JSScript maintain both a count and a flag indicating whether it should be in single-step mode. r=jorendorff.
The rationale is explained in the comments in jsscript.h.

--HG--
extra : rebase_source : 0d537b172ce70c049269b1f09380f0eeabec9c92
2011-08-23 14:44:22 -05:00
Jim Blandy
5c0272ce1c Bug 673125: Maintain a list of active js::Interrupt frames, their FrameRegs, and their interruptors. r=jorendorff.
The comment atop InterpreterFrames explains why this is needed, although it
is only used by later patches in the series.

--HG--
extra : rebase_source : 8cef90aea28f4fd71091a7bb6effcfcc7c8b5aa0
2011-08-23 14:44:03 -05:00
Brian Hackett
5b644de997 Restore frame pointer at exception block entry before invoking any trap, bug 658491. r=jorendorff.
--HG--
rename : js/src/jit-test/tests/debug/onEnterFrame-05.js => js/src/jit-test/tests/debug/onEnterFrame-04.js
extra : rebase_source : 6790cf37ea7eec05e768940710a97b37f30a1ebf
2011-08-23 14:43:26 -05:00
Jason Orendorff
6514983537 Bug 680428 - onEnterFrame does not work with tracejit. r=dvander.
--HG--
rename : js/src/jit-test/tests/debug/onEnterFrame-05.js => js/src/jit-test/tests/debug/onEnterFrame-04.js
extra : rebase_source : f3c4ff14ae6a95e7c891ea5aac2cfee8c2e28c68
2011-08-23 14:42:17 -05:00
Jacek Caban
87e30c7819 Bug 680872 - PolyIC.cpp fails to compile on mingw-w64 r=jorendorff 2011-08-23 17:36:04 +02:00
Mike Hommey
531e9957c1 Bug 680642 - Don't enable YARR JIT on MIPS, as the implementation is missing. r=dmandelin 2011-08-23 16:13:55 +02:00
Mike Hommey
8aeec92c04 Bug 670719 - Only add -DENABLE_JIT=1 to CXXFLAGS if any of trace/method/yarr jit is enabled. r=dmandelin 2011-08-23 16:13:21 +02: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
Brian Hackett
87755b2826 Merge TM -> JM 2011-07-08 17:52:15 -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
eb4a0fc5ea Allow JaegerShot to only partially execute frames, bug 665815. r=luke 2011-07-07 21:02:57 -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
Joey Armstrong
55c77d2cc5 bug 662833 - split rules.mk, dup *.mk beneath js/src/config 2011-07-07 11:29:41 -04:00
Brian Hackett
369b0a54d3 Fix bustage for mjit-disabled, tjit-disabled, and Linux64 warnings-as-errors. 2011-08-30 08:03:34 -07:00
Ed Morley
2e49ad6665 Merge mozilla-central to mozilla-inbound 2011-08-30 14:28:34 +01:00
Ed Morley
32d6fde8fd Backout 5f430b3d9aa4 (bug 675150) for possible OS X 10.5 Ts regression; a=dao 2011-08-30 13:59:40 +01:00
Rafael Ávila de Espíndola
01691bce29 Bug 680515 - Enable strict aliasing in js again. r=khuey. 2011-08-30 08:48:26 -04:00
Ginn Chen
da21159e81 Bug 572983 ctypes.Int64(0x7fffffffffffffff) and ctypes.Int64(0x8000000000000000) does not throw type error on SPARC r=jorendorff 2011-08-30 13:26:53 +08: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
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
Shu-yu Guo
8453d326d9 Add swap and pick support to TI. bug 668353. r=bhackett 2011-07-05 22:54:19 -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
Brian Hackett
e92d4dcd3e Store base of data directly in typed arrays, bug 677743. r=mrbkap 2011-08-10 06:14:04 -07:00
Mounir Lamouri
7bb72c71fc Bug 673817 - Improve auto-discovering of Android platform directory. r=blassey
Note that this will be fully functionnal when a new NSPR snapshot will be
pushed to the tree.
2011-08-10 14:22:43 +02:00
Mounir Lamouri
cf338ddf3c Bug 673799 - Improve auto-discovering of Android toolchain directory. r=blassey
Note that this will be fully functionnal when a new NSPR snapshot will be
pushed in the tree.
2011-08-10 14:23:19 +02: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
Luke Wagner
4263a80f79 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 : b20ddca63da88a8efe2f5dc06364785aebe8b9ea
2011-07-01 14:11:31 -07:00
Daniel Holbert
5935e67213 Add static_cast<void*> to pointer arg for %p in format string, to to fix GCC warning. No Bug #, r=jorendorff 2011-08-11 15:19:56 -07:00
Jason Orendorff
0a7f125baa Back out rev 28f58b7bc69e (bug 672804) due to likely Dromaeo regression.
--HG--
extra : rebase_source : 592b309169cd94a3f242c6bf21f94a04f55f8d4b
2011-08-11 16:45:01 -05:00
Jason Orendorff
af9ef5c899 Fix SpiderMonkey GCC compiler warnings. No bug#, r=adrake. 2011-08-11 14:48:42 -05:00
Daniel Holbert
110f0f6999 Bug 665354 followup: Revert s/0/NULL/ in jsgc.cpp to fix GCC warning. r=jorendorff 2011-08-11 11:47:50 -07:00
Daniel Holbert
68b46f5f7e Bug 677993: Add a cast to fix 'cast to pointer from integer of different size' gcc warning in jsobjinlines.h r=bhackett 2011-08-11 11:15:08 -07:00
Jason Orendorff
06d366fad2 Bug 613452 - "Assertion failure: obj->isExtensible()" with Object.seal, sharps. r=Waldo. 2011-08-11 13:24:56 -05: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
Neil Rashbrook
73f5a9c4ec Bug 660526 Remove useless use of PromiseFlatCString r=sayrer 2011-08-15 23:56:46 +01: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
Steve Fink
67a675cdaa Bug 667056 - Fix when function callbacks are invoked (r=luke) 2011-06-24 17:13:19 -07:00
Jim Blandy
8659cd535a Test that we get the same Debug.Script instance for different closures made from the same 'function' expression/declaration/statement. 2011-06-24 14:10:26 -07:00
Jim Blandy
6176d9b411 Fix 'if' in DebugObject_trace: the scope of a declaration includes its initializer. 2011-06-24 14:02:23 -07:00
Rob Arnold
25cbe701b4 Bug 563462 - Remove Photon bits from the build-system. r=ted,vlad,jwalden 2011-06-24 16:49:00 -04:00
ABE Hiroki
f1193d87d2 Bug 672980 - M4 macro name should be quoted in AC_DEFUN. r=ted
fixes for js/src f+=Callek
2011-08-09 14:27:00 -04:00
Nicholas Nethercote
e513e8716a Bug 677466 - Add memory reporter for the atoms table. r=luke. 2011-08-09 22:33:27 -07:00
Jim Blandy
7f56a280da (No bug): Pass string to JS_ReportErrorNumber, as required by JSMSG_MORE_ARGS_NEEDED. r=jorendorff 2011-08-09 20:45:02 -07:00
Paul Biggar
6dd6226a39 Bug 677433: Run valgrind jit-tests during |make check| (r=nnethercote) 2011-08-09 15:24:55 -07:00
Ehsan Akhgari
25cc96f9fa Backout changeset d9f175f9a2e4 (bug 429070) because of mochitest failures 2011-08-09 18:17:04 -04:00
arno renevier
96a4e18b36 Bug 429070 - do not expose Components.interfaces and Components.interfaceByID to content; r=mrbkap 2011-08-09 16:59:07 -04:00
Matt Brubeck
401dea465c Back out 77c924963f36, e1aae4baeaa4, ac20c581f617 (bug 643213, bug 586297, bug 669132) because of Android test failures. 2011-08-09 12:01:47 -07:00
Jacob Bramley
4a1fee7460 Bug 643213: Fix signed integer arithmetic used to construct ARM load instructions. [r=Marty] 2011-08-09 17:00:06 +01:00
Jacob Bramley
856347601d Bug 586297: Optimize away literal pool loads on ARM. [r=Marty] 2011-08-09 16:58:11 +01:00
Jacob Bramley
e3cc9e56c6 Bug 669132: Optimize VFP memory accesses on ARM. [r=cdleary,Marty] 2011-08-09 16:58:11 +01:00
Mounir Lamouri
6aee473a58 Backout bug 563462, bug 675519, bug 674647, bug 341223 and bug 672980 to fix perma-orange. 2011-08-09 14:50:55 +02:00
Rob Arnold
345f965c26 Bug 563462 - Remove Photon bits from the build-system. r=ted,vlad,jwalden 2011-06-24 16:49:00 -04:00
Justin Wood
f20a7276c2 Merge from m-c 2011-08-09 06:31:01 -04:00
Mike Hommey
098183f48a Bug 677159 - Don't allow to include config/config.mk twice. r=khuey 2011-08-09 09:07:48 +02:00
Mike Hommey
5da7dccc2d Bug 677370 - Fixup Android configure.in bits. r=blassey 2011-08-09 09:07:28 +02:00
Steve Fink
29117f5284 Bug 667076 - Add a CHECK_EQUAL for testing whether non-jsval types are equal and report expected and observed values on failure (r=luke)
--HG--
extra : rebase_source : fb98cbdcaa63abbfe718d3dfc5b3ac1b0d3a64da
2011-06-24 13:11:28 -07:00
Jason Orendorff
cebed13303 Support disabling debug mode in a compartment with scripts on the stack. Dump the debug-mode JIT code during a later GC. 2011-06-23 12:25:48 -05:00
Shu-yu Guo
c34a1db790 [INFER] Fix colorized spew bug with ANSI reset codes. r=mrbkap 2011-06-22 17:28:19 -07:00
Jason Orendorff
29b34b6b75 Change js::Debug::heldScripts to have pointers to debuggee-compartment objects as keys, rather than wrappers.
--HG--
rename : js/src/jit-test/tests/debug/Script-gc.js => js/src/jit-test/tests/debug/Script-gc-01.js
2011-06-20 18:30:36 -05:00
Jason Orendorff
4370701afc Change js::Debug::objects to have referents as keys, rather than cross-compartment wrappers of referents.
This adds support for cross-compartment WeakMaps and changes js::Debug::objects to be one. It eliminates the vexing JSMSG_DEBUG_STREAMS_CROSSED error messsage.

The GC interaction between jsgc and jsdbg is a little more complex now; like the cross-compartment wrapper maps, Debug::objects must be marked (just once) during per-compartment GC. In other ways this is a simplification.
2011-06-20 18:26:05 -05:00
Jason Orendorff
7b711756ef Fix Debug-ctor-03.js (regression: the exception is being thrown in the wrong compartment since rev e05d3da5866a) and make removeDebuggee throw if it would disable debug mode in a compartment with scripts on the stack. 2011-06-20 15:33:53 -05:00
Joey Armstrong
029c8a6e4a Bug 661855 - uniq.pl quote regex dot chars in path. r=ted 2011-06-20 15:38:46 -04:00
Jason Orendorff
9945b3dbb5 GlobalObject::getOrCreateDebuggers must be called in the global object's compartment, since it may create an object. 2011-06-20 14:06:42 -05:00
Marco Bonardo
13b5cd08c3 Merge mozilla-inbound and mozilla-central 2011-07-02 10:39:08 +02:00
Josh Matthews
ee206f1e3a Bug 661927 - Add Cu.schedulePreciseGC to allow for a GC to run with no JS code running. r=mrbkap 2011-07-01 02:08:48 -04:00
Ehsan Akhgari
68be621524 Merge mozilla-central and mozilla-inbound 2011-06-30 05:08:20 -04:00
Nicholas Nethercote
3d7ea7b395 Bug 661474 - Add per-compartment memory reporters. r=wmccloskey, dolske. 2011-06-30 15:44:17 +10:00
Kyle Huey
056c645035 Bug 667652: Add a JS_FRIEND_API to get at the current offset in a structured clone buffer. r=jorendorff. 2011-06-29 12:09:15 -07:00
Ted Mielczarek
cc36c6b004 merge mozilla-central and build-system 2011-06-29 09:42:11 -04:00
Ted Mielczarek
fe1a94b3cf bug 664197 - bustage fix, sync js/src/config 2011-06-28 08:32:29 -04:00
Kyle Huey
6306507768 Bug 515492: Make jemalloc work on VS 2010. r=ted,pbiggar 2011-06-27 12:44:51 -07:00
Kyle Huey
ecb9c8319d Merge b-s to m-c 2011-06-25 10:13:14 -07:00
Ehsan Akhgari
b485786497 Merge mozilla-central into mozilla-inbound 2011-06-24 21:17:16 -04:00
Kyle Huey
cc6d5e1c20 Bug 665969: Make C4553 fatal. r=ted 2011-06-24 07:22:35 -07:00
Kyle Huey
2abb32fe43 Backed out changeset dd46aab5d8aa 2011-06-24 10:14:24 -07:00
Joey Armstrong
c1df99116b Bug 661885: Followup to placate check-sync-dirs.py. r=khuey 2011-06-24 09:23:15 -07:00
Marco Bonardo
acc6a474c6 Revert to changeset a87ee7550f6a due to incomplete backout 2011-06-24 17:23:04 +02:00
Kyle Huey
ab0723ab13 Bug 665969: Make C4553 fatal. r=ted 2011-06-24 07:22:35 -07:00
David Anderson
56ac2a8214 Fix ARM assert (no bug, r=cdleary). 2011-06-24 00:22:58 -07:00
Jonas Sicking
6c4113f213 Bug 658714 Part 2: Merge nsIDOMNSEventTarget into nsIDOMEventTarget. r=smaug 2011-06-23 19:17:59 -07:00
Igor Bazarny
39a01edf21 bug 570341 Initial implementation of web timing specification
r=smaug sr=biesi
2011-06-23 12:39:48 +02:00
Ehsan Akhgari
f742585a1f Merge mozilla-central into mozilla-inbound 2011-06-22 20:19:47 -04:00
Jason Orendorff
d90314e09c Initial support for Debug.Script instances. r=jorendorff, push=jorendorff. 2011-06-17 16:28:32 -05:00
Jason Orendorff
38ba6a702a Merge. 2011-06-17 11:12:33 -05:00
Matheus Kerschbaum
8a21fc0886 Bug 662000 part 2: Remove XPC_IDISPATCH_SUPPORT from the build-system and XPConnect. r=mrbkap
--HG--
extra : rebase_source : c456802fe36eef1e49381be996dbbdf820781206
2011-06-22 11:56:47 -04:00
Matheus Kerschbaum
8ce2e316c8 Bug 662000 part 1: Remove interfaces and tests. r=mrbkap
--HG--
extra : rebase_source : bb144170f64b1a46fc1e39dc97221b3e1734ae7a
2011-06-22 11:56:04 -04:00
Jonas Sicking
caef7c47a8 Bug 661980: Add ability to make interfaces scriptable but not scriptimplementable. r=bsmedberg 2011-06-16 12:21:25 -07:00
Jason Orendorff
a212e74aed Fix MSVC-only errors and a warning. 2011-06-16 10:25:10 -05:00
Brian Hackett
2a2f80872d [INFER] Add missing fixDoubleTypes for JSOP_IFEQ, JSOP_IFNE, bug 662082. 2011-06-16 06:38:11 -07:00
Luke Wagner
3f185cc410 Bug 15529 - Add missing copyright boilerplate to files in js/src, remove dead files (r=brendan,graydon,jimb)
--HG--
rename : js/src/perfect.js => js/src/tests/js1_1/regress/perfect.js
2011-06-21 10:26:22 -07:00
Ehsan Akhgari
73e4f8616d Backout changeset 5fe20ec0229c (bug 15529) because it breaks jsreftests 2011-06-21 18:52:32 -04:00
Luke Wagner
0e59a6d626 Bug 15529 - Add missing copyright boilerplate to files in js/src, remove dead files (r=brendan,graydon,jimb)
--HG--
rename : js/src/perfect.js => js/src/tests/perfect.js
2011-06-21 10:26:22 -07:00
Chris Leary
7922cf2289 Merge mozilla central and tracemonkey. 2011-06-20 16:49:20 -07:00
Gregor Wagner
08eca5db6e Bug 656120 - Change MaybeGC trigger. r=igor 2011-06-20 14:44:26 -07:00
Ehsan Akhgari
38dc29243c Merge the last green changeset on mozilla-inbound to mozilla-central 2011-06-20 16:06:04 -04:00
Jesse Ruderman
93544312de Add crashtest from bug 603146 2011-06-20 11:42:05 -07:00
Jesse Ruderman
35e087a1de Add crashtest from bug 601284 2011-06-20 11:42:05 -07:00
Jesse Ruderman
7f7c03f6d7 Add crashtest from bug 616930 2011-06-20 11:42:05 -07:00
Landry Breuil
4b1dcd4660 Bug 665040: "-not" is not a POSIX-compliant argument to find. Use "!" (r=khuey) 2011-06-17 15:48:00 -07:00
Rafael Avila de Espindola
ddc2ddc4ac Bug 641232 - Make HAS_XCODE_2_1 detection compatible with Xcode 4 - Remove unused configure bits. r=khuey 2011-06-20 10:40:58 +01:00
Paul Biggar
9fbd2b1e02 Bug 649939: Prevent crash from too much recursion in Iterator.prototype.next() (r=jwalden) 2011-06-16 17:00:31 -07:00
Luke Wagner
de6d0e2330 Bug 665189 - hoist JSString and family into vm/String{.h, -inl.h, .cpp} (r=njn) 2011-06-20 11:44:20 -07:00
Ehsan Akhgari
0b938f2384 Bug 662969 - Silence the clang warnings issued because of alignment requirements increase when compiling jsparse.h; r=Waldo
--HG--
extra : rebase_source : 8286bd6fd8a82d855c95d8a1ded01b54d73ba5a1
2011-06-17 15:59:47 -04:00
Ehsan Akhgari
8e90994c37 Bug 662964 - Silence the clang warnings issued because of alignment requirements increase when compiling jscntxt.h; r=Waldo
--HG--
extra : rebase_source : ec398625623f3cafd7c4373a85b099024ba05183
2011-06-17 15:59:47 -04:00
Ehsan Akhgari
4669405867 Bug 662962 - Silence the clang warnings issued because of alignment requirements increase when compiling jsscript.h; r=Waldo
--HG--
extra : rebase_source : 0aa530499bf3961b372a24a1a98d949a81ee2065
2011-06-17 15:59:47 -04:00
Ehsan Akhgari
940b078fd2 Bug 662961 - Silence the clang warnings issued because of alignment requirements increase when compiling jsstr.cpp; r=Waldo
--HG--
extra : rebase_source : 984f986f3de6c92cdb45cadeff40bc84b36406ca
2011-06-19 17:04:48 -04:00
Nicholas Nethercote
4cc5c61803 Bug 664647 - Work around MSVC 2005 PGO bug in GetJSObjectSlotsCallback and friends. r=khuey. 2011-06-20 09:01:37 +10:00
Igor Bukanov
b64bc1fb04 bug 601075 - followup to fix MSVC warings and adjust the testStringBufferMallocAccounting.js test to overwrite all conservative GC roots. 2011-06-19 19:41:46 +02:00
Shu-yu Guo
359e560eb5 [INFER] Colorize spew for constraints and typesets, bug 664583. r=bhackett 2011-06-15 19:22:27 -07:00
Jim Blandy
b9b63b7f8e Define new macro, THIS_DEBUGOBJECT_OWNER_REFERENT, which also provides the owning Debug. r=jorendorff, push=jorendorff. 2011-06-15 18:02:02 -05:00
Jim Blandy
088562e69d Comment fixes, assertions, and cleanups to Debug GC-related code. r=jorendorff, push=jorendorff. 2011-06-15 18:00:06 -05:00
Jim Blandy
f79cb0d6c7 Use WeakMap for the Debug::objects, the mapping from referents to Debug.Objects. r=jorendorff, push=jorendorff. 2011-06-15 17:53:26 -05:00
Jason Orendorff
fcfd80cfc5 Merge from TM. Huge merge. Stack changes from bug 656462. 2011-06-15 16:14:09 -05:00
Brian Hackett
60d958b4f4 [INFER] Don't mark or use return value in frames which are throwing, bug 664422. 2011-06-15 13:01:39 -07:00
Brian Hackett
f6d4a9c326 [INFER] Add missing monitor() call in stubs::Eval, bug 663910. 2011-06-15 12:20:13 -07:00
Brian Hackett
9f8045748c [INFER] Cleanup type info tracking object classes, track which type objects are definitely typed arrays, bug 663485. 2011-06-15 11:26:12 -07:00
Andrew McCreight
3f1b66195e Backout bug 653248 due to bug 667011 2011-06-15 10:55:58 -07:00
Andrew McCreight
9ad333dda5 backing out patch for bug 653248 due to bug 667011 2011-06-15 10:55:58 -07:00
Ehsan Akhgari
d6b4429b37 Merge mozilla-central and mozilla-inbound 2011-06-28 18:43:09 -04:00
Joe Drew
770bb721ef Merge m-c to m-i 2011-06-28 12:21:04 -04:00
Joe Drew
952b32c999 Merge last green changeset from mozilla-inbound to mozilla-central. 2011-06-28 12:11:31 -04:00
Kyle Huey
a5cab656de Merge b-s to m-c. 2011-06-28 08:54:26 -07:00
Chris Leary
31076ac1d6 Merge mozilla-central and tracemonkey. 2011-06-27 11:07:22 -07:00
Igor Bukanov
ba5e71d38e bug 666091 - custom file for GCTIMER output. r=anygregor 2011-06-22 14:33:39 +02:00
Jeff Walden
55a71f2ebf Style patrol followup to bug 665835. r=consistency
--HG--
extra : rebase_source : fe11c9f93246357209608ef6db85f2c147eb1b61
2011-06-24 14:36:13 -07:00
Chris Leary
a71d61104b Followup for bug 649576 GCC 4.3.3 warning. 2011-06-25 16:35:56 -07:00
Chris Leary
0780a149be Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke) 2011-06-24 14:22:30 -07:00
Paul Biggar
0e43edd30e Bug 666788: Remove JS_sscanf declaration, for which there is no definition (r=cdleary) 2011-06-24 16:12:40 -07:00
Luke Wagner
822bc8b69e Bug 666094 - InitJitFrameLatePrologue should do a better modeling generatePrologue (r=dvander) 2011-06-24 16:11:21 -07:00
David Mandelin
4c436c89cd Bug 666587: revert accidentally changed control flow in fun_getProperty, r=jwalden 2011-06-24 14:26:00 -07:00
Dave Herman
4fa36afd9e Bug 666852 - crash when yield occurs in comprehension RHS (r=cdleary) 2011-06-24 14:08:29 -04:00
Justin Lebar
169b00ccad Bug 664486 - Add page fault counts to about:memory on Linux and Mac. r=njn, sr=bz
--HG--
extra : rebase_source : 47dd7501dea7ae69e01828a5c730e8853739dc71
2011-06-16 14:34:09 -04:00
Jeff Walden
40bdc4ec2b Bug 671091 - Add DefinePropertiesAndBrand to abstract out most explicit branding. NOT REVIEWED YET
--HG--
extra : rebase_source : 9a48fc83a876c95e90c807eb0b007d35211eb41c
2011-06-15 10:15:37 -07:00
Brian Hackett
eb3dc76aac [INFER] Reenable typed array ICs when inference is disabled, bug 643842. 2011-06-15 08:29:33 -07:00
Brendan Eich
b2a9eace38 Inherited non-configurable accessor properties mis-reported as own properties (637994, r=jwalden). 2011-06-14 23:48:59 -07:00
Brendan Eich
a2fa4d23af No else after return. 2011-06-14 19:32:33 -07:00
Jim Blandy
a282ee62d3 Bug 660039: Provide a WeakMap usable from C++. r=jorendorff
Remove WeakMap class; implement the JavaScript object using functions static to jsweakmap.cpp.

Define a new WeakMap class template, parameterized by Key and Value types,
and accepting a MarkPolicy argument saying how to mark them.

Add assertions to check that we check and set the right mark bits, and
tests that trip them in the presence of mistakes in earlier revisions of
this patch.
2011-06-14 19:21:47 -07:00
Jim Blandy
7cdc628e2a Bug 661567: Use RuntimeAllocPolicy in JS WeakMap objects, not ContextAllocPolicy. r=jorendorff 2011-06-14 19:21:47 -07:00
Jim Blandy
900b1f6059 Bug 661567: Implement RuntimeAllocPolicy, providing proper memory accounting in GC'd objects that live longer than a JSContext. r=luke 2011-06-14 19:21:47 -07:00
Jim Blandy
fe837eb8a0 Bug 661567: Use ObjectValueMap typedef name where appropriate. r=gal 2011-06-14 19:21:47 -07:00
Luke Wagner
70b6adcc95 Bug 664159 - Fix eval-in-frame crash (r=waldo) 2011-06-14 17:35:19 -07:00
Nikhil Marathe
566af7c712 Bug 656519 - Add an interpreter fast-path for getting length from a typed array. r=mrbkap
--HG--
extra : rebase_source : b2d583778e14877cb0e01f0739d08cd31dc9c757
2011-06-14 15:35:54 -04:00
Nikhil Marathe
f96aadd8f3 Bug 656519 - Do a small size optimization for arraybuffer objects, possibly avoiding a second malloc entirely for small array buffers. r=mrbkap
--HG--
extra : rebase_source : 2dcaee6b42f47dafcfbb866a45ed2452f029a253
2011-06-14 15:34:06 -04:00
Nikhil Marathe
acda759fc1 Bug 656519 - Avoid a malloc (and a finalizer) by storing the malloc'd array in our slots instead of in a separate malloc'd structure in our private field. r=mrbkap
--HG--
extra : rebase_source : 791ede2d8db96f56e4ef8478d491aec413d3e392
2011-06-14 15:33:11 -04:00
Chris Leary
cb10121547 Avoid copy construction for paren info vector. (rs=dmandelin)
--HG--
extra : rebase_source : 659e9e5aa1946b2693645664584f98dfe068d19f
2011-06-14 11:53:14 -07:00
Jeff Walden
d967e5e20f Bug 671143 - Rename ValueToNumber to ToNumber, to be more like the spec nomenclature. r=cdleary
--HG--
extra : rebase_source : e85fbadd77adc048f5e443cd9ed96b0035954674
2011-06-13 21:49:59 -07:00
Igor Bukanov
2d1c8c12b5 bug 667507 - r=gal 2011-07-14 21:47:36 +02:00
Chris Leary
ac29c887f8 Bug 670772 - JSCodeGenerator::upvarMap should use exactly as much space as it needs. (r=njn)
--HG--
extra : rebase_source : 40b9a070023da205817e275e936e8a1acbe38c2b
2011-07-13 16:05:41 -07:00
Chris Leary
8a4ed626f6 Bug 669786: JSCodeGenerator::upvarMap should be a js::Vector. (r=njn)
--HG--
extra : rebase_source : 63d3fe85a1937c74f45e104ab066bc1159c36e00
2011-07-06 18:00:17 -07:00
Bill McCloskey
a47ecc892e Bug 671080 - Assert on unexpected cross-compartment pointers in opt builds (r=mrbkap) 2011-07-14 12:12:30 -07:00
Hannes Verschore
a687644705 Bug 670784 - Add src note to break statements of switches, r=dvander 2011-07-13 16:12:05 -07:00
Jason Orendorff
fef77e1e35 Bug 646968 - Fix name lookups in let scopes. r=brendan. 2011-07-14 08:54:17 -05:00
Kyle Huey
d3e7553ab9 Mass revert m-i to the last known good state 2011-07-13 18:22:33 -07:00
David Mandelin
1fdf7dccd7 Bug 605290: Check for null cx->globalObject, r=luke 2011-07-13 16:47:10 -07:00
Chris Leary
43bb065e0f Bug 670772 - JSCodeGenerator::upvarMap should use exactly as much space as it needs. (r=njn)
--HG--
extra : rebase_source : 00184fc11f3cccd4080e3e8e2f347ab9fa724fce
2011-07-13 16:05:41 -07:00
Chris Leary
de37b6f051 Bug 669786: JSCodeGenerator::upvarMap should be a js::Vector. (r=njn)
--HG--
extra : rebase_source : 5270282d89d15e00739428e5f12de7d4f508bef4
2011-07-06 18:00:17 -07:00
Hannes Verschore
a65ac12536 Bug 670784 - Add src note to break statements of switches, r=dvander 2011-07-13 16:12:05 -07:00
Jeff Walden
253ed289c7 Bug 670759 - Add GlobalObject::createBlankPrototype to abstract creation of prototype objects other than Object.prototype. r=bhackett 2011-06-13 11:52:45 -07:00
Masahiro Yamada
6a432fe065 Bug 660612 - Utf8ToOneUcs4Char passes invalid UTF-8 octets '%ED%A0%80', so decodeURIComponent('%ED%A0%80') doesn't throw. r=jwalden 2011-07-05 09:38:35 -07:00
Mounir Lamouri
4c0a532e43 Merge mozilla-inbound into mozilla-central. 2011-07-11 16:18:03 +02:00
Mike Hommey
962f3c6d46 Bug 654664 - Optimize JSDOUBLE_IS_NEGZERO after bug 640494. r=jimb 2011-07-11 07:57:35 +02:00
Joel Maher
7bdc8ec066 Bug 668431 - move test_bug361111.xul to mochitest-chrome. r=Jesse, a=test-only 2011-07-09 08:35:40 -04:00
Joel Maher
1bb480875e Bug 668594 - while running reftest style tests, we seem to have a memory leak and fennec hangs. r=bc, a=test-only 2011-07-08 11:00:41 -04:00
Marco Bonardo
94da8809f7 Merge mozilla-inbound and mozilla-central 2011-07-08 11:53:56 +02:00