Commit 33783870 authored by jyan's avatar jyan Committed by Commit bot

S390: Fix simulator to include AdjustStackLimitForSimulator on Call

R=joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com, bjaideep@ca.ibm.com
BUG=

Review-Url: https://codereview.chromium.org/2033103002
Cr-Commit-Position: refs/heads/master@{#36685}
parent e7d8279a
......@@ -5656,6 +5656,9 @@ void Simulator::Execute() {
}
void Simulator::CallInternal(byte* entry, int reg_arg_count) {
// Adjust JS-based stack limit to C-based stack limit.
isolate_->stack_guard()->AdjustStackLimitForSimulator();
// Prepare to execute the code at entry
if (ABI_USES_FUNCTION_DESCRIPTORS) {
// entry is the function descriptor
......@@ -5738,6 +5741,9 @@ void Simulator::CallInternal(byte* entry, int reg_arg_count) {
}
intptr_t Simulator::Call(byte* entry, int argument_count, ...) {
// Adjust JS-based stack limit to C-based stack limit.
isolate_->stack_guard()->AdjustStackLimitForSimulator();
// Remember the values of non-volatile registers.
int64_t r6_val = get_register(r6);
int64_t r7_val = get_register(r7);
......
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