Index: runtime/vm/assembler_x64.h |
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h |
index 4bf6a573efca76738d757ab6683f71ae155d6910..e47d0cfb0768a3456e54ee4043e4002b032ebfaf 100644 |
--- a/runtime/vm/assembler_x64.h |
+++ b/runtime/vm/assembler_x64.h |
@@ -902,11 +902,12 @@ class Assembler : public ValueObject { |
const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
return buffer_.pointer_offsets(); |
} |
- const GrowableObjectArray& object_pool_data() const { |
- return object_pool_.data(); |
- } |
- ObjectPool& object_pool() { return object_pool_; } |
+ ObjectPoolWrapper& object_pool_wrapper() { return object_pool_wrapper_; } |
+ |
+ RawObjectPool* MakeObjectPool() { |
+ return object_pool_wrapper_.MakeObjectPool(); |
+ } |
void FinalizeInstructions(const MemoryRegion& region) { |
buffer_.FinalizeInstructions(region); |
@@ -1033,8 +1034,7 @@ class Assembler : public ValueObject { |
private: |
AssemblerBuffer buffer_; |
- // Objects and jump targets. |
- ObjectPool object_pool_; |
+ ObjectPoolWrapper object_pool_wrapper_; |
intptr_t prologue_offset_; |