summaryrefslogtreecommitdiffstats
path: root/js/src/jit
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-13 10:54:46 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-13 10:54:46 +0000
commit7ba3b14487a9116f963a5ff4634196da9a3c37e7 (patch)
tree0ad534cf743ec3e2425ffdfbd1cb3d0f7097155b /js/src/jit
parentef8e0ce6075150ed4501edad1376e4046cd8e3cb (diff)
downloadUXP-7ba3b14487a9116f963a5ff4634196da9a3c37e7.tar
UXP-7ba3b14487a9116f963a5ff4634196da9a3c37e7.tar.gz
UXP-7ba3b14487a9116f963a5ff4634196da9a3c37e7.tar.lz
UXP-7ba3b14487a9116f963a5ff4634196da9a3c37e7.tar.xz
UXP-7ba3b14487a9116f963a5ff4634196da9a3c37e7.zip
Convert CopyBoxedOrUnboxedDenseElements to calls to initDenseElement
Diffstat (limited to 'js/src/jit')
-rw-r--r--js/src/jit/BaselineIC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/jit/BaselineIC.cpp b/js/src/jit/BaselineIC.cpp
index 2b0822655..4a6382955 100644
--- a/js/src/jit/BaselineIC.cpp
+++ b/js/src/jit/BaselineIC.cpp
@@ -5769,7 +5769,9 @@ CopyArray(JSContext* cx, HandleArrayObject arr, MutableHandleValue result)
if (!nobj)
return false;
EnsureArrayGroupAnalyzed(cx, nobj); //XXX
- CopyBoxedOrUnboxedDenseElements(cx, nobj, arr, 0, 0, length);
+ nobj->as<NativeObject>().setDenseInitializedLength(length);
+ const Value* vp = arr->as<NativeObject>().getDenseElements();
+ nobj->as<NativeObject>().initDenseElements(0, vp, length);
result.setObject(*nobj);
return true;