PPC: Simplify pending message script handling.

Port f71e262683

Original commit message:
This removes the separate tracking of the pending message script,
because that script is already stored in the message object and
duplicating it in the ThreadLocalTop makes it more brittle.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/995013005

Cr-Commit-Position: refs/heads/master@{#27127}

R=danno@chromium.org, svenpanne@chromium.org

BUG=

Review URL: https://codereview.chromium.org/999093002

Cr-Commit-Position: refs/heads/master@{#27144}
This commit is contained in:
michael_dawson 2015-03-11 21:27:11 -07:00 committed by Commit bot
parent 9703c057c5
commit c67dab62c7

View File

@ -5337,24 +5337,12 @@ void FullCodeGenerator::EnterFinallyBlock() {
__ lbz(r4, MemOperand(ip));
__ SmiTag(r4);
__ push(r4);
ExternalReference pending_message_script =
ExternalReference::address_of_pending_message_script(isolate());
__ mov(ip, Operand(pending_message_script));
__ LoadP(r4, MemOperand(ip));
__ push(r4);
}
void FullCodeGenerator::ExitFinallyBlock() {
DCHECK(!result_register().is(r4));
// Restore pending message from stack.
__ pop(r4);
ExternalReference pending_message_script =
ExternalReference::address_of_pending_message_script(isolate());
__ mov(ip, Operand(pending_message_script));
__ StoreP(r4, MemOperand(ip));
__ pop(r4);
__ SmiUntag(r4);
ExternalReference has_pending_message =