OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 4785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4796 // Setters for handler table based on return addresses. | 4796 // Setters for handler table based on return addresses. |
4797 inline void SetReturnOffset(int index, int value); | 4797 inline void SetReturnOffset(int index, int value); |
4798 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); | 4798 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); |
4799 | 4799 |
4800 // Lookup handler in a table based on ranges. | 4800 // Lookup handler in a table based on ranges. |
4801 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction); | 4801 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction); |
4802 | 4802 |
4803 // Lookup handler in a table based on return addresses. | 4803 // Lookup handler in a table based on return addresses. |
4804 int LookupReturn(int pc_offset, CatchPrediction* prediction); | 4804 int LookupReturn(int pc_offset, CatchPrediction* prediction); |
4805 | 4805 |
| 4806 // Returns the conservative catch predication. |
| 4807 inline CatchPrediction GetRangePrediction(int index) const; |
| 4808 |
4806 // Returns the number of entries in the table. | 4809 // Returns the number of entries in the table. |
4807 inline int NumberOfRangeEntries() const; | 4810 inline int NumberOfRangeEntries() const; |
4808 | 4811 |
4809 // Returns the required length of the underlying fixed array. | 4812 // Returns the required length of the underlying fixed array. |
4810 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } | 4813 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } |
4811 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } | 4814 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } |
4812 | 4815 |
4813 DECLARE_CAST(HandlerTable) | 4816 DECLARE_CAST(HandlerTable) |
4814 | 4817 |
4815 #ifdef ENABLE_DISASSEMBLER | 4818 #ifdef ENABLE_DISASSEMBLER |
(...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10805 } | 10808 } |
10806 return value; | 10809 return value; |
10807 } | 10810 } |
10808 }; | 10811 }; |
10809 | 10812 |
10810 | 10813 |
10811 } // NOLINT, false-positive due to second-order macros. | 10814 } // NOLINT, false-positive due to second-order macros. |
10812 } // NOLINT, false-positive due to second-order macros. | 10815 } // NOLINT, false-positive due to second-order macros. |
10813 | 10816 |
10814 #endif // V8_OBJECTS_H_ | 10817 #endif // V8_OBJECTS_H_ |
OLD | NEW |