mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839215 - Make large typedarrays singletons more aggressively; r=bhackett
--HG-- extra : rebase_source : df0ea62ae25f7c106de01e38fb8ac729b0148f63
This commit is contained in:
parent
da3ea8fd94
commit
e49b79325e
2
js/src/jit-test/tests/basic/bug839215.js
Normal file
2
js/src/jit-test/tests/basic/bug839215.js
Normal file
@ -0,0 +1,2 @@
|
||||
var b = new ArrayBuffer(10000000000);
|
||||
var dv = new DataView(b);
|
@ -216,8 +216,8 @@ DataViewNewObjectKind(JSContext *cx, uint32_t byteLength, JSObject *proto)
|
||||
jsbytecode *pc;
|
||||
JSScript *script = cx->stack.currentScript(&pc);
|
||||
if (!proto && byteLength >= TypedArray::SINGLETON_TYPE_BYTE_LENGTH)
|
||||
return types::UseNewTypeForInitializer(cx, script, pc, &DataViewClass);
|
||||
return GenericObject;
|
||||
return SingletonObject;
|
||||
return types::UseNewTypeForInitializer(cx, script, pc, &DataViewClass);
|
||||
}
|
||||
|
||||
inline DataViewObject *
|
||||
|
Loading…
Reference in New Issue
Block a user