Commit Graph

26461 Commits

Author SHA1 Message Date
Bobby Holley
6fbf6cf8f6 Bug 711288 - Unconditionally use the new value of JSPROP_READONLY in accessor -> data transformations. r=Waldo 2011-12-16 14:32:39 -08:00
Bill McCloskey
1ce6634809 Bug 710947 - Allow hash table elements to be removed during GC (r=luke) 2011-12-16 14:01:44 -08:00
Brian Hackett
9d04f0062d Fix lingering uses of int32 types, no bug. 2011-12-16 13:21:02 -08:00
Doug Sherk
573bfdbe9c Bug 708207: implement WebGL's getShaderPrecisionFormat r=bjacob 2011-12-16 13:11:59 -08:00
Brian Hackett
d1ee0713dc Add interface for accessing PC counter information from chrome code, bug 687134. r=sfink,waldo 2011-12-16 13:11:08 -08:00
Ms2ger
66852ffea5 Backed out changeset ba447ace2594 (bug 687679) for bustage. 2011-12-16 21:17:16 +01:00
John Schoenick
3973db5adb Bug 687679 - Rename JS_CompileFile to JS_CompileUTF8File, fix users. r=jorendorff,jst 2011-12-16 11:08:59 -08:00
Bill McCloskey
d6b7c6710c Bug 711158 - Avoid triggering write barrier during verifier (r=luke) 2011-12-16 10:31:56 -08:00
Jeff Walden
8b6d055454 Bug 708735 - Really remove the uint32/JSUint32 typedefs now that all users have been fully corrected. r=luke, r=dmandelin from the original change, landing in a CLOSED TREE (which can open now!) 2011-12-16 10:00:08 -05:00
Jeff Walden
9bcf361950 Backed out changeset f879c54dffae: 5efcb9c3b375 introduced more JSAPI users that need fixing for the <stdint.h> types, and it's not worth trying to do fixups for that commit now while holding the tree closed. uint32/JSUint32 type removals will occur later today, after I reopen up a CLOSED TREE. 2011-12-16 08:20:21 -05:00
Jeff Walden
15aab4b4d4 Bug 708735 - Remove the non-<stdint.h> {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types from the JSAPI. The public header added in the previous commit with the old typedefs should ease migration for embedders. r=luke, r=dmandelin, pushing into a CLOSED TREE so the landing is smooth 2011-12-15 21:51:08 -05:00
Jeff Walden
735580ff0e Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin 2011-12-08 22:54:10 -05:00
Ed Morley
747fc4976a Bug 710486 - Remove unnecessary mkdir objdir/js/src/nanojit; r=ted 2011-12-16 09:13:29 +00:00
Jim Blandy
8a088e5188 Bug 708156: Ensure that JM compilation doesn't used out-of-date ScriptAnalysis structures. r=bhackett 2011-12-15 18:08:00 -08:00
Terrence Cole
9900d88776 Bug 710946 - Add write barriers to getterObj and setterObj; r=billm
These fields are immutable, so they do not necessarily need a barrier for
incremental collection -- they do, however, need a barrier for generational
collection, and for reliable verification of the barriers.  It would be nice to
make these HeapPtr's, rather than manually calling the barrier functions, but
the fields are unioned with a function pointer, so this is not trivial.

--HG--
extra : rebase_source : f1f33198317e28fef3cc777f3e1e84725ba9cdc5
2011-12-15 18:03:20 -08:00
Andrew McCreight
979578175a Bug 680937, part 3 - implement and set preserve wrapper callback. r=jst 2011-12-15 17:45:49 -08:00
Andrew McCreight
cdda7ef5fe Bug 680937, part 2 - Add native wrapper preservation hook, call it in WeakMap_set. r=billm 2011-12-15 17:45:21 -08:00
Andrew McCreight
1df9abbcac Bug 680937, part 1 - Don't always mark wrapped native keys. r=billm 2011-12-15 17:44:34 -08:00
Terrence Cole
d46983dbd0 Bug 711266 - JSRope::flatten needs unconditional post barriers; r=billm
For incremental barriers we check if compartment()->needsBarrier to defer the
cost when we are not in a GC cycle.  We cannot do this for cross-generation
barriers.  We need to remove the checks on the post barriers and rename the enum
to something  more specific.
2011-12-15 17:34:59 -08:00
Terrence Cole
26d8af5ae8 Bug 710950 - JSScript::function_ should be barriered; r=billm
The field is immutable, so we can return an unwrapped pointer and don't have to
worry about it for incremental barriers.  We do need post barriers on it during
init for detecting cross-generation pointers, however.  Just make it a normal
HeapPtr.

--HG--
extra : rebase_source : a52d3d74ab5bf3ae926b9da5212825ce1c0ae93d
2011-12-15 15:27:58 -08:00
Felix Fung
9207735cc3 Bug 710996 - Double-assignment in JS_GetValidFrameCalleeObject(). r=jorendorff 2011-12-15 00:28:11 -08:00
Igor Bukanov
b61666f05f bug 711095] - make GC scanning compatible with the incremental GC. r=billm
--HG--
extra : rebase_source : 5328784491f322824977ba80dd302cc13e84520a
2011-12-15 21:07:45 +01:00
Igor Bukanov
0041cc87ae bug 710581 - fixing GCC 4.6 warning. r=bhackett
--HG--
extra : rebase_source : ae76549e73945844a75c1d518682b5db4af4cd1a
2011-12-14 20:51:56 +01:00
Terrence Cole
422330c2e4 Bug 711165 - DenseArray are missing some barrier calls; r=billm
The copy path was caught, the init path was not.  This does not matter for
incremental barriers, but will for cross-generation barriers.

--HG--
extra : rebase_source : 4fa7c4cc860cd9265ccd598340941840ee4e23e9
2011-12-15 15:27:32 -08:00
Brian Hackett
849c70acf3 Correctly compute fun.caller for cloned functions, bug 710780. r=luke 2011-12-15 14:09:49 -08:00
David Mandelin
df737b9edc No bug, remove file needed only for nanojit landings 2011-12-15 14:07:59 -08:00
Chris Leary
7282a8396e Bug 709622: Conditional with empty consequent causes strict strict warning. (r=Waldo) 2011-12-13 13:22:37 -08:00
Bobby Holley
ac4d694df2 Bug 711203 - enable XPConnect wstring test. r=khuey 2011-12-15 13:27:42 -08:00
Luke Wagner
d1f13f9290 Bug 703645 - rm SRC_LOOPHEAD (r=waldo)
--HG--
extra : rebase_source : 9301aa0af4e81a8725f05c702145c89a4ece4db6
2011-11-22 11:37:57 -08:00
Luke Wagner
7360b82f33 Bug 704478 - Fix single-threaded runtime assertions in shell workers (r=jorendorff)
--HG--
extra : rebase_source : 13deb300ee2aa3d5518549d4f296b276a0da4e42
2011-11-22 11:37:57 -08:00
Luke Wagner
9d6cf074c5 Bug 704351 - Fix ValueToScript in js shell (r=waldo)
--HG--
extra : rebase_source : 0c072081ed9699017ddae80404c24562c6de3536
2011-11-22 11:37:57 -08:00
Luke Wagner
890df346ed Bug 705879 - Avoid touching stale generator frame in js_CloneBlockObject (r=bhackett)
--HG--
extra : rebase_source : be217f5a36fb69c37fe09e41f34b7f031a3e8224
2011-12-07 17:14:35 -08:00
Luke Wagner
cee38cd4c7 Bug 624621 - Allow embeddings to attach an extra 'origin' principal to scripts (r=mrbkap)
--HG--
extra : rebase_source : 85ed15c9f230bc342e7810e62abace18a7177c4b
2011-06-27 17:42:53 -07:00
Bobby Holley
f178ecf8cc Bug 702491 - Don't set JSPROP_READONLY for accessor properties. r=Waldo 2011-12-15 11:40:57 -08:00
Bill McCloskey
71556100b0 Bug 708303 - Back out 1deb23332fb5 for orange 2011-12-15 10:30:09 -08:00
Jeff Walden
d2cb5c394c Bug 709322 - Create break/continue statements using constructors that don't examine the token stream. r=jorendorff
--HG--
extra : rebase_source : a243448ec54ace56b108cd0fa548e36a6d539603
2011-12-09 20:26:07 -05:00
Jeff Walden
faf3c4c58a Bug 710192 - JSOP_SETPROP does not imply the property name isn't an index. r=evilpies
--HG--
extra : rebase_source : 7e284895ce88aa47c2f9f009aa3e0614161c35ea
2011-12-13 15:53:29 -05:00
Bill McCloskey
a30794f55e Bug 708805 - Add write barrier to JSFunction::env (r=bhackett) 2011-12-15 09:41:04 -08:00
Bill McCloskey
e61b9ac06e Bug 708303 - Use pinReg/unpinReg more in write barriers (r=dmandelin) 2011-12-15 09:40:59 -08:00
Bill McCloskey
fe1398adeb Bug 708228 - Fix infinite write barrier recursion in regexp purge (r=cdleary) 2011-12-15 09:40:51 -08:00
Brian Hackett
3fe2ac6b0b Watch for native functions when cloning methods accessed by fun.caller, bug 709634. r=luke 2011-12-15 09:17:11 -08:00
Brian Hackett
e79f9709d1 Backout 36fa9b176a91 (bug 710516) for M1 bustage. 2011-12-15 09:07:00 -08:00
Brian Hackett
3cc89b2739 Watch for GCs under nativeLookup, bug 709863. r=dvander 2011-12-15 09:01:00 -08:00
Brian Hackett
943d99598e Properly watch for indexed prototypes and configured properties in array prototype, bug 709067. r=luke 2011-12-15 08:51:09 -08:00
Brian Hackett
1c679d8e79 Remove JSObject::containsSlot, bug 710516. r=luke 2011-12-15 08:06:00 -08:00
Nathan Froyd
322598fb10 Bug 560349 - make PodZero use inline loops rather than memset; r=luke 2011-12-08 19:59:08 -05:00
Mike Hommey
34ae9a22e5 Bug 709721 - Move video and audio libraries in a gkmedias library on Windows. r=khuey 2011-12-15 06:40:20 +01:00
Jeff Walden
66ad223ec1 Silence unused-value warnings with various Valgrind macros in clang, and add a silencing instance to jsgc.cpp. No bug, rs=jorendorff, a=philor 2011-12-13 17:31:08 -05:00
Andrew McCreight
fa211559a8 Bug 709162 - crash test for cycle collector dumping. rs=bholley a=mbrubeck 2011-12-14 16:02:12 -08:00
Andrew McCreight
cd650f717a Bug 710761 - test if CC listener begin fails, don't call listener again. rs=bholley 2011-12-14 15:56:37 -08:00