[mips][unwinder] Restore callee saved registers after unwinding

Port d6c586f756
https://chromium-review.googlesource.com/c/v8/v8/+/2472000

Change-Id: I1dce1dcdcc80897371c122aa73ef8fc290e923ac
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2491600
Reviewed-by: Santiago Aboy Solanes <solanes@chromium.org>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#70699}
This commit is contained in:
Zhao Jiazhong 2020-10-21 22:22:22 -04:00 committed by Commit Bot
parent 50d474a268
commit 365948ed6e
3 changed files with 26 additions and 0 deletions

View File

@ -3636,6 +3636,7 @@ v8_source_set("v8_base_without_compiler") {
"src/debug/mips/debug-mips.cc", "src/debug/mips/debug-mips.cc",
"src/deoptimizer/mips/deoptimizer-mips.cc", "src/deoptimizer/mips/deoptimizer-mips.cc",
"src/diagnostics/mips/disasm-mips.cc", "src/diagnostics/mips/disasm-mips.cc",
"src/diagnostics/mips/unwinder-mips.cc",
"src/execution/mips/frame-constants-mips.cc", "src/execution/mips/frame-constants-mips.cc",
"src/execution/mips/frame-constants-mips.h", "src/execution/mips/frame-constants-mips.h",
"src/execution/mips/simulator-mips.cc", "src/execution/mips/simulator-mips.cc",
@ -3663,6 +3664,7 @@ v8_source_set("v8_base_without_compiler") {
"src/debug/mips64/debug-mips64.cc", "src/debug/mips64/debug-mips64.cc",
"src/deoptimizer/mips64/deoptimizer-mips64.cc", "src/deoptimizer/mips64/deoptimizer-mips64.cc",
"src/diagnostics/mips64/disasm-mips64.cc", "src/diagnostics/mips64/disasm-mips64.cc",
"src/diagnostics/mips64/unwinder-mips64.cc",
"src/execution/mips64/frame-constants-mips64.cc", "src/execution/mips64/frame-constants-mips64.cc",
"src/execution/mips64/frame-constants-mips64.h", "src/execution/mips64/frame-constants-mips64.h",
"src/execution/mips64/simulator-mips64.cc", "src/execution/mips64/simulator-mips64.cc",

View File

@ -0,0 +1,12 @@
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/diagnostics/unwinder.h"
namespace v8 {
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
} // namespace v8

View File

@ -0,0 +1,12 @@
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/diagnostics/unwinder.h"
namespace v8 {
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
} // namespace v8