| 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 4746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4757 public: | 4757 public: |
| 4758 // Conservative prediction whether a given handler will locally catch an | 4758 // Conservative prediction whether a given handler will locally catch an |
| 4759 // exception or cause a re-throw to outside the code boundary. Since this is | 4759 // exception or cause a re-throw to outside the code boundary. Since this is |
| 4760 // undecidable it is merely an approximation (e.g. useful for debugger). | 4760 // undecidable it is merely an approximation (e.g. useful for debugger). |
| 4761 enum CatchPrediction { UNCAUGHT, CAUGHT }; | 4761 enum CatchPrediction { UNCAUGHT, CAUGHT }; |
| 4762 | 4762 |
| 4763 // Getters for handler table based on ranges. | 4763 // Getters for handler table based on ranges. |
| 4764 inline int GetRangeStart(int index) const; | 4764 inline int GetRangeStart(int index) const; |
| 4765 inline int GetRangeEnd(int index) const; | 4765 inline int GetRangeEnd(int index) const; |
| 4766 inline int GetRangeHandler(int index) const; | 4766 inline int GetRangeHandler(int index) const; |
| 4767 inline int GetRangeDepth(int index) const; |
| 4767 | 4768 |
| 4768 // Setters for handler table based on ranges. | 4769 // Setters for handler table based on ranges. |
| 4769 inline void SetRangeStart(int index, int value); | 4770 inline void SetRangeStart(int index, int value); |
| 4770 inline void SetRangeEnd(int index, int value); | 4771 inline void SetRangeEnd(int index, int value); |
| 4771 inline void SetRangeHandler(int index, int offset, CatchPrediction pred); | 4772 inline void SetRangeHandler(int index, int offset, CatchPrediction pred); |
| 4772 inline void SetRangeDepth(int index, int value); | 4773 inline void SetRangeDepth(int index, int value); |
| 4773 | 4774 |
| 4774 // Setters for handler table based on return addresses. | 4775 // Setters for handler table based on return addresses. |
| 4775 inline void SetReturnOffset(int index, int value); | 4776 inline void SetReturnOffset(int index, int value); |
| 4776 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); | 4777 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); |
| (...skipping 6028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10805 } | 10806 } |
| 10806 return value; | 10807 return value; |
| 10807 } | 10808 } |
| 10808 }; | 10809 }; |
| 10809 | 10810 |
| 10810 | 10811 |
| 10811 } // NOLINT, false-positive due to second-order macros. | 10812 } // NOLINT, false-positive due to second-order macros. |
| 10812 } // NOLINT, false-positive due to second-order macros. | 10813 } // NOLINT, false-positive due to second-order macros. |
| 10813 | 10814 |
| 10814 #endif // V8_OBJECTS_H_ | 10815 #endif // V8_OBJECTS_H_ |
| OLD | NEW |