From f8c4c12728e5f33ed8462b5c90a2d404833cac80 Mon Sep 17 00:00:00 2001 From: "chunyang.dai" Date: Mon, 23 Mar 2015 03:21:04 -0700 Subject: [PATCH] X87: Simplify pending message object handling. port d4696c484142c601cbd691ae80164043785a3af7 (r27150) original commit message: This moves the decision whether to report a message or not to when the pending exception is propagated instead of trying to preserve the decision in a ThreadLocalTop field. BUG= Review URL: https://codereview.chromium.org/1028073002 Cr-Commit-Position: refs/heads/master@{#27360} --- src/x87/full-codegen-x87.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc index 719da9584..8eee52425 100644 --- a/src/x87/full-codegen-x87.cc +++ b/src/x87/full-codegen-x87.cc @@ -5237,24 +5237,12 @@ void FullCodeGenerator::EnterFinallyBlock() { ExternalReference::address_of_pending_message_obj(isolate()); __ mov(edx, Operand::StaticVariable(pending_message_obj)); __ push(edx); - - ExternalReference has_pending_message = - ExternalReference::address_of_has_pending_message(isolate()); - __ mov(edx, Operand::StaticVariable(has_pending_message)); - __ SmiTag(edx); - __ push(edx); } void FullCodeGenerator::ExitFinallyBlock() { DCHECK(!result_register().is(edx)); // Restore pending message from stack. - __ pop(edx); - __ SmiUntag(edx); - ExternalReference has_pending_message = - ExternalReference::address_of_has_pending_message(isolate()); - __ mov(Operand::StaticVariable(has_pending_message), edx); - __ pop(edx); ExternalReference pending_message_obj = ExternalReference::address_of_pending_message_obj(isolate()); -- 2.34.1