AccessCase::generateImpl() should exclude the result register when restoring register...
[WebKit-https.git] / Source / JavaScriptCore / bytecode / AccessCase.cpp
index ca3ecf2..67f965b 100644 (file)
@@ -1042,7 +1042,9 @@ void AccessCase::generateImpl(AccessGenerationState& state)
                 state.emitExplicitExceptionHandler();
                 
                 noException.link(&jit);
-                state.restoreLiveRegistersFromStackForCall(spillState);
+                RegisterSet resultRegisterToExclude;
+                resultRegisterToExclude.set(scratchGPR);
+                state.restoreLiveRegistersFromStackForCall(spillState, resultRegisterToExclude);
             }
         }