mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
88b4a94c25
commit
ebcd331fd8
2 changed files with 36 additions and 31 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue