| Index: src/ic/s390/handler-compiler-s390.cc
|
| diff --git a/src/ic/s390/handler-compiler-s390.cc b/src/ic/s390/handler-compiler-s390.cc
|
| index 49fa93726e186f31d9d8fed9445bf5cf7ff4780d..9f9b468840b95ba97d8871edcf71f970b6a3f2ca 100644
|
| --- a/src/ic/s390/handler-compiler-s390.cc
|
| +++ b/src/ic/s390/handler-compiler-s390.cc
|
| @@ -28,6 +28,9 @@ void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
|
|
| + // Save context register
|
| + __ push(cp);
|
| +
|
| if (accessor_index >= 0) {
|
| DCHECK(!holder.is(scratch));
|
| DCHECK(!receiver.is(scratch));
|
| @@ -51,7 +54,7 @@ void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
|
| }
|
|
|
| // Restore context register.
|
| - __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| + __ pop(cp);
|
| }
|
| __ Ret();
|
| }
|
| @@ -65,8 +68,9 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter(
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
|
|
| + // Save context register
|
| // Save value register, so we can restore it later.
|
| - __ Push(value());
|
| + __ Push(cp, value());
|
|
|
| if (accessor_index >= 0) {
|
| DCHECK(!holder.is(scratch));
|
| @@ -92,10 +96,8 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter(
|
| }
|
|
|
| // We have to return the passed value, not the return value of the setter.
|
| - __ Pop(r2);
|
| -
|
| // Restore context register.
|
| - __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| + __ Pop(cp, r2);
|
| }
|
| __ Ret();
|
| }
|
|
|