Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: src/arm64/eh-frame-arm64.cc

Issue 2023503002: Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Improve disassembler, get rid of PatchProcedureBoundariesInEhFrame. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/arm64/eh-frame-arm64.cc
diff --git a/src/arm64/eh-frame-arm64.cc b/src/arm64/eh-frame-arm64.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dc710e03a4efcc3215616c0e122710649d0d3393
--- /dev/null
+++ b/src/arm64/eh-frame-arm64.cc
@@ -0,0 +1,25 @@
+// Copyright 2016 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/arm64/eh-frame-arm64.h"
+
+namespace v8 {
+namespace internal {
+
+const char* GetRegisterName(int register_number) {
+ switch (register_number) {
+ case 29:
+ return "fp";
+ case 30:
+ return "lr";
+ case 31:
+ return "sp"; // Could be zr as well!
+ default:
+ UNIMPLEMENTED();
+ return nullptr;
+ }
+}
+
+} // namespace internal
+} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698