B3ConstDoubleValue.h [plain text]
#ifndef B3ConstDoubleValue_h
#define B3ConstDoubleValue_h
#if ENABLE(B3_JIT)
#include "B3Value.h"
namespace JSC { namespace B3 {
class JS_EXPORT_PRIVATE ConstDoubleValue : public Value {
public:
static bool accepts(Opcode opcode) { return opcode == ConstDouble; }
~ConstDoubleValue();
double value() const { return m_value; }
Value* negConstant(Procedure&) const override;
Value* addConstant(Procedure&, int32_t other) const override;
Value* addConstant(Procedure&, const Value* other) const override;
Value* subConstant(Procedure&, const Value* other) const override;
Value* divConstant(Procedure&, const Value* other) const override;
Value* modConstant(Procedure&, const Value* other) const override;
Value* mulConstant(Procedure&, const Value* other) const override;
Value* bitAndConstant(Procedure&, const Value* other) const override;
Value* bitwiseCastConstant(Procedure&) const override;
Value* doubleToFloatConstant(Procedure&) const override;
Value* absConstant(Procedure&) const override;
Value* ceilConstant(Procedure&) const override;
Value* floorConstant(Procedure&) const override;
Value* sqrtConstant(Procedure&) const override;
TriState equalConstant(const Value* other) const override;
TriState notEqualConstant(const Value* other) const override;
TriState lessThanConstant(const Value* other) const override;
TriState greaterThanConstant(const Value* other) const override;
TriState lessEqualConstant(const Value* other) const override;
TriState greaterEqualConstant(const Value* other) const override;
TriState equalOrUnorderedConstant(const Value* other) const override;
protected:
void dumpMeta(CommaPrinter&, PrintStream&) const override;
Value* cloneImpl() const override;
private:
friend class Procedure;
ConstDoubleValue(Origin origin, double value)
: Value(CheckedOpcode, ConstDouble, Double, origin)
, m_value(value)
{
}
double m_value;
};
} }
#endif // ENABLE(B3_JIT)
#endif // B3ConstDoubleValue_h