| 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 | |
| 4809 // Returns the number of entries in the table. | 4806 // Returns the number of entries in the table. |
| 4810 inline int NumberOfRangeEntries() const; | 4807 inline int NumberOfRangeEntries() const; |
| 4811 | 4808 |
| 4812 // Returns the required length of the underlying fixed array. | 4809 // Returns the required length of the underlying fixed array. |
| 4813 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } | 4810 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } |
| 4814 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } | 4811 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } |
| 4815 | 4812 |
| 4816 DECLARE_CAST(HandlerTable) | 4813 DECLARE_CAST(HandlerTable) |
| 4817 | 4814 |
| 4818 #ifdef ENABLE_DISASSEMBLER | 4815 #ifdef ENABLE_DISASSEMBLER |
| (...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10808 } | 10805 } |
| 10809 return value; | 10806 return value; |
| 10810 } | 10807 } |
| 10811 }; | 10808 }; |
| 10812 | 10809 |
| 10813 | 10810 |
| 10814 } // NOLINT, false-positive due to second-order macros. | 10811 } // NOLINT, false-positive due to second-order macros. |
| 10815 } // NOLINT, false-positive due to second-order macros. | 10812 } // NOLINT, false-positive due to second-order macros. |
| 10816 | 10813 |
| 10817 #endif // V8_OBJECTS_H_ | 10814 #endif // V8_OBJECTS_H_ |
| OLD | NEW |