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

Unified Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 23480005: Change Bool::Get to return a handle instead of a pointer to a raw object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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_mips.cc
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc
index 1b7347ee1116982ef6318daa2d7580a26f1fada8..b1a4f31d15c4027414ec7b073dc96b9b2a4f7a01 100644
--- a/runtime/vm/flow_graph_compiler_mips.cc
+++ b/runtime/vm/flow_graph_compiler_mips.cc
@@ -622,11 +622,11 @@ void FlowGraphCompiler::GenerateInstanceOf(intptr_t token_pos,
__ b(&done);
}
__ Bind(&is_not_instance);
- __ LoadObject(V0, negate_result ? Bool::True() : Bool::False());
+ __ LoadObject(V0, Bool::Get(negate_result));
__ b(&done);
__ Bind(&is_instance);
- __ LoadObject(V0, negate_result ? Bool::False() : Bool::True());
+ __ LoadObject(V0, Bool::Get(!negate_result));
__ Bind(&done);
// Remove instantiator (A2) and its type arguments (A1).
__ Drop(2);

Powered by Google App Engine
This is Rietveld 408576698