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

Unified Diff: runtime/vm/assembler_mips.h

Issue 107293008: Fixes bug in far branches on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 31003)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -175,6 +175,11 @@
return FLAG_use_far_branches || use_far_branches_;
}
+ void set_use_far_branches(bool b) {
+ ASSERT(buffer_.Size() == 0);
+ use_far_branches_ = b;
+ }
+
void EnterFrame();
void LeaveFrameAndReturn();
@@ -1163,7 +1168,7 @@
GrowableObjectArray& object_pool_; // Objects and patchable jump targets.
intptr_t prologue_offset_;
- const bool use_far_branches_;
+ bool use_far_branches_;
bool delay_slot_available_;
bool in_delay_slot_;

Powered by Google App Engine
This is Rietveld 408576698