Bug 973238 Part 8 -- Remove dead code (FillTypedArrayWithValue) r=sfink

This commit is contained in:
Nicholas D. Matsakis 2014-03-26 14:33:55 -04:00
parent 1b3ef227e5
commit 0375aa5feb
3 changed files with 1 additions and 22 deletions

View File

@ -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).

View File

@ -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))

View File

@ -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") \