Commit Graph

122 Commits

Author SHA1 Message Date
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nick Fitzgerald
e831e7afab Bug 1068988 - Part 1: Add byte size to the allocation log; r=shu 2015-07-09 09:21:16 -07:00
ProgramFOX
de5a025427 Bug 1124291 - SIMD (interpreter): Implemented int8x16 and int16x8 on a CLOSED TREE. r=bbouvier 2015-07-07 15:31:44 +02:00
Carsten "Tomcat" Book
d670d9ab88 Backed out changeset d1b878ce28f4 (bug 1124291) 2015-07-08 15:11:19 +02:00
ProgramFOX
b0fc58f07a Bug 1124291 - SIMD (interpreter): Implemented int8x16 and int16x8 on a CLOSED TREE. r=bbouvier 2015-07-07 15:31:44 +02:00
Brian Hackett
a6cbfd3be7 Bug 1170372 - Use unboxed arrays for Array() and other functions keyed to allocation sites, r=jandem. 2015-06-10 09:42:22 -07:00
Tom Schuster
8b3a3efd8b Bug 1135993 - Remove js::IsInNonStrictPropertySet. r=jorendorff 2015-06-02 23:27:39 +02:00
Tooru Fujisawa
54cc04881a Bug 861219 - Part 0: Make ClassSpec be able to delegate to another ClassSpec. r=bholley 2015-05-14 13:03:14 +09:00
Carsten "Tomcat" Book
59967ca2ab Backed out changeset 3841e37b0e2f (bug 861219) for JS Crashes on a CLOSED TREE 2015-05-12 12:27:52 +02:00
Tooru Fujisawa
259232ac04 Bug 861219 - Part 0: Make ClassSpec be able to delegate to another ClassSpec. r=bholley 2015-05-12 18:05:38 +09:00
Brian Hackett
a7c7f13a97 Bug 1161077 - Allocate unboxed arrays in the nursery, r=terrence. 2015-05-04 16:36:54 -07:00
Jon Coppeard
a87fc242a0 Bug 1159714 - Templatise AutoVectorRooter implementation r=terrence 2015-05-01 16:26:10 +01:00
Tooru Fujisawa
178a2e3c00 Bug 1102219 - Part 0: Combine WARNED_* slots in GlobalObject and turn it into a bitset. r=till 2015-04-30 00:32:00 +09:00
Boris Zbarsky
34d521e285 Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff 2015-04-27 13:38:12 -04:00
Jan de Mooij
103a223716 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Andrea Marchesini
a4369a04c4 Bug 1156632 - Remove unused forward class declarations - patch 7 - JS, r=sfink 2015-04-22 08:29:26 +02:00
Tom Schuster
ac250f9d73 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Jan de Mooij
b8b1677f0f Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 23:22:11 +01:00
Phil Ringnalda
c8a25251c1 Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
CLOSED TREE
2015-03-28 10:39:56 -07:00
Phil Ringnalda
70731646e2 Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster
8a5dbf7c06 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Jan de Mooij
8d6d44ecb8 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 12:08:37 +01:00
Jason Orendorff
1def388b28 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 : e89f916fe267800bc73890e11aceef5c4855b272
2015-03-01 13:16:19 -06:00
Jason Orendorff
fae53e811b Bug 1142784, part 3 - Change js::DefinePropertyOp and a few property-defining functions to use PropertyDescriptor rather than separate (value, attrs, getter, setter) arguments. r=Waldo.
--HG--
extra : rebase_source : 77cca13d3d8e33831cd5cb82129ede3645e58374
2015-02-28 11:23:44 -06:00
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
Jason Orendorff
a5c5338e0f Bug 1142784, part 3 - Change js::DefinePropertyOp and a few property-defining functions to use PropertyDescriptor rather than separate (value, attrs, getter, setter) arguments. r=Waldo.
--HG--
extra : rebase_source : a177bc1d8991f24652b4e629da5eaa52d9d4a59c
2015-02-28 11:23:44 -06:00
Tooru Fujisawa
75d9d40a66 Bug 1079919 - Part 0: Add RegExp ClassSpec. r=bholley 2015-03-18 18:22:05 +09:00
Jason Orendorff
cd9a74e351 Bug 828137, part 1 - Make Object.defineProperty fail on window elements. r=bz.
--HG--
extra : rebase_source : 8bfc7e8ebd9219511a6119bcefd2c784dc9a1682
2015-02-11 11:38:36 -06:00
Jason Orendorff
eedeed1e47 Bug 1141329, prelude - Make ObjectOpResult pointer-sized to fix amazingly bogus code and assertions in IonCaches, introduced by rev 0712a3d4b79c. r=efaust.
--HG--
extra : rebase_source : 1d82219b61105088cf27154c6200e647091a36e0
2015-03-10 12:22:30 -05:00
Carsten "Tomcat" Book
bca0a2c02e Backed out changeset df26246112ad (bug 828137) 2015-03-09 16:49:34 +01:00
Jason Orendorff
659c8de550 Bug 828137, part 1 - Make Object.defineProperty fail on window elements. r=bz.
--HG--
extra : rebase_source : ececca61c52296fb41e26e277a6bfa0d5eca63bb
extra : amend_source : 4229cb2652c2eb5b4347ebe043eccf1c0515e62a
2015-02-11 11:38:36 -06:00
Jason Orendorff
29bfe274bb Bug 1113369, part 6 - [[PreventExtensions]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
--HG--
extra : rebase_source : 08631a46c776f6d9e60794ad61308240dde3d94d
2015-02-04 12:01:01 -06:00
Jason Orendorff
cc85989b86 Bug 1113369, part 5 - [[Delete]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
--HG--
extra : rebase_source : 64b0e44bbb7673d139fab920243566db4844b517
2015-02-04 10:20:04 -06: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
de9e3b99dc Bug 1113369, part 3 - [[DefineOwnProperty]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
Add an ObjectOpResult out-param for DefineProperty functions everywhere. We leave a few js::DefineProperty() convenience functions with no *result out-param. These have strict behavior: that is, they automatically check the result and throw if it is false. In bug 1125624 these strict signatures may end up being called DefinePropertyOrThrow, as that is what the spec calls it.

--HG--
extra : rebase_source : 36439a8fa433c453f63b02c93fceaf0d8b9e9626
2015-01-30 11:37:07 -06:00
Jason Orendorff
ce09b0bfc5 Bug 1113369, part 2 - js::SetArrayLength ObjectOpResult support. r=Waldo.
--HG--
extra : rebase_source : fa947b315a7ede20a16893e3e44dd4118665c777
2015-01-29 23:02:26 -06:00
Jason Orendorff
844535d277 Bug 1113369, part 1½ - Avoid regressing error messages by adding obj to the ObjectOpResult methods that could throw a TypeError. r=Waldo.
--HG--
extra : rebase_source : 5494b04d773badadc2c33fd90ae67cad90aa88d3
2015-02-18 18:49:17 -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
Jason Orendorff
85abad51f2 Bug 1130576 - Rename JSPropertyOp -> JSGetterOp and JSStrictPropertyOp -> JSSetterOp. r=efaust.
--HG--
extra : rebase_source : 44edb174028da6dbd637975e6358112060de535b
extra : amend_source : dd79490550af1370dac037057bdc2c06cb4c71f5
2015-01-30 13:56:15 -06:00
Brian Hackett
d78cece7dd Bug 1121554 - Include receiver argument in setProperty hooks, r=jorendorff. 2015-02-14 08:50:48 -07:00
Tom Schuster
797b78de4b Bug 1124934 - Add a HasProperty ObjectOp. r=jorendorff 2015-02-13 12:20:02 +01:00
Tom Schuster
43324bd36f Bug 1125437 - Get rid of SetPropertyAttributes and use DefineProperty to follow ES6 specification. r=efaust 2015-02-11 23:40:47 +01:00
Jason Orendorff
8f9fef2147 Bug 1127121 - Remove property key type splitting in ObjectOps. r=bhackett.
--HG--
extra : rebase_source : dab65791e3efc9fc625365b6aa5dc26d5cad19fb
2015-01-28 17:12:44 -06:00
Tom Schuster
c70b84f630 Bug 1111243 - Implement ES6 proxy behavior for IsArray. r=efaust 2015-01-25 21:42:10 +01:00
Tom Schuster
7f95393f87 Bug 1122619 - Remove getPropertyAttributes object ops. r=jorendorff 2015-01-24 16:38:08 +01:00
Tom Schuster
269e651092 Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz 2015-01-22 17:17:26 +01: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