Move a few more members from ExecutionEngine to EngineBase

Change-Id: I5d1e0d2251e04cc871f9c298849aafac17f23fbf
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Lars Knoll 2017-05-12 09:33:25 +02:00
parent 31d6333fa1
commit fa4f49169a
3 changed files with 9 additions and 14 deletions

View File

@ -130,10 +130,8 @@ QQmlEngine *ExecutionEngine::qmlEngine() const
qint32 ExecutionEngine::maxCallDepth = -1;
ExecutionEngine::ExecutionEngine(EvalISelFactory *factory)
: callDepth(0)
, executableAllocator(new QV4::ExecutableAllocator)
: executableAllocator(new QV4::ExecutableAllocator)
, regExpAllocator(new QV4::ExecutableAllocator)
, currentContext(0)
, bumperPointerAllocator(new WTF::BumpPointerAllocator)
, jsStack(new WTF::PageAllocation)
, globalCode(0)

View File

@ -96,21 +96,14 @@ private:
friend struct ExecutionContext;
friend struct Heap::ExecutionContext;
public:
qint32 callDepth;
ExecutableAllocator *executableAllocator;
ExecutableAllocator *regExpAllocator;
QScopedPointer<EvalISelFactory> iselFactory;
ExecutionContext *currentContext;
Value *jsStackLimit;
WTF::BumpPointerAllocator *bumperPointerAllocator; // Used by Yarr Regex engine.
enum { JSStackLimit = 4*1024*1024 };
WTF::PageAllocation *jsStack;
Value *jsStackBase;
void pushForGC(Heap::Base *m) {
*jsStackTop = m;
@ -129,10 +122,6 @@ public:
return ptr;
}
IdentifierTable *identifierTable;
Object *globalObject;
Function *globalCode;
#ifdef V4_BOOTSTRAP

View File

@ -275,6 +275,14 @@ struct EngineBase {
#endif
MemoryManager *memoryManager = 0;
Runtime runtime;
qint32 callDepth = 0;
Value *jsStackLimit = 0;
Value *jsStackBase = 0;
ExecutionContext *currentContext = 0;
IdentifierTable *identifierTable = 0;
Object *globalObject = 0;
};
#if defined(Q_CC_MSVC) || defined(Q_CC_GNU)
#pragma pack(pop)