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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "src/arm/eh-frame-arm.h"
6
7 namespace v8 {
8 namespace internal {
9
10 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
11 switch (register_number) {
12 case 7:
13 return "cp";
14 case 8:
15 return "pp";
16 case 11:
17 return "fp";
18 case 12:
19 return "ip";
20 case 13:
21 return "sp";
22 case 14:
23 return "lr";
24 case 15:
25 return "pc";
26 default:
27 UNIMPLEMENTED();
28 return nullptr;
29 }
30 }
31
32 } // namespace internal
33 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698