Commit Graph

850 Commits

Author SHA1 Message Date
Brian Hackett
9e2dee9332 Bug 892187 - Fix spurious uses of ExclusiveContext->asJSContext(), r=billm. 2013-07-15 08:12:40 -06:00
Nicholas Nethercote
787eaffa54 Bug 888768 (part 1) - Remove unnecessary js*inlines.h #includes, as found by include-what-you-use. r=bhackett.
--HG--
extra : rebase_source : 255befadc7d1bd1ed0ef1720cb8043db74ce48a8
2013-07-11 15:15:17 -07:00
Brian Hackett
aafb978437 Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm. 2013-07-10 09:29:52 -06:00
Jason Orendorff
11c11d8f5b Bug 866849, part 2 - Implement Array.of. r=evilpie. 2013-07-10 08:14:02 -05:00
Nicholas Nethercote
9dcfbf0290 Bug 890784 (part 1) - Create a new vm/Runtime module and put JSRuntime in it. r=wmccloskey.
--HG--
rename : js/src/jscntxtinlines.h => js/src/vm/Runtime-inl.h
rename : js/src/jscntxt.cpp => js/src/vm/Runtime.cpp
rename : js/src/jscntxt.h => js/src/vm/Runtime.h
2013-07-07 23:18:48 -07:00
Sankha Narayan Guria
64daba3e69 date: Wed Jun 05 14:17:35 2013 -0500
Bug 875433 - Array.prototype.iterator is the same function object as .values. r=jorendorff.
2013-07-03 15:49:18 -05:00
Jan de Mooij
140b09117d Bug 799122 - Eagerly allocate dense elements for small arrays. r=luke 2013-07-03 13:17:29 +02:00
Terrence Cole
68307928b7 Bug 879079 - Fix static root analysis hazards around ToInteger; r=sfink
--HG--
extra : rebase_source : 645febaf4b4044e28ba9d53a301a7c3ca7468487
2013-06-26 14:46:23 -07:00
Till Schneidereit
f78fd42a4c Bug 885553 - Implement ES6 Array.prototype.find and Array.prototype.findIndex. r=jwalden
--HG--
extra : rebase_source : ca717dae292897561f503ab2d5964f02915f5067
2013-06-26 18:47:41 +02:00
Terrence Cole
ebc01dfda0 Bug 879079 - Make ToNumber take a Handle to fix some static rooting analysis failures; r=sfink
--HG--
extra : rebase_source : 048d46820baedeb593f85e0d445375d482d16050
2013-06-21 18:19:11 -07:00
Nicholas Nethercote
0de29d1125 Bug 884124 (part 7) - Move some methods from JSObject to ArrayObject. r=jwalden.
--HG--
extra : rebase_source : bbe97ebfd1ef026f8a3ee21ce1b75f8b4ed40311
2013-06-19 01:39:47 -07:00
Nicholas Nethercote
82d0cc84f8 Bug 884124 (part 6) - Add an ArrayObject class. r=jwalden.
--HG--
extra : rebase_source : 17a9703165cb665326ff94bc574450ba59ede7f7
2013-06-18 23:55:38 -07:00
Brian Hackett
f117e1e4b6 Bug 881102 - Propagate exceptions in object metadata callback, r=luke. 2013-06-24 10:55:28 -06:00
Jan de Mooij
f5b9908a45 Bug 881902 - Remove ContextStack and StackSpace. r=luke,njn 2013-06-21 08:28:06 +02:00
Nicholas Nethercote
435d36ff71 Bug 880041 (part 22) - Use JSObject::{is,as} for JSFunction. r=sfink.
--HG--
extra : rebase_source : 43c8c65c7d00edffde12c5b1ec8a1aff42acc7fe
2013-06-17 23:53:49 -07:00
Nicholas Nethercote
52908a1abe Bug 880041 (part 21) - Use JSObject::{is,as} for GlobalObject. r=sfink.
--HG--
extra : rebase_source : 676539d76be0aee1c5450aacefed27a4f45efc81
2013-06-17 16:23:11 -07:00
Nicholas Nethercote
549fd96b30 Bug 634839 (part 2b) - Remove more unnecessary headers (as found by include-what-you-use) from SpiderMonkey. r=jorendorff.
--HG--
extra : rebase_source : 5d6a4d653160a9c4a9645b14bebbcfab71b50ef4
2013-06-12 22:20:27 -07:00
Jason Orendorff
a2b2d14935 Back out rev 5d35dc039af7 (bug 875433) due to Web compatibility issues (bug 881782, bug 883914). rs=Waldo on IRC. 2013-06-18 15:35:22 -05:00
Brian Hackett
c199407440 Bug 883661 - Fix and document numeric comparator invariants. 2013-06-17 10:51:16 -06:00
Brian Hackett
a3616fe0d3 Bug 883661 - Handle lazy functions when doing higher order fast invokes and in numeric comparator pattern matching, r=luke. 2013-06-17 10:14:33 -06:00
Nicholas Nethercote
f27d4f199a Bug 880041 (part 2) - Use JSObject::{is,as} for {Normal,Strict,}ArgumentsObjects. r=luke.
--HG--
extra : rebase_source : 1648dd8eae1d1fdcc28644b9865960560ba301f8
2013-06-16 17:06:04 -07:00
Nicholas Nethercote
f2854337c3 Bug 880565 (part 1) - Move isFunction() et al from jsobjinlines.h to jsobj.h and minimize the number of files that #include jsobjinlines.h. r=benjamin.
--HG--
extra : rebase_source : f0d6b1b5825e115b33f2d14c0a6ed9c7ee4ef1ca
2013-06-05 19:07:43 -07:00
Benjamin Peterson
defbf4358c Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : 34f95fc6017d3f3f4f091083debacbd466b51bf6
2013-06-11 12:49:11 -07:00
Ryan VanderMeulen
48564710fc Backed out changeset 1df122edcf0d (bug 823978) for bustage (again).
CLOSED TREE (again)
2013-06-11 15:27:46 -04:00
Benjamin Peterson
859ae9d3b2 Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : 1396c8ec5bd99ab35343cfff2b87d22955671243
2013-06-11 11:30:18 -07:00
Ryan VanderMeulen
a580723853 Backed out changeset 7e69e102a432 (bug 823978) for bustage.
CLOSED TREE
2013-06-11 14:28:17 -04:00
Benjamin Peterson
6a8ee25998 Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : f5c0e9c743dadb0431eacef6b46b6e274264d3aa
2013-06-11 10:55:21 -07:00
Jeff Walden
6c380ca721 Bug 880920 - Simplify some absolute-value-computing code in lexicographic sorts of numeric arrays. r=luke
--HG--
extra : rebase_source : f7b164d212bdf2d94a80064c7d5575ef0cd31e88
2013-06-10 12:13:38 -07:00
Brian Hackett
327a300d21 Bug 881333 - Use accessor methods for cx->compartment and cx->runtime, r=luke. 2013-06-10 15:22:18 -06:00
Sankha Narayan Guria
7b2aff4ced Bug 875433 - Array.prototype.iterator is the same function object as .values. r=jorendorff.
--HG--
extra : rebase_source : 0b9b93bd796ba2c528b89c377b8aac922631ec98
2013-06-05 14:17:35 -05:00
Terrence Cole
92c0bf02c4 Bug 879079 - Fix some exact rooting static analysis failures under js/src; r=bhackett
--HG--
extra : rebase_source : 3d5181531aef48516f1ec257b674e033a2da2aa6
2013-06-03 16:30:00 -07:00
Benjamin Peterson
2d0a00f459 Bug 778948 - Move jsinterp.cpp/h to the vm/ dir. r=luke
--HG--
rename : js/src/jsinterpinlines.h => js/src/vm/Interpreter-inl.h
rename : js/src/jsinterp.cpp => js/src/vm/Interpreter.cpp
rename : js/src/jsinterp.h => js/src/vm/Interpreter.h
2013-06-02 15:30:43 -07:00
Brian Hackett
96a8e9128a Bug 850026 - Allow metadata objects to be associated with JS objects, and add a hook for attaching metadata to newly created objects, r=luke. 2013-05-30 17:37:22 -06:00
Jan de Mooij
57ed4e32e5 Bug 857845 part 1 - rm JaegerMonkey. r=bhackett, sr=luke 2013-05-13 16:47:57 -07:00
Ed Morley
e4ecb53d2c Backed out changeset 47e92fbb6153 (bug 860965) for Win8 xpcshell assertions 2013-05-13 13:01:40 +01:00
Shu-yu Guo
82db710cfc Bug 860965 - Move 1D ParallelArray operations to Array. (r=luke) 2013-05-11 22:39:46 -07:00
Nathan Froyd
7ceff1cbc9 Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo 2013-05-01 16:55:13 -04:00
Terrence Cole
8e6d671a3d Bug 867426 - Remove RawObject typedef; r=jonco
--HG--
extra : rebase_source : cf90289656cdcbc2c33e918db4d5347613ad6360
2013-04-30 15:41:12 -07:00
Terrence Cole
05bb64b19d Bug 867426 - Remove RawScript typedef; r=jonco
--HG--
extra : rebase_source : c32ce48bca7fea1dfdafbf9395835613d8a57276
2013-04-30 15:40:40 -07:00
Terrence Cole
ae0c86c889 Bug 867426 - Remove RawShape typedef; r=jonco
--HG--
extra : rebase_source : fc48e7b49d2dce668685a4f220c8adb1f33aa40a
2013-04-30 15:40:09 -07:00
Jim Blandy
4c02ff838f Bug 862531: Replace BaseProxyHandler::obj_toString with className. r=jorendorff 2013-04-30 14:44:50 -07:00
Brian Hackett
21d5b54411 Bug 863853 - Restrict the new object cache to GenericObject; r=billm,terrence
--HG--
extra : rebase_source : 56e0efbd232a39ba5d27ed04673c97fd9d06141a
2013-03-20 16:15:00 -07:00
Jeff Walden
34ddc52c77 Bug 866700 - Assertion when redefining a non-writable length to a non-numeric value. r=bhackett 2013-04-29 12:30:21 -07:00
Nicholas Nethercote
72663f224e Bug 634839 (part 1) - Remove unnecessary headers (as found by include-what-you-use) from js/src/jsfoo.cpp files. r=luke. 2013-04-23 23:44:36 -07:00
Jeff Walden
eb5717e473 s/JS_TRUE/true/g; s/JS_FALSE/false/g. Following up on a request in bug 858677, r=lumpy
--HG--
extra : rebase_source : 992fe9e7f92924d03abeb5f8839bfd0bca8650f1
2013-04-24 22:29:46 -07:00
Jeff Walden
084fe7af9e Bug 858381 - Implement non-writable array lengths, and add a boatload of tests. r=jorendorff and r=bhackett for the major parts of this, r=jandem for the methodjit changes, r=jimb on a debugger test change, r=nmatsakis for the parallel test. (More details available in the bug, where individual components of the fix were separately reviewed.)
More random details:
Various JIT components required updating for this.  In the case of some
methodjit bits, this meant simply disabling those optimizations.  This
patch also, passing, improves the Array.prototype.push method's
fast-path to work for any number of provided arguments, not just one.
The patch also fixes a few pre-existing bugs in how array length setting
works and includes the appropriate tests.  (If anyone notices, it's
because they were a test in a test suite.)  I also added a ParallelArray
test that verifies that arrays with non-writable length function
correctly in parallel code.  We bail before getting there now, because
Object.defineProperty isn't parallel-friendly, but if it ever becomes
so, hopefully the test will start failing.  Hello, is this thing on?
2013-03-19 17:12:06 -07:00
Xin Zhang
2fa2b688ad Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
Sean Stangl
dc8230838c Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Jeff Walden
f79e34d84f Bug 858677 - Make the internal deletion operations not take a strictness argument and a Value*, but rather take a JSBool* -- and let callers handle the property-couldn't-be-deleted (but no error occurred) case. r=jorendorff 2013-04-05 21:19:10 -07:00
Phil Ringnalda
23acd61026 Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00