PPC: Simplify pending message script handling.
authormichael_dawson <michael_dawson@ca.ibm.com>
Thu, 12 Mar 2015 04:27:11 +0000 (21:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Mar 2015 04:27:18 +0000 (04:27 +0000)
Port f71e26268338d2840133264329bf35a63011bb5a

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}

src/ppc/full-codegen-ppc.cc

index 5c4b18a..5cb833a 100644 (file)
@@ -5337,12 +5337,6 @@ 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);
 }
 
 
@@ -5350,12 +5344,6 @@ 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 =
       ExternalReference::address_of_has_pending_message(isolate());