Skip to content

Commit

Permalink
v8, refactor: fix compile error in msvc.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jul 4, 2024
1 parent 6b49216 commit 88dbc18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions v8/src/compiler/turboshaft/operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -1337,13 +1337,13 @@ using WordBinopMask =

namespace Opmask {
using kWord32Sub =
WordBinopMask::For<WordBinopOp::Kind::kSub, WordRepresentation::Word32()>;
using kWord32BitwiseAnd = WordBinopMask::For<WordBinopOp::Kind::kBitwiseAnd,
WordRepresentation::Word32()>;
OpMaskT<WordBinopOp, WordBinopMask::BuildMask(), WordBinopMask::EncodeValue(WordBinopOp::Kind::kSub, WordRepresentation::Word32())>;
using kWord32BitwiseAnd = OpMaskT<WordBinopOp, WordBinopMask::BuildMask(),
WordBinopMask::EncodeValue(WordBinopOp::Kind::kBitwiseAnd, WordRepresentation::Word32())>;
using kWord64Sub =
WordBinopMask::For<WordBinopOp::Kind::kSub, WordRepresentation::Word64()>;
using kWord64BitwiseAnd = WordBinopMask::For<WordBinopOp::Kind::kBitwiseAnd,
WordRepresentation::Word64()>;
OpMaskT<WordBinopOp, WordBinopMask::BuildMask(), WordBinopMask::EncodeValue(WordBinopOp::Kind::kSub, WordRepresentation::Word64())>;
using kWord64BitwiseAnd = OpMaskT<WordBinopOp, WordBinopMask::BuildMask(),
WordBinopMask::EncodeValue(WordBinopOp::Kind::kBitwiseAnd, WordRepresentation::Word64())>;
} // namespace Opmask

struct FloatBinopOp : FixedArityOperationT<2, FloatBinopOp> {
Expand Down Expand Up @@ -1589,8 +1589,8 @@ using FloatUnaryMask = MaskBuilder<FloatUnaryOp, FIELD(FloatUnaryOp, kind),
FIELD(FloatUnaryOp, rep)>;

namespace Opmask {
using kFloat64Abs = FloatUnaryMask::For<FloatUnaryOp::Kind::kAbs,
FloatRepresentation::Float64()>;
using kFloat64Abs = OpMaskT<FloatUnaryOp, FloatUnaryMask::BuildMask(),
FloatUnaryMask::EncodeValue(FloatUnaryOp::Kind::kAbs, FloatRepresentation::Float64())>;
}

struct ShiftOp : FixedArityOperationT<2, ShiftOp> {
Expand Down

0 comments on commit 88dbc18

Please sign in to comment.