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

Side by Side Diff: src/x64/eh-frame-x64.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
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_X64_UNWINDING_INFO_X64_H_
6 #define V8_X64_UNWINDING_INFO_X64_H_
7
8 #include "src/macro-assembler.h"
9
10 namespace v8 {
11 namespace internal {
12
13 static const Register& kInitialBaseRegister = rsp;
rmcilroy 2016/06/30 15:23:11 Don't use const references. Just use the register
Stefano Sanfilippo 2016/07/04 18:21:15 I did away completely with this bit in the refacto
14 static const int kInitialBaseOffset = 8;
15 static const int kDataAlignmentFactor = -8;
rmcilroy 2016/06/30 15:23:11 Curious, why is this negative, seems pretty strang
Stefano Sanfilippo 2016/07/04 18:21:15 It's negative to reflect the fact that the stack g
16 #ifdef ENABLE_DISASSEMBLER
17 static const int kInitialStateOffsetInCIE = 19;
rmcilroy 2016/06/30 15:23:11 This is always 19 on all platforms (the header is
Stefano Sanfilippo 2016/07/04 18:21:15 This bit became an arch-independent constant now t
18 #endif
19
20 static const byte kCIE[] = {
21 0x18, 0x00, 0x00, 0x00, // Size of the CIE
22 0x00, 0x00, 0x00, 0x00, // CIE identifier, always 0
23 3, // CIE version 3
24 0x7a, 0x4c, 0x52, 0x00, // Augmentation string zLR
25 1, // Code alignment factor
26 0x78, // Data alignment factor (-8 SLEB encoded)
27 16, // Return address register: rip (r16)
28 0x02, // Length of augmentation data
29 0xff, // No LSDA
30 0x1b, // FDE pointers encoding: kSData4 | kPcRel
rmcilroy 2016/06/30 15:23:11 The CIE is almost identical for every platform (th
Stefano Sanfilippo 2016/07/04 18:21:15 Done.
31 // Initial state
32 0x0c, 7, kInitialBaseOffset, // base = rsp+8
33 0x90, 1, // rip saved at (base - 8)
34 };
35
36 } // namespace internal
37 } // namespace v8
38
39 #endif
OLDNEW
« src/eh-frame.cc ('K') | « src/v8.gyp ('k') | src/x64/eh-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698