Phil Ringnalda
c4745d28b1
Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
...
CLOSED TREE
Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff
735dca6f1b
Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
...
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.
There is no change in behavior.
In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.
We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).
Notes:
* InvokeGetterOrSetter had to be split into two functions:
InvokeGetter takes a MutableHandleValue out-param,
InvokeSetter a HandleValue in-param.
* Watchpoints can still tamper with values being assigned. So can
JSSetterOps. I'm pleased we can support this craziness in a way that
doesn't have to spread via the type system to encompass the entire
codebase.
* Change in GlobalObject::setIntrinsicValue is not really a change.
Yes, it asserted before, but an exception thrown during self-hosting
initialization is not going to go unnoticed either.
* Since the receiver argument to js::SetProperty() is at the end now, it
makes sense for it to be optional. Some callers look nicer.
--HG--
extra : rebase_source : 68cd15627a62728061e663706cb1ff8c7bb292a0
2015-03-01 13:16:19 -06:00
Boris Zbarsky
58ae84cfe1
Bug 1143793 part 6. Drop the obj argument of JS::Compile. r=luke
...
This is technically a behavior change for the shell's disfile() function, but
I really doubt anyone is doing disfile.call(someObj).
2015-03-19 10:13:34 -04:00
Boris Zbarsky
fe0f33e72f
Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo
2015-03-14 01:36:16 -04:00
Boris Zbarsky
c2abb86e73
Bug 1142296. Remove the parent argument from NewObjectWithGivenProto. r=waldo
2015-03-14 01:36:16 -04:00
Jason Orendorff
c489654a3e
Bug 1133081, part 1 - Switch from js::PropDesc to JSPropertyDescriptor for all users of js::StandardDefineProperty (mainly Object.defineProperty/Properties and the corresponding Debugger.Object methods). r=efaust.
...
--HG--
extra : rebase_source : ecccd40e8acc63b84510f1613b607508baad9a5f
2015-02-13 14:31:27 -06:00
Benjamin Bouvier
98c2be829a
Bug 1140317: Make sure chars created by DecompileValueGenerator won't ever leak; r=Waldo
...
--HG--
extra : rebase_source : 826d3b85b3b0b094f9d4d570a13915a99e985598
2015-03-10 19:34:00 +01:00
Jason Orendorff
9a17368e8e
Bug 1113369, part 4 - [[Set]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : ee44b9a7c933addd7f26643443900843b984587b
2015-02-03 19:51:40 -06:00
Jason Orendorff
63891dbbf5
Bug 1113369, part 1 - Introduce JS::ObjectOpResult and use it in js::StandardDefineProperty. r=Waldo.
...
In general, jsobj.h will offer, for each standard internal method that returns a boolean value indicating success/failure, signatures with a JS::ObjectOpResult& out-parameter and signatures without it. The ones without will throw a TypeError on failure (that is, the behavior will be "strict").
--HG--
extra : rebase_source : fbf30988ed48412a10168e359848940123035e0f
2015-02-02 17:06:47 -06:00
Jeff Walden
b6c434b930
Bug 1139769 - Add TypedArrayBuffer, TypedArrayByteOffset, and TypedArrayElementShift intrinsics to safely get the relevant information for a typed array. r=till
...
--HG--
extra : rebase_source : 29f7aa4ce10c1f3752db797080eb41e7919f6e92
2015-03-03 11:29:45 -08:00
Jeff Walden
1f072a19fd
Bug 1139759 - Self-host %TypedArray%.prototype.copyWithin. r=till
...
--HG--
extra : rebase_source : da5b73835180f7a5b743cfe26889b23ebd9471d2
2015-03-03 11:29:02 -08:00
Jan de Mooij
db18ff3df9
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Tooru Fujisawa
4aca87dc92
Bug 1120168 - Do not use RegExp literal and do not call RegExp constructor before self-hosting global is initialized in Intl.js. r=till
2015-02-20 21:46:03 +09:00
Till Schneidereit
3a99d04c35
Bug 1121935 - Add intrinsic for retrieving the original constructor for typed array instances. r=Waldo
2015-02-19 15:39:07 +01:00
Terrence Cole
28c16a726b
Bug 1132149 - Handlify the proto arg for NewArray; r=sfink
...
--HG--
extra : rebase_source : debf452d21e075cf2cae296fc1579cd44221fd30
2015-02-11 12:54:32 -08:00
Terrence Cole
f1e34f9c71
Bug 1131877 - Part 2: Handlify the proto arg to NewObject functions; r=sfink
...
--HG--
extra : rebase_source : 3d54591fb71024dde6bd4ae52ac0233efbb5dbf4
2015-02-13 09:36:40 -08:00
Terrence Cole
b07c52de1f
Bug 1131877 - Part 1: Rename TaggedProto taking NewObject methods; r=bhackett
...
--HG--
extra : rebase_source : e8d3201e374edb26eae43d7cdc6acf35d1d3adcf
2015-02-13 09:36:40 -08:00
Luke Wagner
658f7216ec
Bug 1121433 - Remove clone-at-call-site functionality (r=shu,jandem)
2015-02-09 18:16:12 -06:00
Terrence Cole
77089204b6
Bug 1128110 - Share common operators on pointer-like GC classes; r=sfink
2015-02-04 15:27:00 -08:00
Brian Hackett
e194e1462e
Bug 1129226 - Refactor ObjectGroup class and accessors, r=jandem.
2015-02-06 09:13:29 -07:00
Brian Hackett
909e578fea
Bug 1125930 - Rename TypeObject to ObjectGroup, r=jandem.
2015-02-02 11:20:38 -07:00
ProgramFOX
df5586d909
Bug 1031203 - Implemented float64x2. r=bbouvier
2015-01-16 17:17:37 +01:00
Ryan VanderMeulen
c04595cbcf
Backed out changesets 178c7164a3cd and 9a7ee9cb2247 (bug 1031203) for bustage.
...
CLOSED TREE
--HG--
extra : amend_source : 89f9ffb338e7305ae3c3c7f100744570aec95d06
2015-01-15 14:42:54 -05:00
ProgramFOX
ce02406f0a
Bug 1031203 - Implemented float64x2. r=bbouvier
2015-01-14 19:21:22 +01:00
Jason Orendorff
44b02f2962
Bug 1112778, part 7 - Rename JSObject::{get,set}Generic etc. -> js::{Get,Set}Property and add a few comments. r=Waldo.
...
--HG--
extra : rebase_source : 870f07770a9417a5748a3eefeb83125688c505a5
2014-12-18 08:35:42 -06:00
Jason Orendorff
0f13ac1a60
Bug 1112778, part 5 - Rename JSObject::defineGeneric etc. -> js::DefineProperty, js::DefineOwnProperty -> js::StandardDefineProperty (for the moment--the plan is to unite these soon, both the name and the implementation). r=Waldo.
...
--HG--
extra : rebase_source : 5d1b94876f56829698bc53e71301d6ff13b6e757
2014-12-18 06:54:09 -06:00
Lars T Hansen
08d0ec3a2d
Bug 1120207 - Remove ForkJoin and ThreadPool from the sources. r=shu
2015-01-14 09:22:00 +01:00
Shu-yu Guo
b6874eed78
Bug 1118107 - Convert ThreadSafeContext -> ExclusiveContext and remove PJS paths in TypedObject code. (r=lth)
2015-01-09 00:06:03 -08:00
Shu-yu Guo
fac14bea9e
Bug 1118084 - Remove self-hosted and user-exposed PJS methods. (r=lth)
2015-01-09 00:06:03 -08:00
Boris Zbarsky
35c29eb555
Bug 1111164 part 4. Switch to typed reserved slot gets in String.js. r=jorendorff
2015-01-02 17:08:34 -05:00
Boris Zbarsky
046bdb0170
Bug 1111164 part 1. Add infrastructure for doing typed reserved slot gets in self-hosted code and having the resulting unboxing be unconditional in Ion. r=jandem
2015-01-02 17:08:33 -05:00
Tom Schuster
cdd5534098
Bug 1101258 - Inline intrinsics IsTypedArray and TypedArrayLength. r=jandem
2014-12-25 18:31:03 +01:00
Carsten "Tomcat" Book
619828717a
Backed out changeset 232c0f30075c (bug 1031203) for j1 test failures
2014-12-23 11:51:29 +01:00
ProgramFOX
95e9503419
Bug 1031203 - Implemented float64x2. r=bbouvier
2014-12-22 14:26:27 +01:00
Tom Schuster
3a8dcb1bea
Bug 1114584 - Remove HaveSameClass. r=h4writer
2014-12-22 19:27:30 +01:00
Jeff Walden
351ab4aeb7
Bug 1052139 - Refactor global-object creation code to distinguish the unique self-hosting global from all other run-of-the-mill globals. r=till
2014-11-26 16:04:55 -05:00
Boris Zbarsky
943245f996
Bug 1111170. Make ArrayIterator and StringIterator next() methods work even with cross-compartment wrappers for those objects as this values. r=waldo
2014-12-13 01:25:25 -05:00
Boris Zbarsky
ed0bafb429
Bug 924059. Give ArrayIterator and its prototype different JSClasses so we can't confuse them for each other. r=waldo
2014-12-13 22:05:46 -05:00
Boris Zbarsky
3ff9b53921
Bug 1111159. Inline the IsArrayIterator and IsStringIterator intrinsics in Ion code to speed up for-of loops. r=jandem,waldo
2014-12-13 22:05:46 -05:00
Brian Hackett
500b00a58c
Bug 1107145 - Allow typed objects with the same prototype to have different descriptors, r=nmatsakis.
2014-12-12 10:24:41 -07:00
Tom Schuster
99f989c23f
Bug 825199 - Self host __defineGetter__ and friends. r=till
2014-12-11 19:31:11 +01:00
Ryan VanderMeulen
9cc82f3fda
Backed out changeset c2659bf5793d (bug 1107145) for bustage.
...
DONTBUILD CLOSED TREE
2014-12-11 13:00:07 -05:00
Brian Hackett
3fedbd175f
Bug 1107145 - Allow typed objects with the same prototype to have different descriptors, r=nmatsakis.
2014-12-11 10:35:06 -07:00
Jason Orendorff
92f1bf16c5
Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
...
--HG--
extra : rebase_source : a44070dd6155426ef6026c1575116f90b5fdac0c
extra : amend_source : 8d8fcf05dfd5fdf214a39501663347a6d6b56463
2014-11-22 12:23:39 -06:00
Jason Orendorff
37a9b9a235
Bug 1103368, part 3 - Ban stub getter/setter arguments to JSObject::define{Generic,Property,Element} and js::SetPropertyIgnoringNamedGetter. r=bhackett.
...
--HG--
extra : rebase_source : c22527613154df11344f2e66060d7e6dae61b6de
2014-11-22 08:10:20 -06:00
Jason Orendorff
acdfa74202
Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
...
--HG--
extra : rebase_source : a349ef612573aff8f87b995a65df94ae56cab13d
extra : amend_source : bbfe549fe0735d8b33ffff66d7eeddcc2ad042d2
2014-12-02 16:56:35 -06:00
Tom Schuster
d7366c79f1
Bug 1081435 - Implement CallNonGenericMethod for typed array selfhosted methods. r=jandem
2014-12-04 13:22:10 -08:00
ziyunfei
9f432a3c84
Bug 1078975 - Implement %TypedArray%.prototype.{find, findIndex}. r=till,gabor
2014-12-04 13:22:10 -08:00
Jan de Mooij
6be0154c39
Bug 1106997 - Rename JSOP_NAME to JSOP_GETNAME. r=bhackett
2014-12-03 11:54:18 -08:00
Phil Ringnalda
9c46b376e7
Backed out 2 changesets (bug 1052139, bug 1105261) for b2g desktop crashes
...
CLOSED TREE
Backed out changeset 72c672d91f9c (bug 1052139)
Backed out changeset e3ce0e3a147c (bug 1105261)
2014-12-01 18:25:53 -08:00