Bug 1800641 - Part 4: Add ScriptLoadRequest::{Get,Set}SRILength. r=nbp
Depends on D197841 Differential Revision: https://phabricator.services.mozilla.com/D197842
This commit is contained in:
@@ -259,6 +259,15 @@ class ScriptLoadRequest
|
||||
bytecode.length() - offset);
|
||||
}
|
||||
|
||||
size_t GetSRILength() const {
|
||||
MOZ_ASSERT(IsBytecode() || IsSource());
|
||||
return mBytecodeOffset;
|
||||
}
|
||||
void SetSRILength(size_t sriLength) {
|
||||
MOZ_ASSERT(IsBytecode() || IsSource());
|
||||
mBytecodeOffset = JS::AlignTranscodingBytecodeOffset(sriLength);
|
||||
}
|
||||
|
||||
mozilla::CORSMode CORSMode() const { return mFetchOptions->mCORSMode; }
|
||||
|
||||
void DropBytecodeCacheReferences();
|
||||
|
||||
Reference in New Issue
Block a user