mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1130811 - Inline PushNodeBinaryChildren into its sole caller. r=shu
--HG-- extra : rebase_source : d7b1960dfdc54fa14bf0b6b356761446e99960ae
This commit is contained in:
parent
0ab16ab5e1
commit
011139e59a
@ -178,17 +178,6 @@ PushUnaryNodeChild(ParseNode *node, NodeStack *stack)
|
||||
return PushResult::Recyclable;
|
||||
}
|
||||
|
||||
static PushResult
|
||||
PushBinaryNodeChildren(ParseNode *node, NodeStack *stack)
|
||||
{
|
||||
MOZ_ASSERT(node->isArity(PN_BINARY));
|
||||
|
||||
stack->push(node->pn_left);
|
||||
stack->push(node->pn_right);
|
||||
|
||||
return PushResult::Recyclable;
|
||||
}
|
||||
|
||||
/*
|
||||
* Push the children of |pn| on |stack|. Return true if |pn| itself could be
|
||||
* safely recycled, or false if it must be cleaned later (pn_used and pn_defn
|
||||
@ -279,8 +268,12 @@ PushNodeChildren(ParseNode *pn, NodeStack *stack)
|
||||
case PNK_WHILE:
|
||||
case PNK_SWITCH:
|
||||
case PNK_LETBLOCK:
|
||||
case PNK_FOR:
|
||||
return PushBinaryNodeChildren(pn, stack);
|
||||
case PNK_FOR: {
|
||||
MOZ_ASSERT(pn->isArity(PN_BINARY));
|
||||
stack->push(pn->pn_left);
|
||||
stack->push(pn->pn_right);
|
||||
return PushResult::Recyclable;
|
||||
}
|
||||
|
||||
// PNK_WITH is PN_BINARY_OBJ -- that is, PN_BINARY with (irrelevant for
|
||||
// this method's purposes) the addition of the StaticWithObject as
|
||||
|
Loading…
Reference in New Issue
Block a user