Chromium Code Reviews| Index: runtime/vm/flow_graph_compiler_x64.cc |
| =================================================================== |
| --- runtime/vm/flow_graph_compiler_x64.cc (revision 5036) |
| +++ runtime/vm/flow_graph_compiler_x64.cc (working copy) |
| @@ -275,6 +275,24 @@ |
| } |
| +void FlowGraphCompiler::VisitBooleanNegate(BooleanNegateComp* comp) { |
| + const Bool& bool_true = Bool::ZoneHandle(Bool::True()); |
| + const Bool& bool_false = Bool::ZoneHandle(Bool::False()); |
| + Label done; |
| + __ popq(RDX); |
|
Kevin Millikin (Google)
2012/03/07 10:22:38
We can't assume comp->value() is on the stack. He
srdjan
2012/03/07 21:00:51
Fixed, added tests, also create BooleanNegateComp
|
| + __ LoadObject(RAX, bool_true); |
| + __ cmpq(RAX, RDX); |
| + __ j(NOT_EQUAL, &done, Assembler::kNearJump); |
| + __ LoadObject(RAX, bool_false); |
| + __ Bind(&done); |
| +} |
| + |
| + |
| +void FlowGraphCompiler::VisitInstanceOf(InstanceOfComp* comp) { |
| + Bailout("InstanceOf"); |
| +} |
| + |
| + |
| void FlowGraphCompiler::VisitJoinEntry(JoinEntryInstr* instr) { |
| Bailout("JoinEntryInstr"); |
| } |