Changeset 285173 in webkit
- Timestamp:
- Nov 2, 2021, 12:26:52 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
llint/LowLevelInterpreter32_64.asm (modified) (5 diffs)
-
llint/LowLevelInterpreter64.asm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r285167 r285173 1 2021-11-02 Ross Kirsling <ross.kirsling@sony.com> 2 3 [JSC][LLInt] Reverse unintended effects of r285152 4 https://bugs.webkit.org/show_bug.cgi?id=232633 5 6 Reviewed by Saam Barati. 7 8 The previous patch was not intended to change the generated assembly whatsoever, 9 but it turns out that 3-argument syntax produces, e.g. `vsub` instead of `sub` on x86. 10 11 As such, this patch does away with the 3-arg cases and merely clarifies names as `rhs, lhs` across the board. 12 13 (Also: Fix a line from the previous patch where a macro was not referring to a passed label properly.) 14 15 * llint/LowLevelInterpreter32_64.asm: 16 * llint/LowLevelInterpreter64.asm: 17 1 18 2021-11-02 Saam Barati <sbarati@apple.com> 2 19 -
trunk/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
r285152 r285173 1136 1136 get(m_dst, t1) 1137 1137 fii2d t0, t2, ft0 1138 doubleOperation(ft0, ft1 , ft0)1138 doubleOperation(ft0, ft1) 1139 1139 stored ft0, [cfr, t1, 8] 1140 1140 dispatch() … … 1147 1147 ci2ds t0, ft0 1148 1148 fii2d t1, t3, ft1 1149 doubleOperation(ft0, ft1 , ft0)1149 doubleOperation(ft0, ft1) 1150 1150 stored ft0, [cfr, t2, 8] 1151 1151 dispatch() … … 1169 1169 binaryOp(add, OpAdd, 1170 1170 macro (lhs, rhs, slow) baddio rhs, lhs, slow end, 1171 macro (l eft, right, result) addd left, right, resultend)1171 macro (lhs, rhs) addd rhs, lhs end) 1172 1172 1173 1173 … … 1184 1184 storei scratch, PayloadOffset[cfr, index, 8] 1185 1185 end, 1186 macro (l eft, right, result) muld left, right, resultend)1186 macro (lhs, rhs) muld rhs, lhs end) 1187 1187 1188 1188 1189 1189 binaryOp(sub, OpSub, 1190 1190 macro (lhs, rhs, slow) bsubio rhs, lhs, slow end, 1191 macro (l eft, right, result) subd left, right, resultend)1191 macro (lhs, rhs) subd rhs, lhs end) 1192 1192 1193 1193 … … 1205 1205 .done: 1206 1206 end, 1207 macro (l eft, right, result) divd left, right, resultend)1207 macro (lhs, rhs) divd rhs, lhs end) 1208 1208 1209 1209 -
trunk/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
r285152 r285173 1200 1200 addq numberTag, t0 1201 1201 fq2d t0, ft0 1202 doubleOperation(ft0, ft1 , ft0)1202 doubleOperation(ft0, ft1) 1203 1203 fd2q ft0, t0 1204 1204 subq numberTag, t0 … … 1214 1214 addq numberTag, t1 1215 1215 fq2d t1, ft1 1216 doubleOperation(ft0, ft1 , ft0)1216 doubleOperation(ft0, ft1) 1217 1217 fd2q ft0, t0 1218 1218 subq numberTag, t0 … … 1232 1232 btiz rhs, slow 1233 1233 bineq rhs, -1, .notNeg2TwoThe31DivByNeg1 1234 bieq lhs, -2147483648, .slow1234 bieq lhs, -2147483648, slow 1235 1235 .notNeg2TwoThe31DivByNeg1: 1236 1236 btinz lhs, .intOK … … 1245 1245 storeq t0, [cfr, index, 8] 1246 1246 end, 1247 macro (l eft, right, result) divd left, right, resultend)1247 macro (lhs, rhs) divd rhs, lhs end) 1248 1248 else 1249 1249 slowPathOp(div) … … 1263 1263 storeq t3, [cfr, index, 8] 1264 1264 end, 1265 macro (l eft, right, result) muld left, right, resultend)1265 macro (lhs, rhs) muld rhs, lhs end) 1266 1266 1267 1267 … … 1278 1278 binaryOp(add, OpAdd, 1279 1279 macro (lhs, rhs, slow) baddio rhs, lhs, slow end, 1280 macro (l eft, right, result) addd left, right, resultend)1280 macro (lhs, rhs) addd rhs, lhs end) 1281 1281 1282 1282 1283 1283 binaryOp(sub, OpSub, 1284 1284 macro (lhs, rhs, slow) bsubio rhs, lhs, slow end, 1285 macro (l eft, right, result) subd left, right, resultend)1285 macro (lhs, rhs) subd rhs, lhs end) 1286 1286 1287 1287
Note:
See TracChangeset
for help on using the changeset viewer.