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

Unified Diff: runtime/vm/assembler_mips.h

Issue 12260026: Add support for object pool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/vm/assembler_ia32_test.cc ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 18603)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -115,7 +115,11 @@
class Assembler : public ValueObject {
public:
- Assembler() { UNIMPLEMENTED(); }
+ Assembler()
+ : buffer_(),
+ object_pool_(GrowableObjectArray::Handle()),
+ prologue_offset_(-1),
+ comments_() { }
~Assembler() { }
void PopRegister(Register r) {
@@ -139,6 +143,10 @@
UNIMPLEMENTED();
return *pointer_offsets_;
}
+ const GrowableObjectArray& object_pool() const {
+ UNIMPLEMENTED();
+ return object_pool_;
+ }
void FinalizeInstructions(const MemoryRegion& region) {
UNIMPLEMENTED();
}
@@ -169,6 +177,7 @@
private:
AssemblerBuffer buffer_;
+ GrowableObjectArray& object_pool_; // Objects and patchable jump targets.
ZoneGrowableArray<int>* pointer_offsets_;
int prologue_offset_;
« no previous file with comments | « runtime/vm/assembler_ia32_test.cc ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698