X87: When serializer is enalbed, we disable the X87 stack check to reduce the code...
authorweiliang.lin@intel.com <weiliang.lin@intel.com>
Fri, 19 Sep 2014 09:27:45 +0000 (09:27 +0000)
committerweiliang.lin@intel.com <weiliang.lin@intel.com>
Fri, 19 Sep 2014 09:27:45 +0000 (09:27 +0000)
     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 <chunyang.dai@intel.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24070 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/x87/macro-assembler-x87.cc

index 8c929e4..66f5703 100644 (file)
@@ -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.