From b55f835d66a61e5da6fc1895ba5a0482868c9552 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 7 Apr 2014 15:26:35 +0100 Subject: Test control flow instruction with optimizing compiler. Add support for basic instructions to implement these tests. Change-Id: I3870bf9301599043b3511522bb49dc6364c9b4c0 --- compiler/optimizing/nodes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index d1f672f4b0..adea0baa2d 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -227,6 +227,7 @@ class HBasicBlock : public ArenaObject { M(LoadLocal) \ M(Local) \ M(NewInstance) \ + M(Not) \ M(ParameterValue) \ M(PushArgument) \ M(Return) \ @@ -740,6 +741,18 @@ class HParameterValue : public HTemplateInstruction<0> { DISALLOW_COPY_AND_ASSIGN(HParameterValue); }; +class HNot : public HTemplateInstruction<1> { + public: + explicit HNot(HInstruction* input) { + SetRawInputAt(0, input); + } + + DECLARE_INSTRUCTION(Not); + + private: + DISALLOW_COPY_AND_ASSIGN(HNot); +}; + class HGraphVisitor : public ValueObject { public: explicit HGraphVisitor(HGraph* graph) : graph_(graph) { } -- cgit v1.2.3-59-g8ed1b