Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |