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

Unified Diff: runtime/vm/flow_graph.h

Issue 21363003: Enables per-function far-branches for ARM and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
Index: runtime/vm/flow_graph.h
===================================================================
--- runtime/vm/flow_graph.h (revision 25720)
+++ runtime/vm/flow_graph.h (working copy)
@@ -41,7 +41,7 @@
};
-// Class to incapsulate the construction and manipulation of the flow graph.
+// Class to encapsulate the construction and manipulation of the flow graph.
class FlowGraph : public ZoneAllocated {
public:
FlowGraph(const FlowGraphBuilder& builder,
@@ -163,6 +163,11 @@
// after this point.
void disallow_licm() { licm_allowed_ = false; }
+ bool use_far_branches() const { return use_far_branches_; }
+ void set_use_far_branches(bool value) {
+ use_far_branches_ = value;
+ }
+
const ZoneGrowableArray<BlockEntryInstr*>& loop_headers() {
if (loop_headers_ == NULL) {
loop_headers_ = ComputeLoops();
@@ -249,6 +254,8 @@
BlockEffects* block_effects_;
bool licm_allowed_;
+ bool use_far_branches_;
+
ZoneGrowableArray<BlockEntryInstr*>* loop_headers_;
ZoneGrowableArray<BitVector*>* loop_invariant_loads_;
};
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698