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

Unified Diff: runtime/vm/assembler_arm.h

Issue 848703002: Improve constant pool implementation in the assembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: updated test status file Created 5 years, 11 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_arm.h
===================================================================
--- runtime/vm/assembler_arm.h (revision 42801)
+++ runtime/vm/assembler_arm.h (working copy)
@@ -13,6 +13,7 @@
#include "platform/utils.h"
#include "vm/constants_arm.h"
#include "vm/cpu.h"
+#include "vm/hash_map.h"
#include "vm/object.h"
#include "vm/simulator.h"
@@ -938,6 +939,10 @@
private:
AssemblerBuffer buffer_; // Contains position independent code.
GrowableObjectArray& object_pool_; // Objects and patchable jump targets.
+
+ // Hashmap for fast lookup in object pool.
+ DirectChainedHashMap<ObjIndexPair> object_pool_index_table_;
+
int32_t prologue_offset_;
bool use_far_branches_;

Powered by Google App Engine
This is Rietveld 408576698