зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270965 - Baldr: set min-heap-length (r=bbouvier)
MozReview-Commit-ID: JwIuHQeHUic --HG-- extra : rebase_source : d5acf7be678ec86bedb89ff916274760edce435c
This commit is contained in:
Родитель
b34705d0d2
Коммит
877a914df8
|
@ -824,7 +824,7 @@ DecodeMemorySection(JSContext* cx, Decoder& d, ModuleGenerator& mg, MutableHandl
|
|||
if (!heap)
|
||||
return false;
|
||||
|
||||
mg.initHeapUsage(HeapUsage::Unshared);
|
||||
mg.initHeapUsage(HeapUsage::Unshared, initialSize.value());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -597,10 +597,11 @@ ModuleGenerator::allocateGlobal(ValType type, bool isConst, uint32_t* index)
|
|||
}
|
||||
|
||||
void
|
||||
ModuleGenerator::initHeapUsage(HeapUsage heapUsage)
|
||||
ModuleGenerator::initHeapUsage(HeapUsage heapUsage, uint32_t minHeapLength)
|
||||
{
|
||||
MOZ_ASSERT(module_->heapUsage == HeapUsage::None);
|
||||
module_->heapUsage = heapUsage;
|
||||
shared_->minHeapLength = minHeapLength;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -166,7 +166,7 @@ class MOZ_STACK_CLASS ModuleGenerator
|
|||
jit::MacroAssembler& masm() { return masm_; }
|
||||
|
||||
// Heap usage:
|
||||
void initHeapUsage(HeapUsage heapUsage);
|
||||
void initHeapUsage(HeapUsage heapUsage, uint32_t minHeapLength = 0);
|
||||
bool usesHeap() const;
|
||||
|
||||
// Signatures:
|
||||
|
|
Загрузка…
Ссылка в новой задаче