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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 5909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5920 | 5920 |
5921 // Returns the size of the code instructions. | 5921 // Returns the size of the code instructions. |
5922 inline int instruction_size(); | 5922 inline int instruction_size(); |
5923 | 5923 |
5924 // Return the source position table. | 5924 // Return the source position table. |
5925 inline ByteArray* source_position_table(); | 5925 inline ByteArray* source_position_table(); |
5926 | 5926 |
5927 // Set the source position table. | 5927 // Set the source position table. |
5928 inline void set_source_position_table(ByteArray* source_position_table); | 5928 inline void set_source_position_table(ByteArray* source_position_table); |
5929 | 5929 |
5930 // Return the exception handler table. | |
5931 inline int LookupRangeInHandlerTable( | |
5932 int code_offset, int* data, HandlerTable::CatchPrediction* prediction); | |
5933 | |
5934 // Returns the size of instructions and the metadata. | 5930 // Returns the size of instructions and the metadata. |
5935 inline int SizeIncludingMetadata(); | 5931 inline int SizeIncludingMetadata(); |
5936 | 5932 |
5937 // Returns true if pc is inside this object's instructions. | 5933 // Returns true if pc is inside this object's instructions. |
5938 inline bool contains(byte* pc); | 5934 inline bool contains(byte* pc); |
5939 | 5935 |
5940 // Returns the AbstractCode::Kind of the code. | 5936 // Returns the AbstractCode::Kind of the code. |
5941 inline Kind kind(); | 5937 inline Kind kind(); |
5942 | 5938 |
5943 // Calculate the size of the code object to report for log events. This takes | 5939 // Calculate the size of the code object to report for log events. This takes |
(...skipping 5925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11869 } | 11865 } |
11870 return value; | 11866 return value; |
11871 } | 11867 } |
11872 }; | 11868 }; |
11873 | 11869 |
11874 | 11870 |
11875 } // NOLINT, false-positive due to second-order macros. | 11871 } // NOLINT, false-positive due to second-order macros. |
11876 } // NOLINT, false-positive due to second-order macros. | 11872 } // NOLINT, false-positive due to second-order macros. |
11877 | 11873 |
11878 #endif // V8_OBJECTS_H_ | 11874 #endif // V8_OBJECTS_H_ |
OLD | NEW |