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

Side by Side Diff: src/arm/eh-frame-arm.h

Issue 2023503002: Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: if => ifdef 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
« no previous file with comments | « BUILD.gn ('k') | src/arm/eh-frame-arm.cc » ('j') | src/eh-frame.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef V8_ARM_EH_FRAME_ARM_H_
6 #define V8_ARM_EH_FRAME_ARM_H_
7
8 #include "src/macro-assembler.h"
9
10 namespace v8 {
11 namespace internal {
12
13 static const Register& kInitialBaseRegister = fp;
14 static const int kInitialBaseOffset = 0;
15 static const int kDataAlignmentFactor = 4;
16 #ifdef ENABLE_DISASSEMBLER
17 static const int kInitialStateOffsetInCIE = 19;
18 #endif
19
20 // The code and data alignments are a bit unorthodox, but they suit our purpose.
21 static const byte kCIE[] = {
22 0x14, 0x00, 0x00, 0x00, // Size of the CIE excluding this field
23 0x00, 0x00, 0x00, 0x00, // CIE identifier, always 0
24 3, // CIE version 3
25 0x7a, 0x4c, 0x52, 0x00, // Augmentation string zLR
26 1, // Code alignment factor
27 4, // Data alignment factor
28 14, // Return address register: lr (r14)
29 0x02, // Length of augmentation data
30 0xff, // No LSDA
31 0x1b, // FDE pointers encoding: kSData4 | kPcRel
32 // Initial state
33 0x0c, 11, kInitialBaseOffset, // base = fp+0
34 0x08, 14, // lr valid
35 };
36
37 } // namespace internal
38 } // namespace v8
39
40 #endif
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/arm/eh-frame-arm.cc » ('j') | src/eh-frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698