Commit Graph

16307 Commits

Author SHA1 Message Date
Ms2ger
c08e28ffbb Bug 677079 - Part ab: Remove jscntxt.h and dependencies from INSTALLED_HEADERS; r=dmandelin 2012-01-15 09:13:11 +01:00
Ms2ger
3b70bf2777 Bug 677079 - Part aa: Expose sizeof(JSContext) in jsfriendapi.h; r=njn 2012-01-15 09:13:11 +01:00
Ms2ger
7a241b6e2d Bug 677079 - Part z: Move JS_CHECK_RECURSION to jsfriendapi.h; r=mjrosenb 2012-01-15 09:13:11 +01:00
Ms2ger
d2bbda8564 Bug 677079 - Part y: Move AutoIdVector to jsapi.h; r=evilpie 2012-01-15 09:13:11 +01:00
Ms2ger
d088d42b35 Bug 677079 - Part x: Move AutoValueVector to jsapi.h; r=evilpie 2012-01-15 09:13:11 +01:00
Ms2ger
ddd6bffd7f Bug 677079 - Part w: Move AutoVectorRooter to jsapi.h; r=evilpie 2012-01-15 09:13:11 +01:00
Ms2ger
d7a989a022 Bug 677079 - Part v: Expose rt->compartments in jsfriendapi.h; r=jorendorff 2012-01-15 09:13:11 +01:00
Ms2ger
dd1391fb7b Bug 677079 - Part u: Provide TriggerOperationCallbacksForActiveContexts in jsfriendapi.h; r=bhackett 2012-01-15 09:13:10 +01:00
Ms2ger
5906bcfce6 Bug 677079 - Part t: Provide IsContextRunningJS in jsfriendapi.h; r=jorendorff 2012-01-15 09:13:10 +01:00
Ms2ger
faa2fb2251 Bug 677079 - Part s: Make JS_TRACER_INIT a function instead of a macro; r=billm 2012-01-15 09:13:10 +01:00
Ms2ger
47fef8e488 Bug 677079 - Part r: Provide AutoSkipConservativeScan in jsfriendapi.h; r=luke 2012-01-15 09:13:10 +01:00
Ms2ger
a68763cbfd Bug 677079 - Part q: Expose gcLock in jsfriendapi.h; r=gal 2012-01-15 09:13:10 +01:00
Ms2ger
d3a8cef289 Bug 677079 - Part o: Expose setActivityCallback in jsfriendapi.h; r=gal 2012-01-15 09:13:10 +01:00
Ms2ger
e1128e53a7 Bug 677079 - Part n: Expose JSOPTION_UNROOTED_GLOBAL in jsfriendapi.h; r=gal 2012-01-15 09:13:09 +01:00
Ms2ger
d18f6233a3 Bug 677079 - Part m: Expose context's compartment in jsfriendapi.h; r=jorendorff 2012-01-15 09:13:09 +01:00
Ms2ger
481a852857 Bug 677079 - Part k: Expose outstandingRequests in jsfriendapi.h; r=cdleary 2012-01-15 09:13:09 +01:00
Ms2ger
f9031f06f9 Bug 677079 - Part i: Expose errorReporter in jsapi.h; r=mrbkap 2012-01-15 09:13:09 +01:00
Ms2ger
b36971fb80 Bug 677079 - Part h: Expose debuggerHandler in jsfriendapi.h; r=igor 2012-01-15 09:13:09 +01:00
Ms2ger
db00645596 Bug 677079 - Part g: Expose VersionSetXML in jsfriendapi.h; r=bhackett 2012-01-15 09:13:08 +01:00
Ms2ger
799383f927 Bug 677079 - Part f: Expose structuredCloneCallbacks in jsfriendapi.h; r=jorendorff 2012-01-15 09:13:08 +01:00
Ms2ger
074cb0467e Bug 677079 - Part e: Move js_GetSCOffset to jsfriendapi.h; r=luke 2012-01-15 09:13:08 +01:00
Ms2ger
6b0c6353bd Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff 2012-01-15 09:13:08 +01:00
Ms2ger
51011b3e2b Bug 677079 - Part c: Stop installing jsdate.h; r=Waldo 2012-01-15 09:13:07 +01:00
Ms2ger
eed17b31be Bug 677079 - Part a: Move AutoLockGC to jsfriendapi.h; r=igor 2012-01-15 09:13:07 +01:00
Boris Zbarsky
60092be797 Bug 712289. Make sure that alignment requirements agree for js::Value and jsval_layout. r=luke 2012-01-14 23:39:32 -05:00
Shu-yu Guo
e27f5dd66b Fix opcode metadata counting for property and element ops, bug 717988. r=bhackett 2012-01-13 17:47:59 -08:00
Brian Hackett
afa722933a Mark types for second value pushed by JSOP_CALLXMLNAME, bug 717252. r=dvander 2012-01-13 17:45:11 -08:00
Brian Hackett
e494be423b Merge. 2012-01-13 17:40:14 -08:00
Chris Leary
9c521b7872 Back out b36175bbda47.
--HG--
extra : rebase_source : 927a14ed70c37c654b53145a71d2f88be139a9b9
2012-01-13 17:35:10 -08:00
Brian Hackett
138d6124db Don't clobber compared FP registers when syncing before a double comparison, bug 716119. r=dvander 2012-01-13 13:18:51 -08:00
Chris Leary
65bb6fc01a Bug 717762: Proliferate js_memcpy and PodCopy. (r=luke) 2012-01-12 18:40:08 -08:00
Chao-ying Fu
2ee874bb61 Add MIPS support to JaegerMonkey (bug 678154, r=dvander).
--HG--
extra : rebase_source : 8f174670ae068741a1536696e17e3a2a6bb4c7e5
2012-01-12 19:18:05 -08:00
Rafael Ávila de Espíndola
a8a418330d Bug 717908 - disable unreliable test. r=igor.
Since we use a conservative gc, this test can fail depending on the memory
layout.

--HG--
extra : rebase_source : dc0f35343a4aa2b911cb582c093a17a50289d299
2012-01-13 11:11:03 -05:00
Nathan Froyd
1511735e48 Bug 717501 - reduce space required by unicode tables; r=evilpie 2012-01-12 00:10:26 -05:00
Luke Wagner
221d46b0b7 Bug 715561 - Don't forget to bump JSXDR_BYTECODE_VERSION! (r=jorendorff) 2012-01-12 13:41:49 -08:00
Luke Wagner
657d7762b9 Bug 715561 - Fix js_XDRStaticBlockObject to handle empty destructuring let (r=jorendorff) 2012-01-09 10:50:17 -08:00
Luke Wagner
8746c5f966 Bug 715561 - Tidy up js_XDRStaticBlockObject (r=jorendorff)
--HG--
extra : rebase_source : a0cdaca76ee0a475bb7592090b1e9993e662fecb
2012-01-09 10:23:38 -08:00
Brian Hackett
fc306d98e5 Fix AssertValidPropertyCacheHit when called from JIT stubs, bug 717251. r=dvander 2012-01-12 08:41:09 -08:00
Brian Hackett
77528032b4 Avoid skipping sync code in GETPROP PIC on non-length accesses which can invoke a getter, bug 717184. r=dvander 2012-01-11 17:42:58 -08:00
Brian Hackett
da9cc94683 Account for all special CALLPROP behavior in inline cache stub, bug 717208. r=dvander 2012-01-11 17:31:41 -08:00
Luke Wagner
d72163a2d5 Bug 714547 - SecurityWrapper should not interfere with same-document.domain access (r=mrbkap)
--HG--
extra : rebase_source : ffc6e1920dccdd194269fa7056113944863e0419
2012-01-09 15:32:53 -08:00
Brian Hackett
ea3261837a Fix non-threadsafe builds, no bug. r=jorendorff 2012-01-11 07:45:55 -08:00
David Rajchenbach Teller
7cc95dee63 Bug 707096 - Add a public API for TypedArray / ArrayBuffer. r=dmandelin 2012-01-10 08:56:47 +01:00
Ms2ger
10ae9ad9d2 Merge m-c to m-i. 2012-01-11 12:15:35 +01:00
Ms2ger
0ee7223f8a Bug 332648 - Part h: Move AutoEnumStateArray to jsapi.h; r=evilpie 2012-01-11 09:23:09 +01:00
Ms2ger
badf95659c Bug 332648 - Part g: Move AutoIdArray to jsapi.h; r=evilpie 2012-01-11 09:23:09 +01:00
Ms2ger
b15e0925fa Bug 332648 - Part f: Move AutoIdRooter to jsapi.h; r=evilpie 2012-01-11 09:23:09 +01:00
Ms2ger
dbd0ec7cdd Bug 332648 - Part e: Move AutoArrayRooter to jsapi.h; r=evilpie 2012-01-11 09:23:09 +01:00
Ms2ger
61e5d8db2b Bug 332648 - Part d: Move AutoStringRooter to jsapi.h; r=evilpie 2012-01-11 09:23:08 +01:00
Ms2ger
28ef8d5df7 Bug 332648 - Part c: Move AutoObjectRooter to jsapi.h; r=evilpie 2012-01-11 09:23:08 +01:00
Ms2ger
41e5f45d47 Bug 332648 - Part b: Move AutoValueRooter to jsapi.h; r=evilpie
This patch also moves the MarkRuntime function into the JS namespace.
2012-01-11 09:23:08 +01:00
Ms2ger
afa524ca3b Bug 332648 - Part a: Move AutoGCRooter to jsapi.h; r=evilpie
This also moves AutoCheckRequestDepth into jsapi.h and moves some assertions
from CHECK_REQUEST to the AutoCheckRequestDepth constructor.
2012-01-11 09:23:08 +01:00
Ms2ger
ba150c988a Bug 714264 - Part c: Move IterateData / CollectCompartmentStatsForRuntime / GetExplicitNonHeapForRuntime to js/MemoryMetrics.h; r=njn
This patch also removes those APIs exposed in js/MemoryMetrics.h that aren't
used anymore.
2012-01-11 09:23:08 +01:00
Ms2ger
4c9257d038 Bug 714264 - Part b: Move CompartmentStats to MemoryMetrics.h; r=njn
The name member is implemented as a void*, because it needs to remain an
nsCString, and as such the logic to get the name also remains in XPConnect.
2012-01-11 09:23:08 +01:00
Ms2ger
fe9a65e24a Bug 714458 - Part b: Provide the thread-related APIs xpcprivate.h needs; r=igor
This introduces a JS_GetCurrentThread to go with the existing
JS_GetContextThread, as well as a js::GetContextThread to get at the actual
JSThread object, and inlines the only use of JS_THREAD_ID.
2012-01-11 09:23:07 +01:00
Ms2ger
dd7e572a40 Bug 714458 - Part a: Introduce JSAPI for JSContext's second private pointer; r=Waldo
JSContext currently has 2 private pointers, but the JSAPI only provides access
to one of them.
2012-01-11 09:23:07 +01:00
Ms2ger
2ebe58f6e7 Bug 714728 - Remove jsword/jsuword in favour of intptr_t/uintptr_t; r=Waldo 2012-01-11 09:23:05 +01:00
Kartikaya Gupta
664fe7b801 Bug 715791 - Preserve line numbers when preprocessing java files as well as js files. r=ted 2012-01-05 23:32:05 -05:00
Rafael Ávila de Espíndola
137a526a8b Bug 715528 - Drop old bits about cross compiling from ppc to x86 and default OS X for ppc. r=ted. 2012-01-10 08:29:13 -05:00
Mike Hommey
1f4341fcce Bug 701371 - Rename mozutils to mozglue, and move it to top-level. r=khuey,a=brendan
--HG--
rename : memory/mozutils/Makefile.in => mozglue/Makefile.in
rename : memory/mozutils/Makefile.in => mozglue/build/Makefile.in
rename : memory/mozutils/dummy.cpp => mozglue/build/dummy.cpp
rename : memory/mozutils/fixcrt.py => mozglue/build/fixcrt.py
rename : memory/mozutils/mozutils.def.in => mozglue/build/mozglue.def.in
2011-12-28 08:24:02 +01:00
Jeff Walden
50aa3de8a4 Fix the test for bug 715682 to use the right file name and bug number, and give it a more accurate description. r=trivial 2012-01-10 00:11:15 -06:00
Jeff Walden
1b2428d2ca Bug 715821 - Add tests for reimplementation of Object.prototype.__define[GS]etter__ in terms of Object.defineProperty. r=tests
--HG--
extra : rebase_source : fe221868b0aa281da44383fda7a4ef4c69156554
2012-01-09 23:12:47 -06:00
Terrence Cole
0f79e55476 Bug 716176 - Trigger write barriers when copying BaseShapes; r=billm
Since getterObj and setterObj are hidden beneath unions, we need to manually
trigger their barriers.

--HG--
extra : rebase_source : c4936795ff5afbb23b77f680a4e607a6f1b722bd
2012-01-09 16:08:24 -08:00
Daniel Holbert
8f4f050f75 Bug 716702: Fix C++-style comment in header 'jsopcode.h' that gets included in C code. r=bhackett 2012-01-09 15:45:54 -08:00
Landry Breuil
c4964fd0be Bug 714312 - Use <machine/endian.h> to get endianess on BSD systems, fixing the BSD build. r=ted
--HG--
extra : rebase_source : 8b418bdb2d713093d138ffed20bf1630c05f396b
2012-01-09 17:32:00 -06:00
Jeff Walden
3e5f1331f2 Bug 715821 - Make Object.prototype.__defineGetter__ and Object.prototype.__defineSetter__ perform their work by forwarding to Object.defineProperty. This eliminates two calls to CheckRedeclaration, which is impeding property-storage-splitting work. r=bhackett
--HG--
extra : rebase_source : 4516291a3e4809999aef2c0a3748785a3aa139ce
2012-01-06 00:13:20 -06:00
Daniel Holbert
6bc23dbdce Bug 716663: Fix check for PR49911 to use "=" instead of "==" for string-equality-check with 'test'. r=respindola 2012-01-09 14:17:00 -08:00
Luke Wagner
2156b20ec8 Bug 716068 - de-OptimizeSpanDeps (r=waldo)
--HG--
extra : rebase_source : 4dd2b3c08f792ceb86c3824b953e88a08f3968cc
2012-01-09 11:05:06 -08:00
Luke Wagner
a0f4468a00 Bug 715817 - rm SRC_EXTENDED (r=waldo)
--HG--
extra : rebase_source : ba776d02fcaa109cac1ab450939218b3090b9b73
2012-01-09 11:05:03 -08:00
Jim Blandy
44ae800ab8 Bug 716629: Mark deleted JSFunction::toFunction methods as private, as per MOZ_DELETE instructions in mfbt/Attributes.h. 2012-01-09 12:34:06 -08:00
Mounir Lamouri
90398cbe06 No bug - Fix build bustage. Follow up from bug 716541. r=mrbkap 2012-01-09 20:09:02 +01:00
Jacek Caban
8273584a40 Bug 712594 - libffi fails to build on mingw-w64 r=bsmedberg 2012-01-09 18:46:27 +01:00
Jacek Caban
d94f6b84d0 Bug 714646 - jsgc.cpp fails to compile on Win64 GCC r=igor 2012-01-09 18:45:50 +01:00
Brian Hackett
ef103cd67e Backout 54cd89b0f1fa (bug 712714 backout). Talos will probably report fake regressions for this patch, do not back out for this reason. 2012-01-09 06:29:50 -08:00
Igor Bukanov
12c791efaf bug 716512 - make sure that gcparam in shell cannot set MAX_GC_BYTES to a value les than the current GC_BYTES. r=anygregor 2012-01-09 15:23:36 +01:00
Jeff Walden
36dd382b2e Bug 715852 - Fix an assertion running ecma_5/Object/proto-property-change-writability-set.js that happens when a test gets methodjitted just so. This fix is the required methodjit complement to the interpreter fix from bug 713944. FAIL. r=i-am-dumb 2012-01-07 00:55:21 -06:00
Bobby Holley
9f17b789c2 Bug 715417 - Eliminate getPrincipalArray and globalPrivilegesEnabled from JSPrincipals. r=mrbkap 2012-01-06 17:29:02 -08:00
Ed Morley
44179fc650 Bug 716139 - Don't try to generate js/src/analysis-tests/Makefile, since the directory no longer exists; rs=khuey 2012-01-07 01:00:29 +00:00
Igor Bukanov
024bdbca25 bug 714280 - Make gcMaxBytes a hard limit. r=anygregor 2012-01-05 09:54:37 +01:00
Mounir Lamouri
e47889adff Bug 703121 - Part 2 - Do not force warnings-as-errors to be disabled on Android. r=khuey 2012-01-06 18:17:07 +01:00
Mounir Lamouri
4974b40d0d Bug 703121 - Part 1 - Make warnings-as-errors opt-in instead of opt-out. r=khuey 2012-01-06 18:16:20 +01:00
Jeff Walden
84ad2e6e48 Bug 713965 - Replace deleteGeneric (taking a jsid) with deleteByValue (taking a Value), and use the property-type-specific methods exclusively. r=bhackett
--HG--
extra : rebase_source : c9273f81996c755f6b3814895a4ce64f390f7c50
2011-12-28 16:33:20 -06:00
Jeff Walden
51c7071c6d Bug 715059 - Make ParseNode non-copyable and non-copy-assignable. r=luke
--HG--
extra : rebase_source : 390a125ca841d1b2e26ee3e18b72242e151feff4
2012-01-03 22:18:55 -06:00
Jeff Walden
afa8cb44ae Bug 715682 - Make sure to generate the appropriate initializing opcode for accessors in object literals. r=bhackett
--HG--
extra : rebase_source : b4ec1d4e5800606c31e6fb7edf627437fe3f5185
2012-01-05 17:40:14 -06:00
Igor Bukanov
2171d0d05a bug 715883 - eliminating no longr used JSRuntime::gcEmptyArenaPoolLifespan and related code. r=gal 2012-01-06 16:42:18 +01:00
Andrew McCreight
afff3371b6 Bug 707313 - use special non-NULL next for weak maps not in the list. r=jimb 2012-01-06 11:30:09 -08:00
Jim Blandy
1dd8193e3d Bug 715656: Rename js::StackFrame::markFunctionEpilogueDone to updateEpilogueFlags, to be less misleading r=luke 2012-01-06 11:06:48 -08:00
Jim Blandy
6c52827dec Bug 715667: Remove some unnecessary toFunction() calls applied to JSFunction values. r=luke 2012-01-06 11:06:48 -08:00
Terrence Cole
17f1969b7b Bug 715943 - StackFrame marking should not skip its JSFunction; r=luke
Right now, the StackFrame marks script().  When this is a plain function, this
returns fun()->script(), meaning that we never explicitly mark fun() and rely on
it being rooting in some other fashion.  This is incorrect.

--HG--
extra : rebase_source : 53ef38edcacbb2f5c40f207486c91d5437468721
2012-01-06 11:00:41 -08:00
Blake Kaplan
0b4fbbaf46 Bug 715498 - Revive the -c "compile only" option for the JS shell. r=cdleary
--HG--
extra : rebase_source : 06f8f4f642df4c5facbac0c906e64a8a58261005
2011-12-23 18:25:16 +01:00
Marco Bonardo
d9cd166f6a Backout c0d337401801,78d17e22a223 (bug 712714) for talos regressions across the board. 2012-01-06 13:49:52 +01:00
Brian Hackett
9ffe60c17b Seal/freeze objects without converting to dictionary mode, bug 708641. r=luke 2012-01-05 19:51:08 -08:00
Brian Hackett
c777c2ce72 Fix bug 715662. 2012-01-05 19:13:56 -08:00
Jeff Walden
9b71441bf3 Convert a couple always-true appends to infallibleAppend, since that's what they should have been using. No bug, r=trivial
--HG--
extra : rebase_source : c5d4c809e3fe23013ec1e64d18fa7001472e0092
2012-01-05 11:42:42 -06:00
Jeff Walden
318233e1de Return NULL, not false, from some JSObject::replaceWithNewEquivalentShape, which returns a Shape*. No bug, r=themaid
--HG--
extra : rebase_source : 126f621547689572b1ace0ad703b23f311fd64ff
2012-01-05 17:12:18 -06:00
Brian Hackett
ec406a6cd9 Make sure to call XML methods properly in property ICs, no bug. r=dvander 2012-01-05 12:57:06 -08:00
Brian Hackett
b09fa302b2 Remove JOF_CALLOP, bug 712714. r=dvander 2012-01-05 11:08:38 -08:00
Brian Hackett
055e6c3283 Add liveness intervals to indicate variable writes within try blocks, bug 714645. r=dvander 2012-01-05 07:01:18 -08:00
Brian Hackett
4509793e72 Use persistent type sets for initializer opcodes, bug 714600. r=dvander 2012-01-05 06:50:46 -08:00
Brian Hackett
248500c61c Don't modify dictionary shapes in place, bug 703157. r=luke 2012-01-05 06:38:46 -08:00