Commit Graph

14333 Commits

Author SHA1 Message Date
Paul Biggar
459861e42c Bug 660630: Only error once in OOM in NewCompartment (r=igor) 2011-06-02 10:06:36 -07:00
Paul Biggar
c333f22f78 Bug 660610: Don't double-free execAlloc_ after OOM. (r=nnethercote) 2011-06-02 10:06:36 -07:00
Rafael Ávila de Espíndola
f9339f6813 b=661145, r=bsmedberg Move the function declarations passed to AC_TRY_COMPILE out of the body of main. 2011-06-03 16:34:42 -04:00
Mike Hommey
df686a06f3 Bug 626035 - Modify the way arm compiler flags are set in configure. r=ted 2011-06-03 01:49:28 +02:00
Mike Hommey
1cb5d6d328 Bug 658251 - Fix MK{,C}SHLIB when using wrap-malloc. r=ted 2011-06-03 01:27:07 +02:00
Igor Bukanov
3e2ef6c4ef bug 656261 - better GC arena layout. r=wmccloskey 2011-05-19 21:01:08 +02:00
Bill McCloskey
b902b98248 Bug 650978 - Add gczeal setting to GC on every allocation (r=gwagner) 2011-06-01 17:48:52 -07:00
Bill McCloskey
719f0678e9 Bug 652985 - Use off-the-books malloc in DumpHeap (r=pbiggar) 2011-06-01 17:48:02 -07:00
Makoto Kato
634f7d1946 Bug 660591 - Bug 625600 causes bustage on Win64. r=dmandelin 2011-06-01 14:05:36 +09:00
Justin Lebar
be822c8496 Bug 660930 - Force InlineGetProp to be inlined. r=dmandelin 2011-05-31 19:57:36 -04:00
Igor Bukanov
875a4ed0e8 bug 660430 - do not call the security manager during GC-marking of GC wrappers. r=gal 2011-05-30 21:36:16 +02:00
Luke Wagner
b99eb46ea1 Fix jit_test.py so that -g works again (rs=dmandelin) 2011-05-27 18:19:14 -07:00
Gregor Wagner
cbb17d528d Bug 658041 - Stack based marking for JSRopes. r=igor 2011-05-27 15:17:47 -07:00
David Mandelin
88e2fc9186 Remove some stray Ctrl-M characters 2011-05-27 14:05:05 -07:00
timeless@mozdev.org
c18f5ac818 Bug 619794 DECOMPILE_CODE leaks xval on failure in Decompile
r=jorendorff
2011-05-27 10:58:28 -07:00
timeless@mozdev.org
0333a7ce54 Bug 620251 js_CurrentThread and friends should have AndLockGC in their name
r=jorendorff
2011-05-27 10:58:26 -07:00
timeless@mozdev.org
ba16ed7739 Bug 621153 Add JS_ALWAYS_TRUE markers to ValueToNumber() for cases where it should be so
r=jorendorff
2011-05-27 10:58:22 -07:00
Jan de Mooij
ef0a847b87 Bug 624298 - Add an IC for JSOP_CALLNAME. r=dvander 2011-05-27 13:56:11 +02:00
Luke Wagner
bf3e38e9d2 Bug 656490 - Fix direct-eval assert (r=dmandelin) 2011-05-26 17:23:21 -07:00
David Mandelin
2299c54162 Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
--HG--
extra : rebase_source : 42c6e9594f36fd7320bdea90fdb01c955bf07f4d
2011-05-16 16:17:19 -07:00
Chris Leary
8a58ce9072 Bug 657537: clean up jschar inflation/deflation. (r=Waldo) 2011-05-26 15:50:05 -07:00
Jim Blandy
6f5851edb8 (no bug): Fix comments referring to allocation policies defined in jstl.h --- they're now in jsalloc.h. 2011-05-26 10:55:58 -07:00
Luke Wagner
e25124700b Bug 659462 - remove no-op JS_ClearNewbornRoots and uses in xpconnect (r=mrbkap) 2011-05-13 08:56:25 -07:00
Paul Biggar
a860fb2d95 Bug 634711 - Use nanojit::BitSet instead of avmplus::BitSet. r=nnethercote. 2011-05-25 22:47:49 -07:00
Nicholas Nethercote
0a71cf8b26 Update nanojit-import-rev stamp. 2011-05-25 20:32:19 -07:00
Nicholas Nethercote
d1a041757e Bug 634711: add BitSet::resetAndAlloc(). r=pbiggar.
--HG--
extra : convert_revision : 8eec2117b714ec754c483b681acb3737f63b994c
2011-05-25 19:46:02 -07:00
Makoto Kato
a365c30cae Bug 576247 - asm_stkarg not implemented for x86_64. r=edwsmith
--HG--
extra : convert_revision : 6176f4f11b273ddde0de661a2c2de0d2219515b2
2011-05-25 17:37:27 +09:00
Paul Biggar
998c7234fe Bug 634711 - Remove BitSet implementation from avmplus.h, because it's a duplicate of the one in Containers.h. r=nnethercote.
--HG--
extra : convert_revision : 8bf26319d7f15c6d22d69557d8b6d95ff65cd381
2011-05-23 21:47:43 -07:00
Ed Morley
08e3b18da0 Bug 656017 - Re-remove WinCE ifdef from js/src/vprof/vprof.cpp (was incorrectly added by bug 644900). r=jorendorff.
--HG--
extra : convert_revision : b6b89f27651adcc38be57ef25357ccc1d2e9ea8e
2011-05-23 21:13:06 -07:00
William Maddox
9be8135422 Bug 658389 - Make sure branch and delay slot remain contiguous in function epilogue [chris@mips.com] (r=wmaddox)
--HG--
extra : convert_revision : 9ffbe7d3623c705593139412b82a79ba87786d08
2011-05-23 11:46:21 -07:00
Jacob Bramley
0ebf6f47d9 When NJ back-tracks _nIns in the ARM back-end, back-track _nInsAfter too. [bug 658526] [r=nnethercote]
--HG--
extra : convert_revision : 070ac9dc74702ec0658384b0ec2c44cfe10d3fdd
2011-05-23 11:37:47 +01:00
Rick Reitmaier
778c1c64ce Bug 609393 - resourceConsistencyCheck x87 stack assert can fire (r+wmaddox)
--HG--
extra : convert_revision : 87a15611dc195b0f520299c6f5f317f779eb31ba
2011-05-20 16:01:11 -07:00
David Mandelin
216d4906f0 Bug 625600 followup: attempt to fix Android build 2011-05-25 14:50:59 -07:00
David Mandelin
508233ea30 Backout merge 2011-05-25 14:50:23 -07:00
David Mandelin
bd6d662fa8 Backed out changeset 6f4ca81b13d5 -- was temporary diagnostic 2011-05-25 14:50:07 -07:00
David Mandelin
4a0a44b095 Diagnostic for failing Android build 2011-05-25 13:27:24 -07:00
Tom Schuster
34b477e3fa Bug 608823. Speed up bitops on doubles. r=dvander 2011-05-25 16:26:26 -04:00
Igor Bukanov
19e8c49c32 bug 658864 - preventing GC when reporting OOM on other threads. r=anygregor
--HG--
extra : rebase_source : 611b09f30000688eba161b12803b1ca44d7adbab
2011-05-22 20:50:08 +02:00
Ehsan Akhgari
fd57a9f752 Merge mozilla-central into mozilla-inbound 2011-06-09 18:29:16 -04:00
Ed Morley
8d9b7f227d Bug 659997 - Remove typo'd ENVIRONMENT_MAC_OS_X_VERION_MIN_REQUIRED define; r=ted 2011-06-09 12:10:42 -07:00
Ehsan Akhgari
1601471f11 Merge mozilla-central into mozilla-inbound 2011-06-09 09:26:52 -04:00
Peter Van der Beken
ae44770a16 Fix for bug 658632 (Provide easy way to add non-leaky classinfo to JS components). r=gavin.
--HG--
extra : rebase_source : 8463c6f8ba1f969278d4e33bfa08495fa3e36071
2011-05-25 10:46:51 +02:00
Rafael Ávila de Espíndola
eb595ddfc3 Bug 657653. Check for libstdc++ versions in stdc++compat.cpp; r=ted,glandium 2011-06-08 22:35:24 -04:00
Jeff Walden
87ccff3aa5 Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones 2011-06-06 11:02:34 -07:00
Jonathan Protzenko
6e0a823a8a Bug 658351 - Add extra assertions to jsval.h to check for malformed JSBools r=bz 2011-06-07 20:05:08 +02:00
Mook
c671b3dec1 bug 651663 - mark TestXPC global class as JSCLASS_GLOBAL_FLAGS (r=jorendorff) 2011-04-20 15:19:43 -07:00
Ms2ger
941e819c63 Bug 616684 - Remove support for DOM Views; r=sicking,ehsan 2011-04-24 08:54:25 +02:00
Chris Jones
ed22df8f64 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Justin Lebar
7af0c522be Bug 590181 part 2 - Switch default gcc optimize options to -O3. r=ted. a=philor CLOSED TREE 2011-04-28 15:49:16 +02:00
Olli Pettay
744a48fa95 Bug 652814 - Rename nsIDOMTouchPoint to nsIDOMTouch (and a *aRetVal = nsnull for bug 648573 comment 19), r=mbrubeck 2011-04-27 14:58:25 +03:00
Steve Fink
457647eddb Test for bug 638178 - new feature getExecutableLines (r=timeless)
--HG--
extra : rebase_source : d29194bf998a6dfcb2fadd5e2186d4d64396bd6f
2011-03-03 10:11:54 -08:00
Steve Fink
715faebf0e Bug 638178 - Add jsdIScript.getExecutableLines for fast identification of breakable lines (r=timeless)
--HG--
extra : rebase_source : a7d66e9ec47ccedfdf1abc3c1d339629c7eb5f3d
2011-03-03 10:11:54 -08:00
David Mandelin
4e818e3c46 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
098ec8fea9 Backed out changeset 10b4c261e3d0 -- Tracemonkey tinderbox is stricter than try 2011-05-25 08:53:26 -07:00
David Mandelin
64fee2ad60 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander
--HG--
extra : rebase_source : 80887364e39608eadb947d77ff80725642e41f31
2011-05-12 18:39:47 -07:00
Jan de Mooij
34004d56cb Bug 658968 - Don't clobber Registers::ReturnReg in emitStubCmpOp and jsop_relational_double. r=dvander 2011-05-25 16:59:32 +02:00
Paul Biggar
ec235df94c Bug 651595: Reinstate call to JSSourceHandler registered with JS_SetSourceHandler (r=dmandelin) 2011-05-25 06:48:11 -07:00
Steve Fink
093e050f1b Backout 8d39d7a5b85c 2011-05-24 16:53:07 -07:00
Steve Fink
d4de79130b Backout 6358f05bdd6d 2011-05-24 16:52:46 -07:00
David Mandelin
e60ba13e9e Bug 655368: Use Spidermonkey delete methods, r=gal 2011-05-24 15:05:55 -07:00
Steve Fink
72421370af Test for bug 638178 - new feature getExecutableLines (r=timeless) 2011-03-03 10:11:54 -08:00
Steve Fink
baaa9a6514 Bug 638178 - Add jsdIScript.getExecutableLines for fast identification of breakable lines (r=timeless) 2011-03-03 10:11:54 -08:00
Steve Fink
4cc660c2ff Fix comment referring to "main thread" (r=comment-only) 2011-05-20 15:08:23 -07:00
Igor Bukanov
e41886ec1e bug 658510 - eliminating JSCOMPARTMENT_NEW and associated compartment initialization race. r=mrbkap 2011-05-22 12:09:28 +02:00
Blake Kaplan
1f0061e893 Bug 657292 - Don't create Xray wrappers in debugger compartments. r=gal 2011-05-24 11:33:44 +02:00
Blake Kaplan
2a476969e1 Disable this test on Android as well since it's broken in Electrolysis. r=vingtetun 2011-05-24 11:21:42 +02:00
Blake Kaplan
3065a0b71f bug 658560 - Don't call WaiveXray on an object that's already in the right compartment as that will leak the WaiveXrayWrapperWrapper to the calling JS code. r=gal
--HG--
extra : rebase_source : 0fba697513ca5cd0984ed3999a7a8df7f005b343
2011-05-23 17:20:28 +02:00
David Mandelin
46408c2ec4 Backed out changeset 119f17b3f03a -- still failing TB 2011-05-23 17:54:42 -07:00
David Mandelin
83c9f9dee2 Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
d52fa2f1b8 Backed out changeset 195f8cf8758f due to ARM bustage 2011-05-23 14:49:33 -07:00
David Mandelin
e60b7b472a Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
David Mandelin
37887345d9 Backed out changeset de6dfe16fd91 due to Linux/Mac build bustage 2011-05-23 14:22:03 -07:00
David Mandelin
f7eb07c405 Bug 625600: Update Yarr import to WebKit rev 83339, r=cdleary,dvander 2011-05-12 18:39:47 -07:00
Brian Hackett
4c008cf13d Add test, bug 614688. r=Waldo 2011-05-23 09:38:21 -07:00
Chris Leary
52221a8477 Merge mozilla-central and tracemonkey. 2011-05-23 00:02:05 -07:00
Jeff Walden
98949e34d6 Silence mega-spammy build warning on Windows. r=class-to-struct 2011-05-22 19:50:47 -07:00
Jeff Walden
6b07caee53 Fix Windows bustage. r=hate-windows.h-macros 2011-05-22 19:50:09 -07:00
Nicholas Nethercote
30e92c3349 Bug 657327 - about:memory: merge the "mapped" and "heap used" trees, and make the resulting tree flatter. r=sdwilsh,Jesse, sr=roc. 2011-05-22 19:49:56 -07:00
Nicholas Nethercote
4a6c88377c Bug 656520 - Make sure the gc-heap memory reporter is in the right place. r=gwagner. 2011-05-22 19:48:31 -07:00
Jeff Walden
e7f1497ce9 Fix --disable-tracejit bustage, make some headers #include some files they need, add a forward declaration to produce the same effect in another. r=¬t-redness 2011-05-22 18:50:12 -07:00
Jeff Walden
fb232cee35 Bug 657665 - Add documentation comments to ArgumentsObject detailing its structure, and add ArgumentsObject::getElement{,s} to abstract attempting to speedily get the value of one or more elements. r=bhackett 2011-05-18 11:45:27 -07:00
Igor Bukanov
71d7289d00 bug 658016 - followup to fix !JS_THREADSAFE builds. 2011-05-22 09:27:01 +02:00
Igor Bukanov
c6893bfa52 bug 658016 - properly synchronizing the free lists with arenas when dumping the heap. r=wmccloskey 2011-05-20 12:38:31 +02:00
Igor Bukanov
a74b534b3f bug 658505 - removal of thread synchronization when setting a prototype. r=jorendorff
--HG--
extra : rebase_source : 8ef87070a88a3323c3b657c043741f087a98d5d3
2011-05-20 18:40:35 +02:00
Chris Leary
a2d213f0d0 Bug 619561: GC telemetry hooks for TestPilot study. (r=billm) 2011-05-20 13:40:06 -07:00
Chris Leary
b2d9eba98e Merge mozilla-central and tracemonkey. 2011-05-20 14:29:36 -07:00
Blake Kaplan
21d04c350b Fix merge mistake. 2011-05-20 21:22:21 +02:00
Bill McCloskey
d98ff20cc1 Bug 658053 - Fix #ifdefs for disabling methodjit and tracejit (r=dmandelin) 2011-05-20 11:27:33 -07:00
Bill McCloskey
6a8823ab66 Bug 658055 - Always use getter to access fun->script() (r=dmandelin) 2011-05-20 11:27:27 -07:00
Bill McCloskey
6204deb7f6 Bug 653026 - Fix NoSuchMethod (r=Waldo) 2011-05-20 11:27:22 -07:00
Blake Kaplan
c303dfca62 Disable this test on Maemo for now. 2011-05-20 21:13:43 +02:00
Blake Kaplan
cfb87bd6b3 Attempting to fix bustage. r=bustage fix 2011-05-20 18:17:31 +02:00
Joel Maher
579034f58a Bug 658524 - annotate remaining jsreftest manifests for android. r=bear, a=test-only 2011-05-20 11:54:02 -04:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Joel Maher
8d37f99984 Bug 616999. Xpcshell manifest support; harness changes. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Daniel Holbert
f3cc3a9d15 Merging cedar with mozilla-central. 2011-05-21 16:18:49 -07:00
timeless@mozdev.org
bfb9019adf Bug 619769 FrameState::init leaks cursor when reifier.init() fails. r=jorendorff 2011-05-20 16:21:27 -04:00
Vladimir Vukicevic
4b2230fe03 Bug 630672 - implement WebGL OES_texture_float extension - r=bjacob
This implements floating-point textures in WebGL
2011-05-20 15:53:53 -04:00
Mike Hommey
b55239ba48 Bug 620931 part 6 - Add a -a option to xpcshell to set an application directory. r=bsmedberg 2011-05-06 10:40:51 +02:00
Blake Kaplan
fbea73993b Fix bug 657267. r=bz 2011-05-19 13:31:54 +02:00
Bill McCloskey
a572e3fb87 Bug 658137 - Add API for iterating over the entire GC heap. r=igor,nnethercote. 2011-05-19 17:11:16 -07:00
Nicholas Nethercote
a705714616 Bug 576175 - TM: rename js_Unbox{Double,Int32}. r=luke. 2011-05-19 17:02:46 -07:00
David Mandelin
7b38f467cb Bug 652054: tweak register allocation for 64-bit stores, r=njn 2011-05-19 10:55:36 -07:00
Igor Bukanov
82d8e149da bug 601234 - followup to restore tolerance of calling the allocator during the GC. 2011-05-19 15:34:37 +02:00
Igor Bukanov
397237b2b1 Backed out changeset 869479a8d3c8 - patch for bug 656261 caused jsreftest failure on Windows in the browser. 2011-05-19 00:59:19 +02:00
Igor Bukanov
8f8b62c845 bug 656261 - better GC arena layout. r=wmccloskey
--HG--
extra : rebase_source : d6b63d38ef586c7e1d7141c8e0859fe026803a5d
2011-04-22 00:47:46 +02:00
Jeff Walden
249a380f7b Bug 657713 - eval JSON parser hack misfires in strict mode, for objects with duplicate property names. r=njn
--HG--
extra : rebase_source : 148d1ea8255a38c967d7b7c74afc02be9474840a
2011-05-18 10:57:59 -07:00
Jeff Walden
a13a0634f7 Bug 657585 - Guard against runaway recursion converting |this| to string in all the String.prototype.* methods. r=luke
--HG--
extra : rebase_source : 76642de53803bfdbc3b4d02e83f1d0e5713bd206
2011-05-18 10:57:52 -07:00
Jeff Walden
a0caea8ac7 Bug 655921 - Check for Function being forbidden before creating the function private which would ordinarily be returned. Also create that function private with an explicitly specified parent, that being the Function function's global object. r=mrbkap
--HG--
extra : rebase_source : d0638bf75648e5dc0f9bb0c1fcf61559d1422771
2011-05-10 14:56:49 -07:00
Jeff Walden
90cdb85452 Bug 656365 - Creating an arguments object shouldn't require a parent, only a callee. r=luke
--HG--
extra : rebase_source : 0f4b0bc449bd7e0a2bd4e929c10e775d79e788ea
2011-05-11 14:04:25 -07:00
Jeff Walden
95c67a9cea Use a checked pointer rather than a raw pointer in one place in the JSON parser. r=trivial
--HG--
extra : rebase_source : 60bf8c5ac1e9e7294d4b9d6b5fd7807517c9b541
2011-05-16 11:43:39 -07:00
Jeff Walden
4cf43e2ca4 Bug 657013 - Remove the old JSON parser. r=njn
--HG--
extra : rebase_source : 5c11e9179d2291d498667c17c05ff7e5f8ace3f2
2011-05-13 14:27:07 -07:00
Bill McCloskey
68588bf424 Remove call to dis() in tests 2011-05-18 11:06:17 -07:00
Bill McCloskey
601bf94f18 Bug 634090 - Make jstests and jit-tests handle timeout better (r=dmandelin) 2011-05-18 10:30:56 -07:00
Bill McCloskey
e623b63357 Bug 656555 - Handle JSOP_TRAP inside JSOP_LAMBDA (r=dmandelin) 2011-05-18 10:30:47 -07:00
Bill McCloskey
88f9a88fb1 Bug 656381 - Handle JSOP_TRAP when looking up block chain (r=dmandelin) 2011-05-18 10:30:39 -07:00
Bill McCloskey
960a3d7b07 Bug 651563 - Comment new GC marking behavior (r=bhackett) 2011-05-18 10:30:32 -07:00
Bill McCloskey
f4933bcaae Bug 640265 - Don't GC during OOM reporting (r=dmandelin) 2011-05-17 11:23:31 -07:00
Bill McCloskey
194a0b290d Bug 657710 - Fix strict aliasing warning (r=luke) 2011-05-18 10:23:08 -07:00
Bob Clary
3346c44ea2 Bug 657608 - JavaScript tests - remove all Sisyphus and Antediluvian cruft, r=jorendorff 2011-05-18 09:55:15 -07:00
Igor Bukanov
678c5b61b2 bug 657227 - followup to fix the regression test not to throw an exception. 2011-05-18 15:31:48 +02:00
Igor Bukanov
cad92af0cc bug 657227 - IsCacheableProtoChain must check for a null proto. r=dvander 2011-05-18 14:26:22 +02:00
Blake Kaplan
b0ecb22bf5 Fix compilation warning on Linux. 2011-05-18 12:07:05 +02:00
Philipp von Weitershausen
4cba1e98dd Bug 655641 - Expose RegExp flags and source in JS API. r=gal 2011-05-08 22:10:21 -05:00
Philipp von Weitershausen
0a08fc9edf Tests for Bug 650931 (JS_ObjectIsRegExp). r=gal 2011-05-08 20:12:57 -05:00
Paul O'Shannessy
c6e3f311c7 Bug 650931 - No API to determine if a JSObject is a RegExp. r=gal 2011-05-17 20:04:28 -07:00
Nicholas Nethercote
e65f3e3ad3 merge 2011-05-18 12:22:25 +10:00
David Mandelin
8c1a69f7eb Fix MSVC warning. 2011-05-17 18:31:00 -07:00
Nicholas Nethercote
cb2e2e1fe6 Update nanojit-import-rev stamp. 2011-05-18 11:13:15 +10:00
Ed Morley
0df455e8fa Bug 648862 - nanojit: Remove WINCE code. r=edwsmith,Jacob.Bramley.
--HG--
extra : convert_revision : 37586d0b07857d871d1cc5184db25336bc0b8864
2011-05-18 10:38:17 +10:00
Chris Leary
a7253cc393 Bug 654301: Better interned string API, take 2. (r=Waldo) 2011-05-17 12:15:12 -07:00
Paul Biggar
57a34fb988 Backout merge (bug 600522, e0288c977846) 2011-05-17 05:24:30 -07:00
Paul Biggar
c556ef313c Backed out changeset e0288c977846 (bug 600522) due to windows oranges. 2011-05-17 05:23:21 -07:00
Blake Kaplan
08a8f3a6ab Bug 654370 - Initialize bp to false to avoid reading random memory. r=gal
--HG--
extra : rebase_source : 0a3b1b9e203d0ccc5bf33998f1509bef1beae36c
2011-05-17 09:25:06 +02:00
Dirkjan Ochtman
e5dbb597d1 Bug 600522 - Force TZ to US/Pacific for jit tests [r=pbiggar] 2011-05-16 21:11:54 +02:00
Paul Biggar
e0fa025e18 Bug 657384: Change new_ parameters to pass-by-copy, not pass-by-const-reference. (r=luke)
new_ [1] took a const reference for each of its parameters. Unfortunately, that
adds const-ness even when the constructor needs non-constness. Unfortunately,
the other way (turning off constness) can lead to excess copying.

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

[1] as in cx->new_<T>(p1)
[2] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm
2011-05-17 04:25:39 -07:00
Nicholas Nethercote
12840cb477 Bug 657164 - disable the assertion because it's failing in xpcshell tests; bug 654820 will re-enable it. rs=philor. 2011-05-16 20:44:45 -07:00
Chris Leary
089bf2c468 Back out bug 654301 to run again on try. 2011-05-16 19:03:20 -07:00
Chris Leary
a2ba07f853 Followup fix for broken changeset 7fe5fb2450f4. 2011-05-16 18:39:59 -07:00
Nicholas Nethercote
7ab4abb283 Bug 657164 - fix '=' vs '==' confusion in an assertion. r=bhackett. 2011-05-16 18:26:01 -07:00
Chris Leary
338cf025af Bug 654301: Better interned string API. (r=Waldo) 2011-05-16 18:18:59 -07:00
David Mandelin
5ad1963088 Fix MSVC warning 2011-05-16 16:16:55 -07:00
Chris Leary
4d1fba5db8 Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Luke Wagner
b1faffbccb Bug 655435 - Fix leak in Atomize (r=njn,cdleary) 2011-05-12 13:15:36 -07:00
Luke Wagner
4a10088b08 Bug 656171 - Use object principals finder in PrincipalsForCompiledCode, this time with hacks to fix xpcshell hacks (r=mrbkap) 2011-05-12 12:12:50 -07:00
Ed Morley
c9aaef67a9 Bug 652731 - Remove check for ZIP in js/src configure, since spidermonkey does not require it; r=jimb 2011-05-13 06:59:56 -07:00
Nicholas Nethercote
611ccaee3f Bug 633653 - revamp about:memory (NJ-specific part). The original patch was landed on mozilla-central. But because NJ-to-TM merges clobber any NJ changes made in TM, I need to land the NJ-specific directly onto nanojit-central. r=edwsmith.
--HG--
extra : convert_revision : 79ed08770916b0c2ccd587900066a9a009d05a4c
2011-05-11 16:53:11 -07:00
Rick Reitmaier
0e7e197a1e build broken on windows along with lirasm breakage
--HG--
extra : convert_revision : 0623adbccaf277410970dff1907efdd8a92f50b3
2011-05-06 12:11:06 -07:00
Rick Reitmaier
5a49964781 Bug 602264 - Self-tests to validate the page permission settings employed by the JIT. (r+nnethercote,edwsmith)
--HG--
extra : convert_revision : 2c412e8f99bb745bf6d5e758b270fc08e307a142
2011-05-04 15:38:33 -07:00
Rick Reitmaier
8880e03d8b Bug 640318 - LIR control-flow graph gml output (r+nnethercote,wmaddox)
--HG--
extra : convert_revision : 45ca084d9cbe063ce96e2b0bd2f7df8a562d0b2f
2011-05-04 08:48:53 -07:00