Saves another 4-8 bytes per object.
Change-Id: Iaeb013abd20733cd7a5d9a5e0d42b92da8153da9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
inline ExecutionContext(ExecutionEngine *engine, ContextType t);
- ContextType type;
- bool strictMode;
-
CallData *callData;
ExecutionEngine *engine;
Lookup *lookups;
CompiledData::CompilationUnit *compilationUnit;
+ ContextType type : 8;
+ bool strictMode : 8;
int lineNumber;
-
};
struct CallContext : ExecutionContext {
inline
Heap::ExecutionContext::ExecutionContext(ExecutionEngine *engine, ContextType t)
- : type(t)
- , strictMode(false)
- , engine(engine)
+ : engine(engine)
, parent(engine->currentContext())
, outer(0)
, lookups(0)
, compilationUnit(0)
+ , type(t)
+ , strictMode(false)
, lineNumber(-1)
{
engine->current = this;