Bug 851769 part 3 - Inline GetLengthProperty. r=anba
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 14 Dec 2017 21:39:56 -0600
changeset 396539 6d82e132348fbe33cf3eb7c85c485083c50c6bb9
parent 396538 a1c58d11bcb4858f39129e9ef27ab9c60a2e5c31
child 396540 3e65a15f6d0c0899a4ce78f11a39ddec5ec289df
child 396580 812bd24f9146c33f10dd6ef6bc1a339a1e6101e8
child 396583 4b8c60ce984e2ad0b69ac72fc969f1de32c389df
push id57030
push userebalazs@mozilla.com
push dateFri, 15 Dec 2017 09:53:30 +0000
treeherderautoland@3e65a15f6d0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersanba
bugs851769
milestone59.0a1
first release with
nightly linux32
6d82e132348f / 59.0a1 / 20171215100105 / files
nightly linux64
6d82e132348f / 59.0a1 / 20171215100105 / files
nightly mac
6d82e132348f / 59.0a1 / 20171215100105 / files
nightly win32
6d82e132348f / 59.0a1 / 20171215100105 / files
nightly win64
6d82e132348f / 59.0a1 / 20171215100105 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 851769 part 3 - Inline GetLengthProperty. r=anba
js/src/jsarray.cpp
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -166,17 +166,17 @@ ToLength(JSContext* cx, HandleValue v, u
     d = JS::ToInteger(d);
     if (d <= 0.0)
         *out = 0;
     else
         *out = uint64_t(Min(d, DOUBLE_INTEGRAL_PRECISION_LIMIT - 1));
     return true;
 }
 
-static bool
+static MOZ_ALWAYS_INLINE bool
 GetLengthProperty(JSContext* cx, HandleObject obj, uint64_t* lengthp)
 {
     if (obj->is<ArrayObject>()) {
         *lengthp = obj->as<ArrayObject>().length();
         return true;
     }
 
     if (obj->is<ArgumentsObject>()) {