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 <chunyang.dai@intel.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24070 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f1e82cc1
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment