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 5550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5561 | 5561 |
5562 // Returns the address right after the last instruction. | 5562 // Returns the address right after the last instruction. |
5563 inline Address instruction_end(); | 5563 inline Address instruction_end(); |
5564 | 5564 |
5565 // Returns the size of the code instructions. | 5565 // Returns the size of the code instructions. |
5566 inline int instruction_size(); | 5566 inline int instruction_size(); |
5567 | 5567 |
5568 // Return the source position table. | 5568 // Return the source position table. |
5569 inline ByteArray* source_position_table(); | 5569 inline ByteArray* source_position_table(); |
5570 | 5570 |
| 5571 // Set the source position table. |
| 5572 inline void set_source_position_table(ByteArray* source_position_table); |
| 5573 |
5571 // Return the exception handler table. | 5574 // Return the exception handler table. |
5572 inline int LookupRangeInHandlerTable( | 5575 inline int LookupRangeInHandlerTable( |
5573 int code_offset, int* data, HandlerTable::CatchPrediction* prediction); | 5576 int code_offset, int* data, HandlerTable::CatchPrediction* prediction); |
5574 | 5577 |
5575 // Returns the size of instructions and the metadata. | 5578 // Returns the size of instructions and the metadata. |
5576 inline int SizeIncludingMetadata(); | 5579 inline int SizeIncludingMetadata(); |
5577 | 5580 |
5578 // Returns true if pc is inside this object's instructions. | 5581 // Returns true if pc is inside this object's instructions. |
5579 inline bool contains(byte* pc); | 5582 inline bool contains(byte* pc); |
5580 | 5583 |
(...skipping 5500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11081 } | 11084 } |
11082 return value; | 11085 return value; |
11083 } | 11086 } |
11084 }; | 11087 }; |
11085 | 11088 |
11086 | 11089 |
11087 } // NOLINT, false-positive due to second-order macros. | 11090 } // NOLINT, false-positive due to second-order macros. |
11088 } // NOLINT, false-positive due to second-order macros. | 11091 } // NOLINT, false-positive due to second-order macros. |
11089 | 11092 |
11090 #endif // V8_OBJECTS_H_ | 11093 #endif // V8_OBJECTS_H_ |
OLD | NEW |