Commit Graph

29560 Commits

Author SHA1 Message Date
Nathan Froyd
778bf2197f Bug 924392 - part 2 - don't use JS_BITS_PER_WORD for jsbitmap; r=Waldo 2013-10-08 10:04:22 -04:00
Nathan Froyd
ea41824c7e Bug 924392 - part 1 - don't use JS_BITS_PER_WORD for bit arrays; r=Waldo 2013-10-08 10:04:06 -04:00
Nathan Froyd
df80caf566 Bug 924393 - don't use JS_BITS_PER_WORD in BitArray.h; r=Waldo 2013-10-08 09:54:50 -04:00
Nathan Froyd
8ede1e6c43 Bug 924391 - don't use JS_BITS_PER_WORD in HeapAPI.h; r=billm 2013-10-08 09:54:33 -04:00
Shu-yu Guo
657815bb45 Bug 903193 - Part 7: Replace PushPar use in Ion with SetElementPar. (r=nmatsakis) 2013-10-08 15:14:04 -07:00
Shu-yu Guo
249dd7df96 Bug 903193 - Part 6: Add ParallelExecution path to ArraySetLength. (r=bhackett) 2013-10-08 15:14:04 -07:00
Shu-yu Guo
73a104caf1 Bug 903193 - Part 5: Refactor SetPropertyHelper and friends to have a thread local variant. (r=bhackett) 2013-10-08 15:14:04 -07:00
Shu-yu Guo
ed46c58374 Bug 903193 - Part 4: Add ability to do read only lookup on the Shape tree. (r=bhackett) 2013-10-08 15:14:03 -07:00
Shu-yu Guo
c2ef9c7b83 Bug 903193 - Part 3: Refactor methods that ensure dense elements. (r=bhackett) 2013-10-08 15:14:03 -07:00
Shu-yu Guo
92a335ac6e Bug 903193 - Part 2: Refactor isThreadLocal to ThreadSafeContext. (r=bhackett) 2013-10-08 15:14:03 -07:00
Shu-yu Guo
db2a9808c7 Bug 903193 - Part 1: Make GC barriers only assert CurrentThreadCanAccessZone if the zone actually needs barrier. (r=bhackett) 2013-10-08 15:14:03 -07:00
Shu-yu Guo
2e3835e6ed Bug 901761 - Part 2: Support CreateThisWithTemplate. (r=nmatsakis) 2013-10-08 15:14:03 -07:00
Shu-yu Guo
6389bf860d Bug 901761 - Part 1: Pass slice register to OutOfLineNewGCThingPar and refactor volatile register saving. (r=nmatsakis) 2013-10-08 15:14:02 -07:00
Dan Gohman
73ef407b17 Bug 924285 - Remove VirtualRegister's id field. r=bhackett 2013-10-08 14:18:49 -07:00
Sean Stangl
687009032f Bug 924538 - Float32 support for Uint8ClampedArray. r=luke 2013-10-08 13:17:49 -07:00
Andrew McCreight
678a978e2f Bug 924443 - Remove waitBackgroundSweepOrAllocEnd() call from JS_IterateCompartments. r=billm 2013-10-08 09:36:43 -07:00
Andy Wingo
adf7c6adcc Bug 911334 - More precisely specify bit layout of JSScript flags. r=Waldo 2013-10-08 12:19:40 +02:00
Birunthan Mohanathas
8e7515d933 Bug 784739 - Switch from NULL to nullptr in js/src/jsapi-tests/; r=ehsan
--HG--
extra : rebase_source : 49d8f804825f98f39bf08aa06a4408d8a32538ad
2013-10-07 12:44:52 -04:00
Birunthan Mohanathas
a7848e1e6c Bug 784739 - Switch from NULL to nullptr in js/src/ (9/9); r=ehsan
--HG--
extra : rebase_source : 97517f467027a835cd467c050938e766dc391bbc
2013-10-07 12:44:37 -04:00
Birunthan Mohanathas
01a5defba0 Bug 784739 - Switch from NULL to nullptr in js/src/ (8/9); r=ehsan
--HG--
extra : rebase_source : abf588d83823e82d4b2b6758a907ce809f993ddf
2013-10-07 12:44:28 -04:00
Birunthan Mohanathas
d17e55141a Bug 784739 - Switch from NULL to nullptr in js/src/ (7/9); r=ehsan
--HG--
extra : rebase_source : f72b1ba625e9d30d42e3ab656a3558964c680106
2013-10-07 12:44:15 -04:00
Birunthan Mohanathas
fc988eb823 Bug 784739 - Switch from NULL to nullptr in js/src/ (6/9); r=ehsan
--HG--
extra : rebase_source : ecee31cff18206c7f74e9c71f954c0e75e80af53
2013-10-07 12:44:00 -04:00
Birunthan Mohanathas
4b3762542c Bug 784739 - Switch from NULL to nullptr in js/src/ (5/9); r=ehsan
--HG--
extra : rebase_source : 6ded480d32133b2a0adbe11722334b73161b837f
2013-10-07 12:43:47 -04:00
Birunthan Mohanathas
94e0274ace Bug 784739 - Switch from NULL to nullptr in js/src/ (4/9); r=ehsan
--HG--
extra : rebase_source : 26f4daad52a3a49995aee16669406ab551132f43
2013-10-07 12:43:32 -04:00
Birunthan Mohanathas
a4ed25f406 Bug 784739 - Switch from NULL to nullptr in js/src/ (3/9); r=ehsan
--HG--
extra : rebase_source : b6d78b3404dc885c6f559080076bbfee9acf76a2
2013-10-07 12:43:20 -04:00
Birunthan Mohanathas
e5d5c67b95 Bug 784739 - Switch from NULL to nullptr in js/src/ (2/9); r=ehsan
--HG--
extra : rebase_source : 7592571554a847499941ea8c5b86c0af1cbedb3f
2013-10-07 12:43:08 -04:00
Birunthan Mohanathas
e3785b3a6a Bug 784739 - Switch from NULL to nullptr in js/src/ (1/9); r=ehsan
--HG--
extra : rebase_source : 358fd557136a4c12a3a374657050279d1bdeedfa
2013-10-07 12:42:55 -04:00
Jon Coppeard
8b1e964f27 Bug 889986 - Assert nursery allocations are large enough to be replaced with a RelocationOverlay r=terrence 2013-10-07 13:40:47 +01:00
Jon Coppeard
3fb85260a1 Bug 909785 - Add SkipRoot for inline chars used by regexp r=terrence 2013-10-07 13:40:47 +01:00
Jon Coppeard
fb94767c48 Bug 923390 - Fix assertion failure in getpda() shell function r=sfink 2013-10-07 13:40:44 +01:00
Michael Shuen
2302027c71 Bug 921364 - Fix unsigned warning in js/src/jit/shared/CodeGenerator-shared.cpp. r=luke 2013-10-05 10:47:24 -04:00
Brian Hackett
2a2f2cdc3b Bug 921902 - Fix --disable-ion builds. 2013-10-05 08:26:19 -06:00
masaya iseki
27ca55de54 Bug 900285 - IonMonkey: Ensure context of IC's call. r=nbp 2013-10-04 19:24:10 -07:00
Steve Singer
d39d6bd03e Bug 923354 - Exclude MacroAssembler.h on non ION builds. r=luke 2013-10-04 13:30:13 -04:00
Douglas Crosher
95bb02c8a8 Bug 923328 - Ionmonkey: fix float32 hash function. r=terrence 2013-10-03 10:11:18 +10:00
Mike Hommey
22e60c17f3 Bug 923488 - Avoid binaries dependency on backend.mk when there isn't one. r=gps 2013-10-04 22:29:15 +09:00
Bobby Holley
a07607b748 Bug 921454 - Tests for NAC. r=jonco 2013-10-04 13:29:37 +02:00
Bobby Holley
c19386bfb3 Bug 921454 - Invert faulty assertion. r=jonco
This assertion is pretty clearly bogus, and only exists because, as it turns
out, we never had any test coverage for transplanting SCSW objects with
waivers. Even in the world when this stuff landed (bug 773962, which was well
before the removal of Location SCSWs in bug 808608 and the conversion of Nodes
to new bindings), we apparently never tested the waiver path. :-(
2013-10-04 13:29:36 +02:00
Bobby Holley
b8590ccaf5 Bug 921454 - Use background-finalize-ity forwarding for all wrappers, not just CCWs. r=jonco
The current setup allows mismatches for same compartment wrappers, which causes
us to assert when transplanting them.
2013-10-04 13:29:36 +02:00
Bobby Holley
a109514dc7 Bug 921454 - Match the background-finalize-ity of the DeadObjectProxy with that of origobj in js_TransplantObjectWithWrapper. r=jonco 2013-10-04 13:29:36 +02:00
Bobby Holley
9a62ce9165 Bug 921454 - Add an option for explicitly forcing foreground finalization. r=jonco 2013-10-04 13:29:36 +02:00
Bobby Holley
f8062f062d Bug 921454 - Refactor proxy creation to use an options object. r=jonco 2013-10-04 13:29:35 +02:00
Bobby Holley
e049188b70 Bug 921454 - Skip unwrap safety assertion for cross-compartment SOWs. r=mrbkap
Currently this stuff just asserts when you pass NAC across compartments. And
the logic for this stuff is complicated enough that we don't gain a whole
lot from duplicating it.
2013-10-04 13:29:35 +02:00
Bobby Holley
91f0925e8c Bug 921448 - Move ProxyObject::New to vm/ProxyObject.cpp. r=ejpbruel 2013-10-04 13:29:35 +02:00
Bobby Holley
ce560e7d97 Bug 921448 - Remove FunctionProxyObjects. r=ejpbruel
\o/
2013-10-04 13:29:34 +02:00
Bobby Holley
b1da1dbabe Bug 921448 - Stop using FunctionObjectProxies for ScriptedIndirectProxies. r=ejpbruel 2013-10-04 13:29:34 +02:00
Bobby Holley
fa38c79f6d Bug 921448 - Stop creating a FunctionObjectProxy when a scripted direct proxy has a callable target. r=ejpbruel
There's no reason to store the target's [[Call]] in the reserved slot. If
there's no scripted call trap on the handler, DirectProxyHandler::call will
forward to the target, and we'll get that for free.
2013-10-04 13:29:33 +02:00
Bobby Holley
696711f38b Bug 921448 - Get rid of weird demultiplexing NewProxyObject overload. r=ejpbruel
Function proxies are going away with these patches. First, let's stop pretending
like they're equal citizens with regular proxies.
2013-10-04 13:29:33 +02:00
Bobby Holley
455d54511a Bug 921448 - Use callability rather than object classes when determining how to toSource(). r=ejpbruel 2013-10-04 13:29:33 +02:00
Bobby Holley
69949e78f5 Bug 921448 - Implement sane default behavior for fun_toString for all proxies. r=ejpbruel 2013-10-04 13:29:33 +02:00
Brian Hackett
0af897c765 Bug 921902 - Separate generation and attaching of heap property type constraints, r=jandem. 2013-10-03 21:44:13 -06:00
Dan Gohman
22f990a91b Bug 915846 - IonMonkey: Simple range analysis for div and sqrt. r=nbp 2013-10-03 17:25:03 -07:00
Dan Gohman
38ae4b4b4b Bug 915846 - Spew the full name of an MDefinition instead of just the number. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
0d4f665710 Bug 915846 - IonMonkey: Collect all of Range's invariants and enforce them uniformly. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
1ecdb001a9 Bug 915846 - IonMonkey: Assert that we don't try to do range analysis on instructions that don't produce a value. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
8fbdc89260 Bug 915846 - IonMonkey: Add range checking for beta nodes. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
3965a53b55 Bug 915846 - IonMonkey: Create beta nodes for comparisons with double constants. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
a0ae8e6e46 Bug 915846 - IonMonkey: Rewrite how Ranges are initialized, eliminating rectifyExponent() and making tricky details more explicit. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
707c6dec5d Bug 915846 - IonMonkey: Simplify int64 arithmetic to int32 arithmetic in several places. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
4692cb39d0 Bug 915846 - IonMonkey: Use Range accessor methods instead of accessing fields directly in some places. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
858ac0bb23 Bug 915846 - IonMonkey: Introduce several new Range predicate helper functions. r=nbp 2013-10-03 17:25:02 -07:00
Dan Gohman
73d0fcba27 Bug 915846 - IonMonkey: Introduce sentinal values for the max_exponent_ field to represent infinity and NaN. r=nbp 2013-10-03 17:25:01 -07:00
Benjamin Peterson
ddaacf8336 Bug 923466 - Shut up opt build unused variable warnings. r=billm 2013-10-03 16:23:44 -04:00
Bill McCloskey
7f1aec3bb8 Back out bug 922943 since it was misguided 2013-10-03 11:17:23 -07:00
Brian Hackett
53ce4df624 Bug 922429 - Don't leak GSN cache memory in IonBuilder, r=jandem. 2013-10-03 11:53:50 -06:00
Jan de Mooij
a6fadfdbbf Bug 916761 - Add invalidation constraint when inlining a script with an inlining hint. r=nmatsakis 2013-10-03 13:19:22 -04:00
Brian Hackett
605f4afa69 Bug 920028 - Allow ToDouble operations with a folded ToInt32 input to tolerate more of its own inputs, r=jandem. 2013-10-03 10:39:39 -06:00
Brian Hackett
4cc9f4f0df Bug 921012 - Watch for the definite properties analysis when inlining a few intrinsic functions, r=jandem. 2013-10-03 10:38:05 -06:00
Brian Hackett
203319de00 Bug 920446 - Scripts might not yet have had their arguments usage analyzed when being popped in the interpreter, r=luke. 2013-10-03 09:29:36 -06:00
Brian Hackett
305962fce0 Bug 919509 - Watch for new properties added inside loop bodies, r=jandem. 2013-10-03 08:32:24 -06:00
Andy Wingo
73cf8a0ea1 Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden 2013-10-03 13:37:57 +01:00
Jeff Walden
40b9a22100 Bug 921631 - Convert CTypes away from using propertyops to using JSNative-backed getters/setters, part 4. r=bholley
--HG--
extra : rebase_source : 75d252a85aff64b4763ce09842e4fed2b4801346
2013-09-20 15:04:53 -07:00
Jeff Walden
9386921f13 Bug 921631 - Convert CTypes away from using propertyops to using JSNative-backed getters/setters, part 3. r=bholley
--HG--
extra : rebase_source : e88b147e55d6dd1bdd9de34272d347e932ef09b7
2013-09-12 15:45:42 -07:00
Jeff Walden
055996bd20 Bug 921631 - Convert CTypes away from using propertyops to using JSNative-backed getters/setters, part 2. r=bholley
--HG--
extra : rebase_source : fe8676172e19e987d72b33e94bc636c7baac36eb
2013-09-12 15:45:42 -07:00
Jeff Walden
870e0b94b5 Bug 921631 - Convert CTypes away from using propertyops to using JSNative-backed getters/setters, part 1. r=bholley
--HG--
extra : rebase_source : c735d2ab8d7e0b0d02aafc393ae0a7b139a7bc09
2013-09-12 15:45:42 -07:00
Jeff Walden
f72fc32108 Bug 921631 - Restrict the JS_PSG/JS_PSGS flags to not contain JSPROP_READONLY (meaningless for accessors) or JSPROP_SHARED or JSPROP_NATIVE_ACCESSORS (implied by the macros already). r=jorendorff
--HG--
extra : rebase_source : ef4134cfbb1898c2398354f361a30cce5ffba89e
2013-09-27 14:43:38 -07:00
Jeff Walden
e83d3e8416 Bug 921548 - Remove js_ValueToObjectOrNull -- people should use ToObject or explicit null/undefined tests, for readability. r=jorendorff
--HG--
extra : rebase_source : 06222452e1a0f77c12c4b79dbe5202d57fe5faaa
2013-09-27 11:19:47 -07:00
Jeff Walden
8c90bd1052 Bug 921548 - Remove js_ValueToNonNullObject, which was entirely equivalent to ToObject. r=jorendorff
--HG--
extra : rebase_source : 75b6afc174a72cd24f95edeee1291482b162bef8
2013-09-27 11:19:47 -07:00
Ms2ger
ae8c899faf Merge m-c to inbound. 2013-10-03 11:09:17 +02:00
Ms2ger
df62fb8b0f Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Ms2ger
8a331d5c61 Bug 912099 - Part h: Make sure CPP_SOURCES only points to existing files in js/src; r=mshal 2013-10-03 09:10:01 +02:00
Ms2ger
2f7a94dd23 Bug 912099 - Part a: Make sure CPP_SOURCES only points to existing files in most of the tree; r=mshal 2013-10-03 09:10:00 +02:00
Ms2ger
9d5ce8dfb7 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Ms2ger
f2703ebd89 Bug 898559 - Followup: Add back accidentally removed failure handling; r=bholley 2013-10-03 09:09:59 +02:00
Jon Coppeard
397999d940 Bug 913261 - GenerationalGC: Fix watchpoint rekeying r=terrence 2013-10-02 10:38:40 +01:00
Terrence Cole
f74618a346 Bug 923317 - Add a GC zeal mode targeting generational GC specifically; r=billm
--HG--
extra : rebase_source : 4f2a6df352dcb1b09b92ce5bc82d885faf048909
2013-09-20 10:24:29 -07:00
Bill McCloskey
80cf0bcd42 Bug 922943 - Do something about jit-tests failing on OS X with exit code -9 (r=terrence) 2013-10-02 17:03:37 -07:00
Mike Hommey
1e42ec5de9 Bug 921307 - Aggregate dependencies in subdirectories that are still recursed with pseudo derecurse. r=gps 2013-10-03 05:51:19 +09:00
Mike Hommey
5b228ebafb Bug 922974 - Replace NO_INSTALL with NO_DIST_INSTALL. r=gps 2013-10-03 05:51:15 +09:00
Terrence Cole
1241a0080e Bug 913715 - Do not inline nursery allocated getter functions; r=bhackett
--HG--
extra : rebase_source : f104adfd2de0166d7146aaf0e3154e5a8a0e48cf
2013-10-01 15:27:51 -07:00
Brian Hackett
e277c7a67e Bug 922283 - Remove the self hosted class mechanism, r=shu. 2013-10-02 08:16:04 -06:00
Mike Hommey
7eea2d2f7f Bug 921003 - Make directory skipping opt-in, as initially intended. r=me 2013-10-02 11:32:15 +09:00
Luke Wagner
5530c7cf8e Bug 922096 - OdinMonkey: prevent multiple concurrent parallel asm.js compilations (r=sstangl) 2013-10-01 17:23:55 -05:00
Wes Kocher
548b3fc608 Merge m-c to inbound 2013-10-01 18:54:45 -07:00
Wes Kocher
404e115714 Merge inbound to m-c 2013-10-01 18:41:15 -07:00
Dan Gohman
9791a45319 Bug 920050 - SpiderMonkey: Use the high-level mov interface for setting registers to zero, since it now knows how to do the xor trick automatically. r=nbp 2013-10-01 17:47:12 -07:00
Dan Gohman
d8273b311b Bug 920050 - SpiderMonkey: Use xorl %reg, %reg to clear a register to zero. r=nbp 2013-10-01 17:46:57 -07:00
Dan Gohman
42f3455c2d Bug 920050 - SpiderMonkey: Use movq directly for storePtr with 32-bit immediates on x64. r=nbp 2013-10-01 17:46:41 -07:00
Dan Gohman
c4d52b4df8 Bug 920050 - SpiderMonkey: Use mov(ImmWord(imm), reg) instead of mov(Imm32(imm), reg) for moving immediates into registers. r=nbp 2013-10-01 17:46:30 -07:00
Mike Hommey
9ff9ef374e Bug 905973 part 3 - Add a "binaries" tier that optimizes for recompilation times. r=gps 2013-10-02 08:53:23 +09:00