diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-10 16:49:47 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-10 16:49:47 +0000 |
commit | e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c (patch) | |
tree | f708c8a5535065b7011319655af8af8bd82b8405 /js/src/jit/VMFunctions.cpp | |
parent | ba9e648ce2705ad1c4679325a9326c47263e2a3e (diff) | |
download | UXP-e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c.tar UXP-e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c.tar.gz UXP-e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c.tar.lz UXP-e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c.tar.xz UXP-e34920575d6dac353cb3d8a5d1b9c11ae05c5a8c.zip |
Inline combined methods for NativeObject and UnboxedArrayObject accesses.
Diffstat (limited to 'js/src/jit/VMFunctions.cpp')
-rw-r--r-- | js/src/jit/VMFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/VMFunctions.cpp b/js/src/jit/VMFunctions.cpp index 0717bb86d..7b1e1cad6 100644 --- a/js/src/jit/VMFunctions.cpp +++ b/js/src/jit/VMFunctions.cpp @@ -339,7 +339,7 @@ ArrayPopDense(JSContext* cx, HandleObject obj, MutableHandleValue rval) bool ArrayPushDense(JSContext* cx, HandleObject obj, HandleValue v, uint32_t* length) { - *length = GetAnyBoxedOrUnboxedArrayLength(obj); + *length = obj->as<ArrayObject>().length(); DenseElementResult result = SetOrExtendBoxedOrUnboxedDenseElements(cx, obj, *length, v.address(), 1, ShouldUpdateTypes::DontUpdate); |