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 #ifndef V8_X64_UNWINDING_INFO_X64_H |
| 6 #define V8_X64_UNWINDING_INFO_X64_H |
| 7 |
| 8 #include "src/globals.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 |
| 13 static const int kInitialCFARegister = 0x1d; |
| 14 static const int kInitialCFAOffset = 0; |
| 15 static const int kDataAlignmentFactor = 8; |
| 16 static const int kInitialStateOffsetInCIE = 19; |
| 17 |
| 18 // The code and data alignments are a bit unorthodox, but they suit our purpose. |
| 19 static const byte kCIE[] = { |
| 20 0x14, 0x00, 0x00, 0x00, // Size of the CIE excluding this field |
| 21 0x00, 0x00, 0x00, 0x00, // CIE identifier, always 0 |
| 22 0x03, // CIE version 3 |
| 23 0x7a, 0x4c, 0x52, 0x00, // Augmentation string zLR |
| 24 0x01, // Code alignment factor: 1 |
| 25 0x08, // Data alignment factor: 8 |
| 26 0x1e, // Return address register: lr (r30) |
| 27 0x02, // Length of augmentation data |
| 28 0xff, // No LSDA |
| 29 0x1b, // FDE encoding: DW_EH_PE_sdata4 | DW_EH_PE_pcrel |
| 30 // Initial state |
| 31 0x0c, 0x1d, 0x00, // CFA @ fp+0 |
| 32 0x08, 0x1e, // lr is valid |
| 33 }; |
| 34 |
| 35 } // namespace internal |
| 36 } // namespace v8 |
| 37 |
| 38 #endif |
OLD | NEW |