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

Unified Diff: runtime/vm/assembler.h

Issue 12340050: Add DISALLOW_COPY_AND_ASSIGN to subclasses of ValueObject and make ValueObject copyable. 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/allocation.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler.h
===================================================================
--- runtime/vm/assembler.h (revision 18957)
+++ runtime/vm/assembler.h (working copy)
@@ -39,6 +39,8 @@
private:
const char* name_;
const uword address_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExternalLabel);
};
@@ -134,6 +136,7 @@
intptr_t gap_;
intptr_t ComputeGap() { return buffer_->Capacity() - buffer_->Size(); }
+ DISALLOW_COPY_AND_ASSIGN(EnsureCapacity);
};
bool has_ensured_capacity_;
@@ -144,6 +147,8 @@
explicit EnsureCapacity(AssemblerBuffer* buffer) {
if (buffer->cursor() >= buffer->limit()) buffer->ExtendCapacity();
}
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EnsureCapacity);
};
// When building the C++ tests, assertion code is enabled. To allow
@@ -189,6 +194,8 @@
void ExtendCapacity();
friend class AssemblerFixup;
+
+ DISALLOW_COPY_AND_ASSIGN(AssemblerBuffer);
};
} // namespace dart
« no previous file with comments | « runtime/vm/allocation.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698