| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_TRAP_HANDLER_H_ | 5 #ifndef V8_TRAP_HANDLER_H_ |
| 6 #define V8_TRAP_HANDLER_H_ | 6 #define V8_TRAP_HANDLER_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace trap_handler { | 10 namespace trap_handler { |
| 11 | 11 |
| 12 struct ProtectedInstructionData { | 12 struct ProtectedInstructionData { |
| 13 // The offset of this instruction from the start of its code object. | 13 // The offset of this instruction from the start of its code object. |
| 14 int32_t instr_offset; | 14 intptr_t instr_offset; |
| 15 | 15 |
| 16 // The offset of the landing pad from the start of its code object. | 16 // The offset of the landing pad from the start of its code object. |
| 17 // | 17 // |
| 18 // TODO(eholk): Using a single landing pad and store parameters here. | 18 // TODO(eholk): Using a single landing pad and store parameters here. |
| 19 int32_t landing_offset; | 19 intptr_t landing_offset; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // namespace trap_handler | 22 } // namespace trap_handler |
| 23 } // namespace internal | 23 } // namespace internal |
| 24 } // namespace v8 | 24 } // namespace v8 |
| 25 | 25 |
| 26 #endif // V8_TRAP_HANDLER_H_ | 26 #endif // V8_TRAP_HANDLER_H_ |
| OLD | NEW |