From: weiliang.lin@intel.com Date: Fri, 19 Sep 2014 09:27:45 +0000 (+0000) Subject: X87: When serializer is enalbed, we disable the X87 stack check to reduce the code... X-Git-Tag: upstream/4.7.83~6818 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae6a25ae4d87f294c7c2998c07329c9efca81e00;p=platform%2Fupstream%2Fv8.git X87: When serializer is enalbed, we disable the X87 stack check to reduce the code size. The reason is that the big code size will leads to test-serialize test cases fail when debug mode and snapshot=off. BUG= R=weiliang.lin@intel.com Review URL: https://codereview.chromium.org/582373002 Patch from Chunyang Dai . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24070 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc index 8c929e4..66f5703 100644 --- a/src/x87/macro-assembler-x87.cc +++ b/src/x87/macro-assembler-x87.cc @@ -2471,6 +2471,9 @@ void MacroAssembler::Ret(int bytes_dropped, Register scratch) { void MacroAssembler::VerifyX87StackDepth(uint32_t depth) { + // Turn off the stack depth check when serializer is enabled to reduce the + // code size. + if (serializer_enabled()) return; // Make sure the floating point stack is either empty or has depth items. DCHECK(depth <= 7); // This is very expensive.