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

Unified Diff: runtime/vm/assembler.h

Issue 12623002: - Allow the use of branch delay slots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « no previous file | runtime/vm/assembler_mips.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 19668)
+++ runtime/vm/assembler.h (working copy)
@@ -80,6 +80,11 @@
cursor_ += sizeof(T);
}
+ template<typename T> void Remit() {
+ ASSERT(Size() >= static_cast<intptr_t>(sizeof(T)));
+ cursor_ -= sizeof(T);
+ }
+
template<typename T> T Load(int position) {
ASSERT(position >= 0 && position <= (Size() - static_cast<int>(sizeof(T))));
return *reinterpret_cast<T*>(contents_ + position);
« no previous file with comments | « no previous file | runtime/vm/assembler_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698