Commit Graph

20043 Commits

Author SHA1 Message Date
Bobby Holley
8a52cd6c9b Bug 778409 - Enter the compartment of unwrappedProto rather than obj in Rewrap. r=gabor
This can happen if chrome sets its proto to a content object from a different scope
than the one doing the wrapping. In this case, the prototype chain looks like this:

chromeobj => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)

When wrapping chromeobj for exampleorg_scope, things will look like this:

COW(chromeobj) => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)

Note that we don't remap the proto of CCW(examplecom_scope) to
exampleorg_scope.Object.prototype, because the proto remapping only happens when
the object we're wrapping is chrome. There's no reason it has to be this way, but
even if we changed it we still wouldn't get the nice remapped lookup behavior to
exampleorg_scope.Object.prototype, because the proxy handler for CCW(examplecom_obj)
isn't a ChromeObjectWrapper, and thus doesn't know how to to the prototype bouncing
correctly.

Anyway, I suspect this case isn't worth worrying about as long as we don't crash.
2012-07-30 22:18:55 +02:00
Jason Orendorff
eb51654418 Disable two E4X tests that were failing only on platforms using e10s content processes after landing bug 765890. no_r=orange. 2012-07-30 14:52:02 -05:00
Ted Shroyer
b97e71e237 Bug 765890 - Alter mochitests/jsreftests to pass when javascript.options.xml.content defaults to false. r=jorendorff.
--HG--
extra : rebase_source : 12bd1c7b597c4834424876ac797cf7c118434d5e
2012-07-20 14:00:53 -05:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Landry Breuil
9cdf01af2e Bug 778414. Fix clang builds on OpenBSD/i386. r=glandium 2012-07-30 17:57:04 +02:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Brian Hackett
ffc948bbbe Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Aryeh Gregor
b6511c4a18 Bug 777292 - Add default cases to switches on nsresult; r=ehsan 2012-07-27 17:03:25 +03:00
Rafael Ávila de Espíndola
9e9d6d39b5 Bug 778301 - Remove old change for llvm.org/pr11003.
--HG--
extra : rebase_source : 41006c35798d0722a43b6c37bc0216a6c6064aa9
2012-07-28 08:04:45 -04:00
Benjamin Peterson
e94d6142a5 Bug 777776 - Properly barrier JSScript::scriptSource_. r=terrence 2012-07-28 15:18:33 -07:00
Ed Morley
8115524086 Backout a5b21cffeebf (bug 743112) for intermittent but severe leaks; a=whatafunwaytospendtheday on a CLOSED TREE 2012-07-28 18:46:27 +01:00
Benjamin Peterson
00740850d5 Bug 778268 - Allow definitions with no uses to be removed. r=luke 2012-07-27 21:56:46 -07:00
Benjamin Peterson
737cf0560b Backout 4cdd23569371 (Bug 777776) for more bustage 2012-07-27 19:35:01 -07:00
Terrence Cole
a58c78f9bb Bug 744675 - Make jstest suite default parallelism match cpu count; r=sfink
--HG--
extra : rebase_source : 41dab7c1354f31c27cb019a622b8602e7fc521c5
2012-07-27 17:51:12 -07:00
Benjamin Peterson
0a143b5c59 Bug 777776 - Properly barrier JSScript::scriptSource_. r=terrence 2012-07-27 17:51:49 -07:00
Bill McCloskey
a254508aaa Bug 778370 - Track individual sweep phases in GC statistics (r=terrence) 2012-07-27 17:37:21 -07:00
David Mandelin
2f887350f7 Bug 778347: fix some MSVC warnings, r=luke
--HG--
extra : rebase_source : 859cdd689d4aa794ab8c25d39fb9f9cd7817a92c
2012-07-27 16:32:37 -07:00
Eric Faust
3f385d4b0d Bug 747288 - Reland renaming jitinfo to MJITinfo. (r=bhackett) 2012-07-27 16:20:48 -07:00
David Mandelin
41e924a853 Backout changeset 8bd9d81db80a which landed without a bug
--HG--
extra : rebase_source : 69b0afc5aab63afeea06919db9c2e635e7c6f1dc
2012-07-27 15:49:11 -07:00
Benjamin Peterson
5e6fbcfa5e Backout b69f5004fde8 (Bug 777776) for bustage 2012-07-27 15:22:13 -07:00
Benjamin Peterson
25d7d5c590 Bug 777776 - Properly barrier JSScript::scriptSource_. r=terrence 2012-07-27 14:42:56 -07:00
Steve Fink
3d6d6246c4 Bug 777956 - With CPG, AutoCompartment no longer needs to store the target object. r=luke 2012-07-26 18:27:08 -07:00
Terrence Cole
5340142486 Bug 777992 - Move array slowification barrier closer to update; r=billm
--HG--
extra : rebase_source : c7bb1cb451877282e6d8a1bc2b1e971cbbfad2a7
2012-07-27 12:32:16 -07:00
David Mandelin
e514fe80c1 Bug 776704: allow shell to build without zlib, r=bpeterson 2012-07-25 16:47:16 -07:00
Bill McCloskey
f164256554 Bug 743112 - Incremental release of C++ objects during GC (r=smaug,jonco) 2012-07-27 11:27:51 -07:00
Bobby Holley
13be2afc3c Bug 760109 - Tests. rs=mrbkap 2012-07-27 12:15:46 +02:00
Bobby Holley
5308455b1c Bug 760109 - Override traps in ChromeObjectWrapper to bounce lookups to the local prototype chain. r=mrbkap 2012-07-27 12:15:46 +02:00
Bobby Holley
ea5054b136 Bug 760109 - Introduce an explicit ChromeObjectWrapper. r=mrbkap
For now it's identical to ChromeObjectWrapperBase. Custom behavior comes in the next patch.
2012-07-27 12:15:46 +02:00
Bobby Holley
b5c9747170 Bug 760109 - When COWing objects with standard prototypes, use the prototype in the home compartment instead. r=mrbkap 2012-07-27 12:15:46 +02:00
Bobby Holley
128b0d834b Bug 760109 - Add an API to lookup proto key via standard prototype objects and vice-versa. 2012-07-27 12:15:46 +02:00
Bobby Holley
122bba8b43 Bug 760109 - Don't force wrappers to use the wrapped proto if they decide to use something different. r=mrbkap 2012-07-27 12:15:46 +02:00
Eric Faust
2fed1dc8e3 No bug - Rename JitInfo mJITInfo. (r=bhackett) 2012-07-26 19:44:52 -07:00
Ehsan Akhgari
e7c1a3020f Backout changeset 0589b96414e6 which landed without a bug and broke the builds 2012-07-26 22:56:23 -04:00
Eric Faust
75cd584e97 No bug - Rename JitInfo mJITInfo. (r=bhackett) 2012-07-26 19:44:52 -07:00
Terrence Cole
5d78042b45 Bug 777999 - Fix JSRefTest shell progressbar brokeness in windows; r=dmandelin DONTBUILD
--HG--
extra : rebase_source : e6170427c1d56de503c71157234ca2b1a52fe9aa
2012-07-26 18:07:17 -07:00
Bill McCloskey
943cb95d1d Bug 777919 - Free LifoAlloc chunks on background thread (r=luke) 2012-07-26 18:05:31 -07:00
Luke Wagner
23c989f5a2 Bug 777643 - re-enable arguments.length fast path in JM (r=bhackett) 2012-07-26 16:08:26 -07:00
Eric Faust
caa3de7f3b Bug 777618 - Remove VALUE_TO_BOOLEAN and POP_BOOLEAN from interpreter. (r=luke) 2012-07-26 15:24:28 -07:00
Aryeh Gregor
62e166b376 Bug 779122 - nsXPCComponents_Utils::RecomputeWrappers should return nsresult, not bool; r=bholley 2012-07-31 18:24:38 +03:00
Boris Zbarsky
d794ed88da Bug 777627. Make sure we can't accidentally turn off mochitests for a directory by reordering the Makefile.in. r=khuey 2012-07-26 12:38:03 -04:00
Ed Morley
b24402aeb3 Backout 137efb901fc9 (bug 777627) for bustage 2012-07-26 17:48:00 +01:00
Boris Zbarsky
168d572fc7 Bug 777627. Make sure we can't accidentally turn off mochitests for a directory by reordering the Makefile.in. r=khuey 2012-07-26 12:38:03 -04:00
Jan de Mooij
ea0eea0a14 Backout 72bd41f8ca61 (bug 777383) to see if it fixes a sunspider regression on 64-bit. 2012-07-26 17:37:09 +02:00
Ed Morley
bc713a9541 Merge mozilla-central to mozilla-inbound 2012-07-26 13:25:04 +01:00
Ed Morley
581619fa7d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-26 13:04:00 +01:00
Olli Pettay
2a315d5e16 Bug 776986 - Implement MozApplicationEvent using codegenerator, r=fabrice 2012-07-26 13:23:22 +03:00
Olli Pettay
089bd9520e Bug 776971 - codegen DeviceLightEvent impl, r=dougt 2012-07-26 00:26:51 +03:00
Olli Pettay
201bb1a6a5 Bug 776966 - Generate DeviceOrientationEvent implementation, r=dougt 2012-07-26 00:17:14 +03:00
Olli Pettay
f2659bf421 Bug 777074 - dictionary_helper_gen.py doesn't handle 'unsigned long' types, r=khuey 2012-07-25 01:59:22 +03:00
Ed Morley
853788ef5a Backout eecd3aa199e6 (bug 776305), 62facd5b3da9, c6a0ac7d47d2 & 2d56621abfee (bug 776035), e4e68cf2bd40 (bug 776016), 0853a4d49b4e & 31de6ffdedcb (bug 770426), 43a69b4981f5 (bug 756786) for Windows mochitest crashes 2012-07-25 09:35:32 +01:00
Eric Faust
6b01b23e1f Bug 749536 - Implement JS::ToBoolean to fastpath Value to Boolean unwrappings. (r=luke) 2012-07-24 22:59:55 -07:00
Mike Hommey
cff1883594 Bug 776305 - Fix building spidermonkey with system zlib after bug 761723. r=khuey 2012-07-25 07:44:08 +02:00
Mike Hommey
d01edc7116 Bug 776016 - Avoid Preprocessor.py warning when no commands are processed, but filters are. r=ted 2012-07-25 07:44:08 +02:00
Jan de Mooij
5b06ec3fb0 Bug 777383 - Don't add undefined type to property reads before test ops. r=bhackett 2012-07-26 13:40:46 +02:00
Jon Coppeard
8f882dd7d0 Bug 729760 - GC: Incremental sweeping of shapes and types r=billm
--HG--
extra : rebase_source : c3bdffe5b4093d774f8f5a7bdf42c9e734763326
2012-07-26 09:31:52 +01:00
Mike Hommey
5f8309d9b6 Bug 770426 - Replace double colon rules with dependency chains for preprocessing rules. r=khuey 2012-07-23 07:42:22 +02:00
Benjamin Peterson
c612311c13 Bug 777181 - Breaking out of a for-let-in loop needs SRC_HIDDEN. r=luke
--HG--
extra : rebase_source : b71d4e1983d9e83f9392ff62fbff280cb3fb3295
2012-07-24 19:15:37 -07:00
Ryan VanderMeulen
ba139e6639 Merge 2012-07-24 22:06:27 -04:00
Benjamin Peterson
5f08df9d9d Bug 777083 - Don't leak when ownSource is true. r=luke 2012-07-24 19:01:38 -07:00
Benjamin Peterson
639c29d087 Bug 776332 - Fix the rooting of Function's toSource/toString. r=terrence 2012-07-24 14:23:36 -07:00
Chao-ying Fu
cd57edc68c Bug 774760 - Fix unaligned PCCounts double access (r=luke)
--HG--
extra : rebase_source : ac9c1d9cb21611a5c23ca92a187b7f3e0e422cf4
2012-07-24 11:11:44 -07:00
Ryan VanderMeulen
ca4206d611 Merge m-c to inbound. 2012-07-24 22:00:07 -04:00
Olli Pettay
8d25c299d6 Bug 776929 - Let event implementation codegen to generate MozContactChangeEvent, r=gwagner 2012-07-24 22:28:26 +03:00
Benjamin Peterson
a810a5ad27 Bug 776314 - Stub out genexp toSource. r=luke 2012-07-24 11:19:18 -07:00
Benjamin Peterson
82a0c3817c Bug 776314 - Add a script flag indicating if the script is a generator expression. r=luke 2012-07-24 11:19:08 -07:00
Gregory Szorc
42d6d9f5c1 Bug 776805 - Remove unused NO_GEN_XPT from rules.mk; r=glandium 2012-07-24 10:57:13 -07:00
Benjamin Peterson
612f2e9bba Bug 776430 - Use the rightmost URI to account for possible multiple prefixing. r=bz
--HG--
extra : rebase_source : 00d3a825d0743dc5ba61a0dbe69c6f8a75b4b208
2012-07-23 19:13:18 -07:00
Benjamin Peterson
5775e05fb8 Bug 776317 - Separate the body of a constructed function from its braces with newlines. r=luke 2012-07-23 17:03:41 -07:00
Sean DuBois
27044f3fcd Bug 769908 - Switch DIR_INSTALL to INSTALL. r=ted 2012-07-23 20:02:20 -04:00
Benjamin Peterson
ddff4baabb Bug 776388 - Create global threads. r=terrence 2012-07-23 15:05:03 -07:00
David Mandelin
570f0eca26 Merge for backout of changeset d6531ef05a6f 2012-07-23 14:34:24 -07:00
David Mandelin
11fc3bb16d Backed out changeset d6531ef05a6f 2012-07-23 14:33:14 -07:00
Benjamin Peterson
9c09b90020 Bug 776700 - completely disable compression until Sunspider is sorted out. r=dmandelin
--HG--
extra : rebase_source : e7d40b7c9a01bdb90288911f908c65c185f335e6
2012-07-23 14:23:19 -07:00
Luke Wagner
35339b4f6e Bug 776191 - Add missing case of 'with' deoptimization, r=dvander 2012-07-23 13:39:18 -07:00
Gary Kwong
49204765bc Backed out changeset 4ee96b33d289, r=wrongAuthor 2012-07-23 14:00:36 -07:00
Gary Kwong
18f596947e Bug 776191 - Add missing case of 'with' deoptimization, r=dvander 2012-07-23 13:39:18 -07:00
Andrew McCreight
3b851e3a30 Bug 773533 - import Element.h into XPConnect the right way. rs=Ms2ger 2012-07-23 15:38:30 -07:00
Steve Fink
f35c6c9667 Bug 776732 - Add more things to getBuildConfiguration(), r=luke 2012-07-23 15:30:21 -07:00
Brian Hackett
a5275e577d Fix rooting hazard in eval cache, no bug. r=billm 2012-07-13 14:03:52 -06:00
Brian Hackett
c92b296ee8 Add more rooting for --enable-rootanalysis tbpl builds, bug 772303. r=terrence 2012-07-13 10:13:50 -06:00
Jan de Mooij
2991840b79 Bug 773586 - Initialize PICGenInfo::pc and clean up ICs a bit. r=bhackett 2012-07-13 15:32:25 +02:00
Bobby Holley
1a88142535 Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv 2012-07-13 14:33:25 +02:00
Joshua Cranmer
4b8f318e78 Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Steve Fink
3ea13ed49e Bug 776635 - Allow use of JSRootedObject using only external headers. r=billm
Currently, JS::Rooted<JSObject*> requires the full definition of JSObject to be available (due to RootMethods<JSObject*>::kind() calling JSObject::rootKind()). This patch switches to using a RootKind<T> template that is explicitly specialized in jspubtd.h for externally-visible pointer types, but still falls back on T::rootKind() for other pointer types so that we don't need to explicitly specialize on eg all subclasses of JSString or JSObject.

--HG--
extra : rebase_source : 138a859babc1aac60e61fe6f08089d8dbb4995d2
2012-07-18 14:32:39 -07:00
Steve Fink
cbec41c088 Bug 776632 - Implement testing function getBuildConfiguration. r=luke
The fuzzers currently infer the build configuration based on the presence or absence of various flags, and gkw noted that this will not work with JSGC_ROOT_ANALYSIS, so I thought it'd be nice to add something more direct. This is a stub set for now.

--HG--
extra : rebase_source : 0f1625a3d1c3e8cead17cd58e9f2cb0bc95817bd
2012-07-23 13:37:06 -07:00
Ehsan Akhgari
bbea1a843e Bug 776660 - Return null from EnsureExpandoObject instead of false; r=bholley 2012-07-23 15:58:41 -04:00
Luke Wagner
916a4dd68b Bug 775684 - rm PND_TOPLEVEL (r=ejpbruel)
--HG--
extra : rebase_source : 90fed1498fc1e34d721afa5a3a4ba518ad0cf3c9
2012-07-23 11:09:59 -07:00
Luke Wagner
245a671133 Bug 775647 - rm PND_INITIALIZED (r=ejpbruel)
--HG--
extra : rebase_source : 214c973cbe96c290cabe17ca987886991a975c0e
2012-07-23 11:09:57 -07:00
Luke Wagner
43b0616405 Bug 775647 - simplify control flow in BindVarOrConst (r=ejpbruel)
--HG--
extra : rebase_source : f3e2cc1047c38cc26c99cccec7c3f128c74cb708
2012-07-23 11:09:10 -07:00
Bobby Holley
ace73859e6 Bug 773962 - Fix windows linkage bustage. r=me 2012-07-23 17:57:39 +02:00
Bobby Holley
261a5477fd Bug 772288 - Waive Xray for target objects in Cu.import. r=mrbkap 2012-07-23 16:47:18 +02:00
Matthew Noorenberghe
b095b234fb Bug 772288 - Tests. r=bholley 2012-07-23 16:47:18 +02:00
Bobby Holley
b883b8e23d Bug 773962 - Tests. r=mrbkap 2012-07-23 15:51:19 +02:00
Bobby Holley
7aff4cee81 Bug 773962 - Introduce Cu.recomputeWrappers. r=mrbkap
It's sort of annoying to add this API just for tests, but there's not another
great way to trigger a compartment-wide transplant with Xray waivers
(since setting document.domain doesn't recompute wrappers to/from chrome, and
Xray waivers will stop being accessible to content entirely in bug 742444).
2012-07-23 15:51:18 +02:00
Bobby Holley
bb2b0385f8 Bug 773962 - Fix up waivers after transplanting. r=mrbkap 2012-07-23 15:51:18 +02:00
Bobby Holley
3ed1397a75 Bug 773962 - Refactor Xray waiving logic to allow simple lookups in the waiver map without creating a waiver. r=mrbkap 2012-07-23 15:51:18 +02:00
Bobby Holley
7416947043 Bug 773962 - Add some asserts in the brain transplant code. r=billm
This catches the crash when the naughtiness happens, rather than later on.
2012-07-23 15:51:18 +02:00
Ed Morley
fb53aeec33 Backout deb1e2c80f84 (bug 770426) for causing bug 776503 on a CLOSED TREE 2012-07-23 14:28:32 +01:00
Ms2ger
a8f6c0da42 Bug 761510 - Followup: remove unused variable in opt builds. 2012-07-23 12:41:57 +02:00
Mike Hommey
112c562b7e Bug 775424 - Make cycle collection vtables rodata. r=smaug 2012-07-23 07:42:23 +02:00
Mike Hommey
2b582f939d Bug 770426 - Replace double colon rules with dependency chains for preprocessing rules. r=khuey 2012-07-23 07:42:22 +02:00
Makoto Kato
ce9fde99be Bug 775410 - Remove nsinstall.exe.manifest. r=khuey 2012-07-23 14:40:12 +09:00
Benjamin Peterson
48b39e2d5c Bug 776389 - Find the source of scripts from the subscript loader correctly. r=bz 2012-07-22 15:14:47 -07:00
Benjamin Peterson
34a152c641 Bug 776283 - Decode sources properly before handing them to the JS engine. r=bz 2012-07-22 09:00:45 -07:00
Benjamin Peterson
347bc3508b Bug 776200 - Reduce compression level as temporary fix for SunSpider regression. r=pierron
--HG--
extra : rebase_source : 7516bb18a5bbceca411d2053a5ff546cf0de27ec
2012-07-22 01:07:29 -07:00
Boris Zbarsky
82de772364 Bug 775317. Add a test for the JSOPTION_VAROBJFIX behavior of JS_EvaluateScript. r=jorendorff 2012-07-21 22:37:43 -04:00
Boris Zbarsky
2bd828e57a Bug 765163 followup. Don't write DictionaryHelpers.h while generating DictionaryHelpers.cpp. r=build-bustage for checkin to CLOSED TREE 2012-07-22 01:17:38 -04:00
Jason Duell
00135ee99f Backout f142f32a98a3 (Bug 775317) and ef14686c31d0 (Bug 761278). r=bustage 2012-07-21 20:05:37 -07:00
Boris Zbarsky
5a986a8212 Bug 775317. Add a test for the JSOPTION_VAROBJFIX behavior of JS_EvaluateScript. r=jorendorff 2012-07-21 22:37:43 -04:00
Tom Schuster
c36e194290 Bug 775166 - Remove some ugly optimization in jsarray. r=bhackett 2012-07-21 13:06:37 +02:00
Tom Schuster
3d069f17f2 Bug 646599 - Constant folding should happen before deciding whether to turn obj[A] into obj.A. r=Waldo 2012-07-21 13:05:07 +02:00
Jonas Sicking
68ce0e34aa Bug 774585: Rename getCodebasePrincipal to getSimpleCodebasePrincipal since the behavior has semantically changed. r=mounir 2012-07-21 00:29:40 -07:00
Jonas Sicking
240b15860e Bug 774585: Fix xpc-sandbox creation code to create the correct principals. r=mrbkap 2012-07-21 00:29:40 -07:00
Gary Kwong
b5ae0d1ff5 Bug 633828 - Remove bogus assert. r=luke
--HG--
extra : rebase_source : c397bc741e71169e10993866790b79e5193b6157
2012-07-20 22:53:17 -07:00
Gary Kwong
0f8656ed35 Bug 632778 - Update tests to use test metalines instead, since they are in jit-test. 2012-07-20 23:03:56 -07:00
Gary Kwong
3a1f87a91c Add test for bug 770952, take two. 2012-07-20 19:10:15 -07:00
Gary Kwong
fe1e93394a Backed out changeset 62d352e6a480 for breakage. 2012-07-20 19:54:58 -07:00
Gary Kwong
dcba5b6f49 Add test for bug 770952. 2012-07-20 19:10:15 -07:00
Luke Wagner
32ea9cb6b9 Bug 775807 - Don't disassemble partially-compiled scripts (r=jimb)
--HG--
extra : rebase_source : 5179fd12faea43f227c8369bae4588d5adfebc7c
2012-07-20 17:16:14 -07:00
Bobby Holley
36dc1f0877 Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv 2012-07-13 10:55:14 +02:00
Terrence Cole
5086044b0f Bug 764962 - Add a verifier mode for GenerationalGC post barriers; r=billm
This adds a store buffer which is enabled with --enable-gcgenerational and new
verifier modes 11 & 12 corresponding to pre-barrier verifier modes 4 & 5 when
enabled.

--HG--
extra : rebase_source : 9333a9e24a448865199c0d6f84f222c081b5611e
2012-06-20 18:48:56 -07:00
Luke Wagner
6bea3866d1 Bug 775801 - LambdaIsGetElem should optimize based on JSOP_GETALIASEDVAR, not JSOP_NAME (r=dvander) 2012-07-20 16:17:24 -07:00
Luke Wagner
ad00687a85 Backout 970b733bd01d (bug 775801) due to tp5n bustage 2012-07-20 15:35:59 -07:00
Ryan VanderMeulen
2661c4efbe Merge m-c to inbound. 2012-07-20 17:37:53 -04:00
Luke Wagner
b7f981a9d5 Bug 775801 - LambdaIsGetElem should optimize based on JSOP_GETALIASEDVAR, not JSOP_NAME (r=dvander)
--HG--
extra : rebase_source : 5995e62a63b47aa4abf88d8f16a2226bd9a991f1
2012-07-20 13:56:33 -07:00
Benjamin Peterson
42e6e53063 No bug: class -> struct for compiler warning. r=dzbarsky 2012-07-20 15:58:18 -04:00
Olli Pettay
e326bb73c3 Bug 765947 - Preprocess the config file for generated events, r=khuey 2012-07-20 20:19:40 +03:00
Olli Pettay
d4c22e1e8d Bug 765766 - Convert more event interface implementations to be autogenerated, r=jst 2012-07-20 19:58:28 +03:00
Olli Pettay
e9cea4305c Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey 2012-07-20 19:42:08 +03:00
Jonas Sicking
b0b6c14ad5 Bug 774585 - Add GetDocShellCodebasePrincipal to nsIScriptSecurityManager. r=mounir 2012-07-20 00:06:24 -07:00
Mounir Lamouri
15fad48685 Bug 758258 - part 5 - Add GetAppCodebasePrincipal and GetNoAppCodebasePrincipal to nsIScriptSecurityManager. r=mrbkap sr=sicking 2012-07-19 20:28:08 -07:00
Benjamin Peterson
0d217352e9 Bug 761723 - Add test for chrome toSource. r=bz
--HG--
extra : rebase_source : e4e41b30d2bdb73c8f48dd01a1ad8b974604978c
2012-07-20 20:20:09 +02:00
Benjamin Peterson
fb272e1622 Bug 761723 - Add a runtime hook to retrieve source that wasn't saved. r=luke
--HG--
extra : rebase_source : de2e88f79e1e2a4a75ff5c5b296dbae052e4b076
2012-07-20 20:19:17 +02:00
Benjamin Peterson
0710b8034e Bug 761723 - Add a context option to only save source for compileAndGo and function body scripts. r=jornedorff
--HG--
extra : rebase_source : d4637dfe967c0ea398bb4b08fa6f9955b14ff528
2012-07-20 20:19:02 +02:00
Benjamin Peterson
78a339dd91 Bug 761723 - Add memory reporting for script sources. r=njn
--HG--
extra : rebase_source : 5f2cdb960f29829e9da19bbe137a810f456cc7fc
2012-07-20 20:18:08 +02:00
Benjamin Peterson
d1064385b3 Bug 761723 - Save script sources to implement Function.prototype.toString. r=jorendorff,njn,jimb,jst,Ms2ger
--HG--
extra : rebase_source : de1b55647780a30f98fe84d29ee3cb4a437a3ece
2012-07-20 20:17:38 +02:00
Terrence Cole
395f9bd8e0 Backout 189816733310 for Android bustage. 2012-07-20 11:07:44 -07:00
Nicholas Nethercote
1cf6ff22a5 Bug 773533 (part 1) - Skip XBL nodes when looking for orphan DOM nodes. r=mccr8,smaug.
--HG--
extra : rebase_source : 0dd533b41b1ebd73bcd83852c01cd9a64adbc26a
2012-07-18 21:10:36 -07:00
Steve Fink
0701e084e5 Bug 775365 - Fill out the rooting API. r=billm
- add external type JSHandleString
 - add external type JSMutableHandleValue
 - allow converting a MutableHandle -> Handle
 - add MutableHandle::fromMarkedLocation()
 - make a non-const AudoVectorRooter::handleAt() that returns a MutableHandle
2012-07-18 14:31:24 -07:00
Bill McCloskey
6bedbce8db Bug 774933 - Forgot to prepare GC before finishing it (r=terrence) 2012-07-19 17:15:32 -07:00
Bill McCloskey
483224b99d Bug 758408 - Fix XML slot handling (r=Waldo) 2012-07-19 16:56:14 -07:00
Mounir Lamouri
19b289e5df Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Steve Fink
fe7cf7ba30 Backed out changeset afc1cf222996 2012-07-19 15:22:32 -07:00
Jason Orendorff
23d6c5d5a9 Bug 725907 - for-of improvements, part 4: Add .next() method to iterator objects and make for-of call it. r=bhackett. 2012-07-03 16:34:56 -05:00
Jason Orendorff
7e92dcab82 Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky. 2012-07-03 16:34:56 -05:00
Jason Orendorff
1b172b816f Bug 771027 - for-of semantics: convert the result of obj.iterator() to an object. r=bhackett. 2012-07-19 17:03:20 -05:00
Jason Orendorff
5127709e6d Bug 725907 - for-of improvements, part 2: Make for-of loops just call .iterator() instead of using the magic iteratorObject hook with an extra flag. r=bhackett. 2012-07-03 16:34:56 -05:00
Jason Orendorff
4f50c05dd0 Bug 725907 - for-of improvements, part 1: minor C++ refactoring, rename Iterator to PropertyIteratorObject. r=Waldo. 2012-07-03 16:34:40 -05:00
Jason Orendorff
679a92c077 Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Siddharth Agarwal
fb0d7755f0 Bug 774054 - Switch mochitest file $(INSTALL) to install_cmd. r=glandium
--HG--
extra : rebase_source : f01a7f0ab55c32256c641dbfa33024132ad0cc79
2012-07-20 01:07:10 +05:30
Mounir Lamouri
a5975943d6 Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Mounir Lamouri
96545b3886 Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri
15ea035b93 Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-19 10:49:17 -07:00
Justin Lebar
54df485268 Bug 773980 - Add Components.utils.isDeadWrapper. r=bholley
--HG--
rename : js/xpconnect/tests/Makefile.in => js/xpconnect/tests/browser/Makefile.in
2012-07-19 12:39:43 -04:00
Terrence Cole
20f8adf7b7 Bug 772292 - Convert JSObject2WrappedJSMap to a new-style HashTable; r=mrbkap
--HG--
extra : rebase_source : a51ae61fde535ba18e84bec484509099101247ab
2012-07-07 16:11:54 -07:00
Jim Mathies
7f92debdd9 Bug 762519 - Send xpconnect stack dump output and javascript dump output to the win debugger when attached. r=ehsan, mrbkap 2012-07-19 09:58:44 -05:00
Rafael Ávila de Espíndola
5964da33d6 Bug 755145 - Define CCACHE_CPP2 when using ccache and Clang. r=glandium. 2012-07-19 09:20:46 -04:00
Makoto Kato
c63fb1198f Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg 2012-07-19 18:53:30 +09:00
Ed Morley
80af77da9d Backout ea6db8f420c0 (bug 770831), b51c79ee0883 (bug 774957), 020f6ed5958b (bug 758258), 11d8e19e1fca (bug 758258), 707fc51bfe2e (bug 775354), 489d944a6fe6 (bug 327244), be7df3c9d50f (bug 327244) for m-oth orange 2012-07-19 08:29:48 +01:00
Mounir Lamouri
e7de2ebedc Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Mounir Lamouri
8a2133a405 Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri
32d220e324 Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-18 13:35:15 -07:00
Ryan VanderMeulen
d992f8c567 Backout 61d052e202c8 (bug 647367) due to Windows bustage. 2012-07-18 22:33:41 -04:00
Nicholas Nethercote
8e95c82325 Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/. r=luke.
--HG--
rename : js/src/jshash.cpp => js/jsd/jshash.cpp
rename : js/src/jshash.h => js/jsd/jshash.h
extra : rebase_source : 22311241bc356e2c724c28f4199cfa8008d594a9
2012-07-18 17:38:10 -07:00
Nicholas Nethercote
9acd099c01 Bug 771378 (part 4) - Follow-up to avoid an uninitialized variable. r=sfink.
--HG--
extra : rebase_source : 44f1456136324ae76f27077829faf546024bad11
2012-07-18 15:53:17 -07:00
Benjamin Peterson
b8058be7e8 Bug 725702: support for of loops in Reflect.parse r=dherman 2012-07-18 18:14:15 -04:00
Luke Wagner
d045bcabab Bug 680562 - Remove CHECK_INTERRUPT_HANDLER (r=jimb) 2012-07-08 03:07:25 -07:00
Luke Wagner
bbfb0890ea Bug 761510 - rm JSFUN_NULL_CLOSURE (r=jimb) 2012-07-17 16:35:58 -07:00
Andrew McCreight
de5b0a6c69 Bug 761831 - Be less ambitious in GetMemberInfo. r=bholley 2012-07-18 13:28:58 -07:00
Rafael Ávila de Espíndola
6fa6b984a6 Bug 775134 - Remove extra ; r=ehsan.
--HG--
extra : rebase_source : 1d44663679e8f1944649d54608e5e6e6694e88c5
2012-07-18 12:15:47 -04:00
Ehsan Akhgari
13792204c3 Merge mozilla-central into mozilla-inbound 2012-07-18 09:38:49 -04:00
Bobby Holley
769558b9bf Bug 774245 - Remove unnecessary memset. r=mccr8 2012-07-18 14:56:54 +02:00
Brian Hackett
1ab175defd Treat known booleans like integers during bitops, bug 774812. r=jandem 2012-07-18 06:43:18 -06:00
Brian Hackett
9ade53ec36 Use distinct types and scripts for generic inner wrapper functions, bug 638794. r=jandem 2012-07-18 06:35:00 -06:00
Ed Morley
ab4a6323cd Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-18 13:32:24 +01:00
Bobby Holley
673d7cb15b Bug 774245 - Tests. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
025d4d99bb Bug 774245 - Reimplement LookupMethod. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
5eac963c7a Bug 774245 - Add WrapperFactory and XrayWrapper machinery to allow same-compartment Xray wrapping. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
13029dbed8 Bug 774245 - Factor out single-level checked unwrapping into a helper function. r=mrbkap 2012-07-18 13:51:28 +02:00
Ms2ger
b6763bdb39 Bug 765464 - Part b: Add an exnType to JSErrorReport; r=Waldo 2012-07-18 12:36:08 +02:00
Ms2ger
01a4d16165 Bug 765464 - Part a: Introduce JS_ReportErrorNumberVA; r=Waldo 2012-07-18 12:36:08 +02:00
Rafael Ávila de Espíndola
2f412dca87 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Rafael Ávila de Espíndola
25b2edd61d Bug 774559 - more workaround for llvm.org/pr12127. r=dvander.
LLVM is inlining these functions that use a lot of stack space into the
recursive EmitTree.
2012-07-16 23:53:30 -04:00
Ehsan Akhgari
8483016620 Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky 2012-07-16 21:42:18 -04:00
Alex Crichton
375c48007d Bug 774330: Don't unnecessarily prevent code from entering the JIT with SPS enabled. r=luke 2012-07-16 18:11:20 -07:00
Luke Wagner
ae84424734 Bug 683069 - rm setParent hack in JSCompartment::wrap (r=bholley)
--HG--
extra : rebase_source : 5e011d68fa37c812d2f238c6574def343f9a8e42
2012-07-16 17:37:57 -07:00
Benjamin Peterson
4a0c5dd75c Bug 774511 - Remove unused exception message. r=terrence 2012-07-16 20:38:47 -04:00
Nicholas Nethercote
1a1da39674 Bug 771378 (part 3) - Remove MUST_FLOW_THROUGH and related things. r=jwalden.
--HG--
extra : rebase_source : cf7a8638b7ce8a9313561f22686dc16371d14756
2012-07-17 16:40:25 -07:00
Nicholas Nethercote
0a64c97c9e Bug 771378 (part 2) - Remove use of MUST_FLOW_THROUGH from jsxml.cpp. r=jwalden.
--HG--
extra : rebase_source : 0ee0800006badf84d5ab415a858354e606f648fb
2012-07-17 16:40:21 -07:00
Nicholas Nethercote
a7ab4e5527 Bug 771378 (part 1) - Remove use of MUST_FLOW_THROUGH from BytecodeEmitter.cpp. r=jwalden.
--HG--
extra : rebase_source : c45808569daa61d10bd57fdc5b969e4880cc3ada
2012-07-17 16:36:50 -07:00
Nicholas Nethercote
f8cf077180 Bug 771378 (part 0) - Add ScopedFreePtr to Utility.h. r=jwalden.
--HG--
extra : rebase_source : b43cb64bb1175c4111903f5c30f533612daae841
2012-07-05 17:29:56 -07:00
Chris Jones
16256d749a Bug 774139, part 0: Rename 'NO' typename because that's a constant in Objective-C++. r=bz 2012-07-17 16:01:56 -07:00
Luke Wagner
9fd060b6fc Bug 772688 - remove CallObject property ops and sea witch (r=bhackett) 2012-07-11 15:46:06 -07:00
Luke Wagner
707ccf4110 Bug 772688 - add BindingIter and use it instead of directly touching a Binding's shape (r=waldo) 2012-07-05 20:35:08 -07:00
Steve Fink
769ac05993 Bug 769192 - Typed array accessors should not use JSPROP_READONLY. r=Waldo 2012-07-16 11:11:06 -07:00
Eddy Bruel
081647891e Bug 767059 - Commenting the parser; r=jorendorff 2012-07-17 20:16:28 +02:00
Rafael Ávila de Espíndola
b7dfee3795 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Nicolas Pierron
689f87cddc Bug 772509 - Freeze a compilation output instead of a script. r=bhackett 2012-07-17 18:17:24 +02:00
Gabor Krizsanits
eb91f1fcc5 Bug 769273 - part4: avoiding innerization in NukeCrossCompartmentWrappers. r=bholley 2012-07-17 17:51:21 +02:00
Luke Wagner
24c2aef018 Bug 773927 - Propagate closed-ness in CompExprTransplanter (r=dvander)
--HG--
extra : rebase_source : 85f484b705372b380832d94172024b0da20f19cf
2012-07-16 15:10:38 -07:00