Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a9455c39fdec0a5acea59e30b04f7d840bba16d8..f72023c0e20839ec03241a20b8bec5b88f430be2 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -5085,6 +5085,10 @@ class Code: public HeapObject { |
// [source_position_table]: ByteArray for the source positions table. |
DECL_ACCESSORS(source_position_table, ByteArray) |
+ // [trap_handler_index]: An index into the trap handler's master list of code |
+ // objects. |
+ DECL_ACCESSORS(trap_handler_index, Smi) |
+ |
// [raw_type_feedback_info]: This field stores various things, depending on |
// the kind of the code object. |
// FUNCTION => type feedback information. |
@@ -5474,7 +5478,8 @@ class Code: public HeapObject { |
static const int kConstantPoolOffset = kPrologueOffset + kIntSize; |
static const int kBuiltinIndexOffset = |
kConstantPoolOffset + kConstantPoolSize; |
- static const int kHeaderPaddingStart = kBuiltinIndexOffset + kIntSize; |
+ static const int kTrapHandlerIndex = kBuiltinIndexOffset + kIntSize; |
+ static const int kHeaderPaddingStart = kTrapHandlerIndex + kPointerSize; |
enum TrapFields { kTrapCodeOffset, kTrapLandingOffset, kTrapDataSize }; |