Changeset 84399 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h
- Timestamp:
- Apr 20, 2011, 11:44:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h
r82130 r84399 58 58 static const FPRegisterID fpTempRegister = MIPSRegisters::f16; 59 59 60 enum Condition {60 enum RelationalCondition { 61 61 Equal, 62 62 NotEqual, … … 68 68 GreaterThanOrEqual, 69 69 LessThan, 70 LessThanOrEqual, 70 LessThanOrEqual 71 }; 72 73 enum ResultCondition { 71 74 Overflow, 72 75 Signed, … … 901 904 // an optional second operand of a mask under which to perform the test. 902 905 903 Jump branch8( Condition cond, Address left, TrustedImm32 right)906 Jump branch8(RelationalCondition cond, Address left, TrustedImm32 right) 904 907 { 905 908 // Make sure the immediate value is unsigned 8 bits. … … 910 913 } 911 914 912 Jump branch32( Condition cond, RegisterID left, RegisterID right)915 Jump branch32(RelationalCondition cond, RegisterID left, RegisterID right) 913 916 { 914 917 if (cond == Equal || cond == Zero) … … 986 989 } 987 990 988 Jump branch32( Condition cond, RegisterID left, TrustedImm32 right)991 Jump branch32(RelationalCondition cond, RegisterID left, TrustedImm32 right) 989 992 { 990 993 move(right, immTempRegister); … … 992 995 } 993 996 994 Jump branch32( Condition cond, RegisterID left, Address right)997 Jump branch32(RelationalCondition cond, RegisterID left, Address right) 995 998 { 996 999 load32(right, dataTempRegister); … … 998 1001 } 999 1002 1000 Jump branch32( Condition cond, Address left, RegisterID right)1003 Jump branch32(RelationalCondition cond, Address left, RegisterID right) 1001 1004 { 1002 1005 load32(left, dataTempRegister); … … 1004 1007 } 1005 1008 1006 Jump branch32( Condition cond, Address left, TrustedImm32 right)1009 Jump branch32(RelationalCondition cond, Address left, TrustedImm32 right) 1007 1010 { 1008 1011 load32(left, dataTempRegister); … … 1011 1014 } 1012 1015 1013 Jump branch32( Condition cond, BaseIndex left, TrustedImm32 right)1016 Jump branch32(RelationalCondition cond, BaseIndex left, TrustedImm32 right) 1014 1017 { 1015 1018 load32(left, dataTempRegister); … … 1020 1023 } 1021 1024 1022 Jump branch32WithUnalignedHalfWords( Condition cond, BaseIndex left, TrustedImm32 right)1025 Jump branch32WithUnalignedHalfWords(RelationalCondition cond, BaseIndex left, TrustedImm32 right) 1023 1026 { 1024 1027 load32WithUnalignedHalfWords(left, dataTempRegister); … … 1030 1033 } 1031 1034 1032 Jump branch32( Condition cond, AbsoluteAddress left, RegisterID right)1035 Jump branch32(RelationalCondition cond, AbsoluteAddress left, RegisterID right) 1033 1036 { 1034 1037 load32(left.m_ptr, dataTempRegister); … … 1036 1039 } 1037 1040 1038 Jump branch32( Condition cond, AbsoluteAddress left, TrustedImm32 right)1041 Jump branch32(RelationalCondition cond, AbsoluteAddress left, TrustedImm32 right) 1039 1042 { 1040 1043 load32(left.m_ptr, dataTempRegister); … … 1043 1046 } 1044 1047 1045 Jump branch16( Condition cond, BaseIndex left, RegisterID right)1048 Jump branch16(RelationalCondition cond, BaseIndex left, RegisterID right) 1046 1049 { 1047 1050 load16(left, dataTempRegister); … … 1049 1052 } 1050 1053 1051 Jump branch16( Condition cond, BaseIndex left, TrustedImm32 right)1054 Jump branch16(RelationalCondition cond, BaseIndex left, TrustedImm32 right) 1052 1055 { 1053 1056 ASSERT(!(right.m_value & 0xFFFF0000)); … … 1059 1062 } 1060 1063 1061 Jump branchTest32( Condition cond, RegisterID reg, RegisterID mask)1064 Jump branchTest32(ResultCondition cond, RegisterID reg, RegisterID mask) 1062 1065 { 1063 1066 ASSERT((cond == Zero) || (cond == NonZero)); … … 1068 1071 } 1069 1072 1070 Jump branchTest32( Condition cond, RegisterID reg, TrustedImm32 mask = TrustedImm32(-1))1073 Jump branchTest32(ResultCondition cond, RegisterID reg, TrustedImm32 mask = TrustedImm32(-1)) 1071 1074 { 1072 1075 ASSERT((cond == Zero) || (cond == NonZero)); … … 1080 1083 } 1081 1084 1082 Jump branchTest32( Condition cond, Address address, TrustedImm32 mask = TrustedImm32(-1))1085 Jump branchTest32(ResultCondition cond, Address address, TrustedImm32 mask = TrustedImm32(-1)) 1083 1086 { 1084 1087 load32(address, dataTempRegister); … … 1086 1089 } 1087 1090 1088 Jump branchTest32( Condition cond, BaseIndex address, TrustedImm32 mask = TrustedImm32(-1))1091 Jump branchTest32(ResultCondition cond, BaseIndex address, TrustedImm32 mask = TrustedImm32(-1)) 1089 1092 { 1090 1093 load32(address, dataTempRegister); … … 1092 1095 } 1093 1096 1094 Jump branchTest8( Condition cond, Address address, TrustedImm32 mask = TrustedImm32(-1))1097 Jump branchTest8(ResultCondition cond, Address address, TrustedImm32 mask = TrustedImm32(-1)) 1095 1098 { 1096 1099 load8(address, dataTempRegister); … … 1128 1131 // operation caused an overflow to occur. 1129 1132 1130 Jump branchAdd32( Condition cond, RegisterID src, RegisterID dest)1133 Jump branchAdd32(ResultCondition cond, RegisterID src, RegisterID dest) 1131 1134 { 1132 1135 ASSERT((cond == Overflow) || (cond == Signed) || (cond == Zero) || (cond == NonZero)); … … 1175 1178 } 1176 1179 1177 Jump branchAdd32( Condition cond, TrustedImm32 imm, RegisterID dest)1180 Jump branchAdd32(ResultCondition cond, TrustedImm32 imm, RegisterID dest) 1178 1181 { 1179 1182 move(imm, immTempRegister); … … 1181 1184 } 1182 1185 1183 Jump branchMul32( Condition cond, RegisterID src, RegisterID dest)1186 Jump branchMul32(ResultCondition cond, RegisterID src, RegisterID dest) 1184 1187 { 1185 1188 ASSERT((cond == Overflow) || (cond == Signed) || (cond == Zero) || (cond == NonZero)); … … 1226 1229 } 1227 1230 1228 Jump branchMul32( Condition cond, TrustedImm32 imm, RegisterID src, RegisterID dest)1231 Jump branchMul32(ResultCondition cond, TrustedImm32 imm, RegisterID src, RegisterID dest) 1229 1232 { 1230 1233 move(imm, immTempRegister); … … 1233 1236 } 1234 1237 1235 Jump branchSub32( Condition cond, RegisterID src, RegisterID dest)1238 Jump branchSub32(ResultCondition cond, RegisterID src, RegisterID dest) 1236 1239 { 1237 1240 ASSERT((cond == Overflow) || (cond == Signed) || (cond == Zero) || (cond == NonZero)); … … 1280 1283 } 1281 1284 1282 Jump branchSub32( Condition cond, TrustedImm32 imm, RegisterID dest)1285 Jump branchSub32(ResultCondition cond, TrustedImm32 imm, RegisterID dest) 1283 1286 { 1284 1287 move(imm, immTempRegister); … … 1286 1289 } 1287 1290 1288 Jump branchOr32( Condition cond, RegisterID src, RegisterID dest)1291 Jump branchOr32(ResultCondition cond, RegisterID src, RegisterID dest) 1289 1292 { 1290 1293 ASSERT((cond == Signed) || (cond == Zero) || (cond == NonZero)); … … 1356 1359 } 1357 1360 1358 void set8Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest) 1359 { 1360 set32Compare32(cond, left, right, dest); 1361 } 1362 1363 void set8Compare32(Condition cond, RegisterID left, TrustedImm32 right, RegisterID dest) 1364 { 1365 move(right, immTempRegister); 1366 set32Compare32(cond, left, immTempRegister, dest); 1367 } 1368 1369 void set32Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest) 1361 void compare32(RelationalCondition cond, RegisterID left, RegisterID right, RegisterID dest) 1370 1362 { 1371 1363 if (cond == Equal || cond == Zero) { … … 1418 1410 } 1419 1411 1420 void set32Compare32(Condition cond, RegisterID left, TrustedImm32 right, RegisterID dest)1412 void compare32(RelationalCondition cond, RegisterID left, TrustedImm32 right, RegisterID dest) 1421 1413 { 1422 1414 move(right, immTempRegister); 1423 set32Compare32(cond, left, immTempRegister, dest);1424 } 1425 1426 void set32Test8(Condition cond, Address address, TrustedImm32 mask, RegisterID dest)1415 compare32(cond, left, immTempRegister, dest); 1416 } 1417 1418 void test8(ResultCondition cond, Address address, TrustedImm32 mask, RegisterID dest) 1427 1419 { 1428 1420 ASSERT((cond == Zero) || (cond == NonZero)); … … 1444 1436 } 1445 1437 1446 void set32Test32(Condition cond, Address address, TrustedImm32 mask, RegisterID dest)1438 void test32(ResultCondition cond, Address address, TrustedImm32 mask, RegisterID dest) 1447 1439 { 1448 1440 ASSERT((cond == Zero) || (cond == NonZero)); … … 1482 1474 } 1483 1475 1484 Jump branchPtrWithPatch( Condition cond, RegisterID left, DataLabelPtr& dataLabel, TrustedImmPtr initialRightValue = TrustedImmPtr(0))1476 Jump branchPtrWithPatch(RelationalCondition cond, RegisterID left, DataLabelPtr& dataLabel, TrustedImmPtr initialRightValue = TrustedImmPtr(0)) 1485 1477 { 1486 1478 m_fixedWidth = true; … … 1491 1483 } 1492 1484 1493 Jump branchPtrWithPatch( Condition cond, Address left, DataLabelPtr& dataLabel, TrustedImmPtr initialRightValue = TrustedImmPtr(0))1485 Jump branchPtrWithPatch(RelationalCondition cond, Address left, DataLabelPtr& dataLabel, TrustedImmPtr initialRightValue = TrustedImmPtr(0)) 1494 1486 { 1495 1487 m_fixedWidth = true;
Note:
See TracChangeset
for help on using the changeset viewer.