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_TRAP_HANDLER_H_ 6 #define V8_TRAP_HANDLER_H_ 7 8 namespace v8 { 9 namespace internal { 10 namespace trap_handler { 11 12 struct ProtectedInstructionData { 13 // The offset of this instruction from the start of its code object. 14 intptr_t instr_offset; 15 16 // The offset of the landing pad from the start of its code object. 17 // 18 // TODO(eholk): Using a single landing pad and store parameters here. 19 intptr_t landing_offset; 20 }; 21 22 } // namespace trap_handler 23 } // namespace internal 24 } // namespace v8 25 26 #endif // V8_TRAP_HANDLER_H_ 27