Move m_generatorTarget into ExecutionStateRareData. (#293)

Also do some cleanup in ExecutionState.

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg 2019-07-01 09:42:46 +02:00 committed by Patrick Kim
commit ebcd331fd8
2 changed files with 36 additions and 31 deletions

View file

@ -31,15 +31,6 @@ void ExecutionState::throwException(const Value& e)
context()->throwException(*this, e);
}
ExecutionState* ExecutionState::parent()
{
if (m_parent & 1) {
return (ExecutionState*)(m_parent - 1);
} else {
return rareData()->m_parent;
}
}
ExecutionStateRareData* ExecutionState::ensureRareData()
{
if (m_parent & 1) {