Index: src/trap-handler/trap-handler.h |
diff --git a/src/trap-handler/trap-handler.h b/src/trap-handler/trap-handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f7b32276b83392d35189eaf75c8c85dcade89895 |
--- /dev/null |
+++ b/src/trap-handler/trap-handler.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_TRAP_HANDLER_H_ |
+#define V8_TRAP_HANDLER_H_ |
+ |
+namespace v8 { |
+namespace internal { |
+namespace trap_handler { |
+ |
+struct ProtectedInstructionData { |
+ /// The offset of this instruction from the start of its code object. |
titzer
2016/11/30 17:31:12
Two slashes?
Eric Holk
2016/11/30 20:16:20
Done.
|
+ int32_t instr_offset; |
+ |
+ /// The offset of the landing pad from the start of its code object. |
+ // |
+ // TODO(eholk): Using a single landing pad and store parameters here. |
+ int32_t landing_offset; |
+}; |
+ |
+typedef std::vector<ProtectedInstructionData> ProtectedInstructionList; |
+ |
+} // namespace trap_handler |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_TRAP_HANDLER_H_ |