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

Unified Diff: src/arm/eh-frame-arm.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/arm/eh-frame-arm.cc
diff --git a/src/arm/eh-frame-arm.cc b/src/arm/eh-frame-arm.cc
new file mode 100644
index 0000000000000000000000000000000000000000..03f87d634d83f4c44da9818d7d598317f3c243a6
--- /dev/null
+++ b/src/arm/eh-frame-arm.cc
@@ -0,0 +1,33 @@
+// 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/arm/eh-frame-arm.h"
+
+namespace v8 {
+namespace internal {
+
+const char* GetRegisterName(int register_number) {
rmcilroy 2016/06/28 10:37:32 Just use Register::from_code(i).ToString() and del
Stefano Sanfilippo 2016/06/29 15:16:20 Register::ToString() appears to show all register
+ switch (register_number) {
+ case 7:
+ return "cp";
+ case 8:
+ return "pp";
+ case 11:
+ return "fp";
+ case 12:
+ return "ip";
+ case 13:
+ return "sp";
+ case 14:
+ return "lr";
+ case 15:
+ return "pc";
+ default:
+ UNIMPLEMENTED();
+ return nullptr;
+ }
+}
+
+} // namespace internal
+} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698