Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: runtime/vm/assembler_x64.h

Issue 1175523002: Object pool with support for untagged entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index 4bf6a573efca76738d757ab6683f71ae155d6910..5cdb0cf74d049d9d4a8d3cb3e167397e1229f809 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -902,11 +902,10 @@ 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_; }
+ ObjectPoolHelper& object_pool() { return object_pool_; }
+
+ RawObjectPool* MakeObjectPool() { return object_pool_.MakeObjectPool(); }
void FinalizeInstructions(const MemoryRegion& region) {
buffer_.FinalizeInstructions(region);
@@ -1033,8 +1032,7 @@ class Assembler : public ValueObject {
private:
AssemblerBuffer buffer_;
- // Objects and jump targets.
- ObjectPool object_pool_;
+ ObjectPoolHelper object_pool_;
intptr_t prologue_offset_;

Powered by Google App Engine
This is Rietveld 408576698