From 365948ed6ea90418fea4cbbb689449469c80ce15 Mon Sep 17 00:00:00 2001 From: Zhao Jiazhong Date: Wed, 21 Oct 2020 22:22:22 -0400 Subject: [PATCH] [mips][unwinder] Restore callee saved registers after unwinding Port d6c586f756ffe25884d55d4f6f76b0318871662d 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 Commit-Queue: Zhao Jiazhong Cr-Commit-Position: refs/heads/master@{#70699} --- BUILD.gn | 2 ++ src/diagnostics/mips/unwinder-mips.cc | 12 ++++++++++++ src/diagnostics/mips64/unwinder-mips64.cc | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 src/diagnostics/mips/unwinder-mips.cc create mode 100644 src/diagnostics/mips64/unwinder-mips64.cc diff --git a/BUILD.gn b/BUILD.gn index 30ca900352..512d50afa1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -3636,6 +3636,7 @@ v8_source_set("v8_base_without_compiler") { "src/debug/mips/debug-mips.cc", "src/deoptimizer/mips/deoptimizer-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.h", "src/execution/mips/simulator-mips.cc", @@ -3663,6 +3664,7 @@ v8_source_set("v8_base_without_compiler") { "src/debug/mips64/debug-mips64.cc", "src/deoptimizer/mips64/deoptimizer-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.h", "src/execution/mips64/simulator-mips64.cc", diff --git a/src/diagnostics/mips/unwinder-mips.cc b/src/diagnostics/mips/unwinder-mips.cc new file mode 100644 index 0000000000..5a92512a17 --- /dev/null +++ b/src/diagnostics/mips/unwinder-mips.cc @@ -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 diff --git a/src/diagnostics/mips64/unwinder-mips64.cc b/src/diagnostics/mips64/unwinder-mips64.cc new file mode 100644 index 0000000000..5a92512a17 --- /dev/null +++ b/src/diagnostics/mips64/unwinder-mips64.cc @@ -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