git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix inliner for integer bitwise operators
b2526f5Brandon Hamilton
src/Language/PureScript/CodeGen/JS/Optimizer/Inliner.hs+3−3
@@ -150,9 +150,9 @@ inlineCommonOperators = applyAll $
150 , binary heytingAlgebraBoolean opDisj Or
150 , binary heytingAlgebraBoolean opDisj Or
151 , unary heytingAlgebraBoolean opNot Not
151 , unary heytingAlgebraBoolean opNot Not
152
152
153− , binary' C.dataIntBits (C..|.) BitwiseOr
153+ , binary' C.dataIntBits C.or BitwiseOr
154− , binary' C.dataIntBits (C..&.) BitwiseAnd
154+ , binary' C.dataIntBits C.and BitwiseAnd
155− , binary' C.dataIntBits (C..^.) BitwiseXor
155+ , binary' C.dataIntBits C.xor BitwiseXor
156 , binary' C.dataIntBits C.shl ShiftLeft
156 , binary' C.dataIntBits C.shl ShiftLeft
157 , binary' C.dataIntBits C.shr ShiftRight
157 , binary' C.dataIntBits C.shr ShiftRight
158 , binary' C.dataIntBits C.zshr ZeroFillShiftRight
158 , binary' C.dataIntBits C.zshr ZeroFillShiftRight
src/Language/PureScript/Constants.hs+6−6
@@ -118,14 +118,14 @@ disj = "disj"
118unsafeIndex :: String
118unsafeIndex :: String
119unsafeIndex = "unsafeIndex"
119unsafeIndex = "unsafeIndex"
120
120
121−(.|.) :: String
121+or :: String
122−(.|.) = ".|."
122+or = "or"
123
123
124−(.&.) :: String
124+and :: String
125−(.&.) = ".&."
125+and = "and"
126
126
127−(.^.) :: String
127+xor :: String
128−(.^.) = ".^."
128+xor = "xor"
129
129
130(<<<) :: String
130(<<<) :: String
131(<<<) = "<<<"
131(<<<) = "<<<"