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

Unified Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10536145: Fuse comparisons that are used by branches together. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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_compiler_x64.h
diff --git a/runtime/vm/flow_graph_compiler_x64.h b/runtime/vm/flow_graph_compiler_x64.h
index 1977ec07336d726a54bbda46da231062217e55e0..a4902e50244312f826236b0b468464fef0cf76b0 100644
--- a/runtime/vm/flow_graph_compiler_x64.h
+++ b/runtime/vm/flow_graph_compiler_x64.h
@@ -167,6 +167,9 @@ class FlowGraphCompiler : public ValueObject {
void FinalizeVarDescriptors(const Code& code);
void FinalizeComments(const Code& code);
+ const Bool& true_value() const { return true_value_; }
+ const Bool& false_value() const { return false_value_; }
+
static const int kLocalsOffsetFromFP = (-1 * kWordSize);
private:
@@ -266,6 +269,9 @@ class FlowGraphCompiler : public ValueObject {
GrowableArray<DeoptimizationStub*> deopt_stubs_;
const bool is_optimizing_;
+ const Bool& true_value_;
+ const Bool& false_value_;
+
DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
};

Powered by Google App Engine
This is Rietveld 408576698