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/x64/eh-frame-x64.h" | |
6 | |
7 namespace v8 { | |
8 namespace internal { | |
9 | |
10 const char* GetRegisterName(int register_number) { | |
11 switch (register_number) { | |
12 case 6: | |
13 return "rbp"; | |
14 case 7: | |
15 return "rsp"; | |
16 case 16: | |
17 return "rip"; | |
18 default: | |
19 UNIMPLEMENTED(); | |
20 return nullptr; | |
21 } | |
22 } | |
23 | |
24 } // namespace internal | |
25 } // namespace v8 | |
OLD | NEW |