mirror of https://github.com/gorhill/uBlock.git
Partially revert 4169340
This commit is contained in:
parent
5f2ee6caf8
commit
02cba63331
|
@ -582,7 +582,7 @@ class BidiTrieContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
toSelfie() {
|
toSelfie() {
|
||||||
const buf32 = this.buf32.slice(0, this.buf32[CHAR1_SLOT] + 3 >>> 2);
|
const buf32 = this.buf32.subarray(0, this.buf32[CHAR1_SLOT] + 3 >>> 2);
|
||||||
return { buf32, checksum: i32Checksum(buf32) };
|
return { buf32, checksum: i32Checksum(buf32) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -452,7 +452,7 @@ class HNTrieContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
toSelfie() {
|
toSelfie() {
|
||||||
const buf32 = this.buf32.slice(0, this.buf32[CHAR1_SLOT] + 3 >>> 2);
|
const buf32 = this.buf32.subarray(0, this.buf32[CHAR1_SLOT] + 3 >>> 2);
|
||||||
return { buf32, checksum: i32Checksum(buf32) };
|
return { buf32, checksum: i32Checksum(buf32) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -495,7 +495,7 @@ const filterDataReset = ( ) => {
|
||||||
filterDataWritePtr = 2;
|
filterDataWritePtr = 2;
|
||||||
};
|
};
|
||||||
const filterDataToSelfie = ( ) =>
|
const filterDataToSelfie = ( ) =>
|
||||||
filterData.slice(0, filterDataWritePtr);
|
filterData.subarray(0, filterDataWritePtr);
|
||||||
|
|
||||||
const filterDataFromSelfie = selfie => {
|
const filterDataFromSelfie = selfie => {
|
||||||
if ( selfie instanceof Int32Array === false ) { return false; }
|
if ( selfie instanceof Int32Array === false ) { return false; }
|
||||||
|
@ -3193,7 +3193,7 @@ const urlTokenizer = new (class {
|
||||||
}
|
}
|
||||||
|
|
||||||
toSelfie() {
|
toSelfie() {
|
||||||
return this.knownTokens.slice();
|
return this.knownTokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
fromSelfie(selfie) {
|
fromSelfie(selfie) {
|
||||||
|
@ -4779,7 +4779,7 @@ StaticNetFilteringEngine.prototype.toSelfie = function() {
|
||||||
processedFilterCount: this.processedFilterCount,
|
processedFilterCount: this.processedFilterCount,
|
||||||
acceptedCount: this.acceptedCount,
|
acceptedCount: this.acceptedCount,
|
||||||
discardedCount: this.discardedCount,
|
discardedCount: this.discardedCount,
|
||||||
bitsToBucket: new Map(this.bitsToBucket),
|
bitsToBucket: this.bitsToBucket,
|
||||||
urlTokenizer: urlTokenizer.toSelfie(),
|
urlTokenizer: urlTokenizer.toSelfie(),
|
||||||
destHNTrieContainer: destHNTrieContainer.toSelfie(),
|
destHNTrieContainer: destHNTrieContainer.toSelfie(),
|
||||||
origHNTrieContainer: origHNTrieContainer.toSelfie(),
|
origHNTrieContainer: origHNTrieContainer.toSelfie(),
|
||||||
|
|
Loading…
Reference in New Issue