v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
eh-frame-arm.cc
Go to the documentation of this file.
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
6
7namespace v8 {
8namespace internal {
9
10static const int kR0DwarfCode = 0;
11static const int kFpDwarfCode = 11;
12static const int kSpDwarfCode = 13;
13static const int kLrDwarfCode = 14;
14
17
21
26
27// static
29 switch (name.code()) {
30 case kRegCode_fp:
31 return kFpDwarfCode;
32 case kRegCode_sp:
33 return kSpDwarfCode;
34 case kRegCode_lr:
35 return kLrDwarfCode;
36 case kRegCode_r0:
37 return kR0DwarfCode;
38 default:
40 }
41}
42
43#ifdef ENABLE_DISASSEMBLER
44
45// static
46const char* EhFrameDisassembler::DwarfRegisterCodeToString(int code) {
47 switch (code) {
48 case kFpDwarfCode:
49 return "fp";
50 case kSpDwarfCode:
51 return "sp";
52 case kLrDwarfCode:
53 return "lr";
54 default:
56 }
57}
58
59#endif
60
61} // namespace internal
62} // namespace v8
static const int kDataAlignmentFactor
Definition eh-frame.h:63
static const int kCodeAlignmentFactor
Definition eh-frame.h:62
void SetBaseAddressRegisterAndOffset(Register base_register, int base_offset)
Definition eh-frame.cc:293
static int RegisterToDwarfCode(Register name)
void RecordRegisterNotModified(Register name)
Definition eh-frame.cc:323
void WriteULeb128(uint32_t value)
Definition eh-frame.cc:382
static const int kR0DwarfCode
static const int kFpDwarfCode
static const int kLrDwarfCode
static const int kSpDwarfCode