本文整理汇总了C++中VM::clearExceptionStack方法的典型用法代码示例。如果您正苦于以下问题:C++ VM::clearExceptionStack方法的具体用法?C++ VM::clearExceptionStack怎么用?C++ VM::clearExceptionStack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VM
的用法示例。
在下文中一共展示了VM::clearExceptionStack方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ENABLE
DynamicGlobalObjectScope::DynamicGlobalObjectScope(VM& vm, JSGlobalObject* dynamicGlobalObject)
: m_dynamicGlobalObjectSlot(vm.dynamicGlobalObject)
, m_savedDynamicGlobalObject(m_dynamicGlobalObjectSlot)
{
if (!m_dynamicGlobalObjectSlot) {
#if ENABLE(ASSEMBLER)
if (ExecutableAllocator::underMemoryPressure())
vm.heap.deleteAllCompiledCode();
#endif
m_dynamicGlobalObjectSlot = dynamicGlobalObject;
// Reset the date cache between JS invocations to force the VM
// to observe time zone changes.
vm.resetDateCache();
}
// Clear the exception stack between entries
vm.clearExceptionStack();
}
示例2: ASSERT
VMEntryScope::VMEntryScope(VM& vm, JSGlobalObject* globalObject)
: m_vm(vm)
, m_globalObject(globalObject)
, m_recompilationNeeded(false)
{
ASSERT(wtfThreadData().stack().isGrowingDownward());
if (!vm.entryScope) {
#if ENABLE(ASSEMBLER)
if (ExecutableAllocator::underMemoryPressure())
vm.heap.deleteAllCompiledCode();
#endif
vm.entryScope = this;
// Reset the date cache between JS invocations to force the VM to
// observe time xone changes.
vm.resetDateCache();
}
// Clear the captured exception stack between entries
vm.clearExceptionStack();
}
示例3: ENABLE
VMEntryScope::VMEntryScope(VM& vm, JSGlobalObject* globalObject)
: m_vm(vm)
, m_stack(wtfThreadData().stack())
, m_globalObject(globalObject)
, m_prev(vm.entryScope)
, m_prevStackLimit(vm.stackLimit())
{
if (!vm.entryScope) {
#if ENABLE(ASSEMBLER)
if (ExecutableAllocator::underMemoryPressure())
vm.heap.deleteAllCompiledCode();
#endif
vm.entryScope = this;
// Reset the date cache between JS invocations to force the VM to
// observe time xone changes.
vm.resetDateCache();
}
// Clear the exception stack between entries
vm.clearExceptionStack();
void* limit = m_stack.recursionLimit(requiredCapacity());
vm.setStackLimit(limit);
}