mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973238 Part 8 -- Remove dead code (FillTypedArrayWithValue) r=sfink
This commit is contained in:
parent
1b3ef227e5
commit
0375aa5feb
2
CLOBBER
2
CLOBBER
@ -22,4 +22,4 @@
|
||||
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
|
||||
# don't change CLOBBER for WebIDL changes any more.
|
||||
|
||||
Bug 973238 part 7 needs clobber due to self-hosted code (bug 1019955).
|
||||
Bug 973238 part 8 needs clobber due to self-hosted code (bug 1019955).
|
||||
|
@ -389,26 +389,6 @@ function Reify(sourceDescr,
|
||||
return TypedObjectGet(sourceDescr, sourceTypedObj, sourceOffset);
|
||||
}
|
||||
|
||||
function FillTypedArrayWithValue(destArray, fromValue) {
|
||||
assert(IsObject(handle) && ObjectIsTypedObject(destArray),
|
||||
"FillTypedArrayWithValue: not typed handle");
|
||||
|
||||
var descr = TypedObjectTypeDescr(destArray);
|
||||
var length = DESCR_SIZED_ARRAY_LENGTH(descr);
|
||||
if (length === 0)
|
||||
return;
|
||||
|
||||
// Use convert and copy to to produce the first element:
|
||||
var elemDescr = DESCR_ARRAY_ELEMENT_TYPE(descr);
|
||||
TypedObjectSet(elemDescr, destArray, 0, fromValue);
|
||||
|
||||
// Stamp out the remaining copies:
|
||||
var elemSize = DESCR_SIZE(elemDescr);
|
||||
var totalSize = length * elemSize;
|
||||
for (var offset = elemSize; offset < totalSize; offset += elemSize)
|
||||
Memcpy(destArray, offset, destArray, 0, elemSize);
|
||||
}
|
||||
|
||||
// Warning: user exposed!
|
||||
function TypeDescrEquivalent(otherDescr) {
|
||||
if (!IsObject(this) || !ObjectIsTypeDescr(this))
|
||||
|
@ -69,7 +69,6 @@
|
||||
macro(fieldOffsets, fieldOffsets, "fieldOffsets") \
|
||||
macro(fieldTypes, fieldTypes, "fieldTypes") \
|
||||
macro(fileName, fileName, "fileName") \
|
||||
macro(FillTypedArrayWithValue, FillTypedArrayWithValue, "FillTypedArrayWithValue") \
|
||||
macro(fix, fix, "fix") \
|
||||
macro(float32, float32, "float32") \
|
||||
macro(float32x4, float32x4, "float32x4") \
|
||||
|
Loading…
Reference in New Issue
Block a user