Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7dc440862ba102b4bd75282cb3b7bb1bdea5c030..7779f6262e083ebc8abf4fcd42bc44a9b8ced829 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -4755,13 +4755,18 @@ class HandlerTable : public FixedArray { |
| // undecidable it is merely an approximation (e.g. useful for debugger). |
| enum CatchPrediction { UNCAUGHT, CAUGHT }; |
| - // Accessors for handler table based on ranges. |
| + // Getters for handler table based on ranges. |
| + inline int GetRangeStart(int index) const; |
| + inline int GetRangeEnd(int index) const; |
| + inline int GetRangeHandler(int index) const; |
| + |
| + // Setters for handler table based on ranges. |
| inline void SetRangeStart(int index, int value); |
| inline void SetRangeEnd(int index, int value); |
| inline void SetRangeHandler(int index, int offset, CatchPrediction pred); |
| inline void SetRangeDepth(int index, int value); |
| - // Accessors for handler table based on return addresses. |
| + // Setters for handler table based on return addresses. |
| inline void SetReturnOffset(int index, int value); |
| inline void SetReturnHandler(int index, int offset, CatchPrediction pred); |
| @@ -4771,6 +4776,10 @@ class HandlerTable : public FixedArray { |
| // Lookup handler in a table based on return addresses. |
| int LookupReturn(int pc_offset, CatchPrediction* prediction); |
| + // Returns the number of entries in the table. |
| + inline int NumberOfRangeEntries() const; |
| + inline int NumberOfReturnEntries() const; |
|
oth
2016/01/28 09:25:58
This doesn't appear to have a definition/use.
Michael Starzinger
2016/01/28 10:53:56
Done. Removed.
|
| + |
| // Returns the required length of the underlying fixed array. |
| static int LengthForRange(int entries) { return entries * kRangeEntrySize; } |
| static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } |