| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index a5a312bd9cb16ba060e756404bbe103ce7de3f7a..2b747c93ed8882ae7618457c681acd50ff7c15e9 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -3125,7 +3125,8 @@ class ConstantPoolArray: public HeapObject {
|
|
|
| enum LayoutSection {
|
| SMALL_SECTION = 0,
|
| - EXTENDED_SECTION
|
| + EXTENDED_SECTION,
|
| + NUMBER_OF_LAYOUT_SECTIONS
|
| };
|
|
|
| class NumberOfEntries BASE_EMBEDDED {
|
| @@ -3204,6 +3205,7 @@ class ConstantPoolArray: public HeapObject {
|
|
|
| // Returns the type of the entry at the given index.
|
| inline Type get_type(int index);
|
| + inline bool offset_is_type(int offset, Type type);
|
|
|
| // Setter and getter for pool elements.
|
| inline Address get_code_ptr_entry(int index);
|
| @@ -3218,6 +3220,13 @@ class ConstantPoolArray: public HeapObject {
|
| inline void set(int index, double value);
|
| inline void set(int index, int32_t value);
|
|
|
| + // Setters which take a raw offset rather than an index (for code generation).
|
| + inline void set_at_offset(int offset, int32_t value);
|
| + inline void set_at_offset(int offset, int64_t value);
|
| + inline void set_at_offset(int offset, double value);
|
| + inline void set_at_offset(int offset, Address value);
|
| + inline void set_at_offset(int offset, Object* value);
|
| +
|
| // Setter and getter for weak objects state
|
| inline void set_weak_object_state(WeakObjectState state);
|
| inline WeakObjectState get_weak_object_state();
|
|
|