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

Unified Diff: runtime/vm/assembler_arm.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
« no previous file with comments | « no previous file | runtime/vm/assembler_arm_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.h
===================================================================
--- runtime/vm/assembler_arm.h (revision 31003)
+++ runtime/vm/assembler_arm.h (working copy)
@@ -323,6 +323,11 @@
return FLAG_use_far_branches || use_far_branches_;
}
+ void set_use_far_branches(bool b) {
srdjan 2013/12/10 18:02:25 Add comment: to be used by tests only. It is quit
+ ASSERT(buffer_.Size() == 0);
+ use_far_branches_ = b;
+ }
+
void FinalizeInstructions(const MemoryRegion& region) {
buffer_.FinalizeInstructions(region);
}
@@ -750,7 +755,7 @@
GrowableObjectArray& object_pool_; // Objects and patchable jump targets.
int32_t prologue_offset_;
- const bool use_far_branches_;
+ bool use_far_branches_;
int32_t AddObject(const Object& obj);
int32_t AddExternalLabel(const ExternalLabel* label);
« no previous file with comments | « no previous file | runtime/vm/assembler_arm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698