// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_IC_UNARY_OP_ASSEMBLER_H_ #define V8_IC_UNARY_OP_ASSEMBLER_H_ #include "src/codegen/code-stub-assembler.h" namespace v8 { namespace internal { namespace compiler { class CodeAssemblerState; } class UnaryOpAssembler final { public: explicit UnaryOpAssembler(compiler::CodeAssemblerState* state) : state_(state) {} TNode Generate_BitwiseNotWithFeedback( TNode context, TNode value, TNode slot, TNode maybe_feedback_vector); TNode Generate_DecrementWithFeedback( TNode context, TNode value, TNode slot, TNode maybe_feedback_vector); TNode Generate_IncrementWithFeedback( TNode context, TNode value, TNode slot, TNode maybe_feedback_vector); TNode Generate_NegateWithFeedback( TNode context, TNode value, TNode slot, TNode maybe_feedback_vector); private: compiler::CodeAssemblerState* const state_; }; } // namespace internal } // namespace v8 #endif // V8_IC_UNARY_OP_ASSEMBLER_H_