v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
eh-frame-ppc.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
7
8namespace v8 {
9namespace internal {
10
12// all PPC are 4 bytes instruction
13const int EhFrameConstants::kDataAlignmentFactor = -8; // 64-bit always -8
14
17}
18
22}
23
24// static
25int EhFrameWriter::RegisterToDwarfCode(Register name) {
26 switch (name.code()) {
27 case kRegCode_fp:
28 return kFpDwarfCode;
29 case kRegCode_sp:
30 return kSpDwarfCode;
31 case kRegCode_r0:
32 return kR0DwarfCode;
33 default:
35 }
36}
37
38#ifdef ENABLE_DISASSEMBLER
39
40// static
41const char* EhFrameDisassembler::DwarfRegisterCodeToString(int code) {
42 switch (code) {
43 case kFpDwarfCode:
44 return "fp";
45 case kSpDwarfCode:
46 return "sp";
47 default:
49 }
50}
51
52#endif
53
54} // namespace internal
55} // 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