| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 | 1219 |
| 1220 | 1220 |
| 1221 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) { | 1221 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) { |
| 1222 object()->PrintNameTo(stream); | 1222 object()->PrintNameTo(stream); |
| 1223 stream->Add("["); | 1223 stream->Add("["); |
| 1224 key()->PrintNameTo(stream); | 1224 key()->PrintNameTo(stream); |
| 1225 stream->Add("]"); | 1225 stream->Add("]"); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 | 1228 |
| 1229 void HLoadPixelArrayElement::PrintDataTo(StringStream* stream) { | 1229 void HLoadKeyedSpecializedArrayElement::PrintDataTo( |
| 1230 StringStream* stream) { |
| 1230 external_pointer()->PrintNameTo(stream); | 1231 external_pointer()->PrintNameTo(stream); |
| 1232 stream->Add("."); |
| 1233 switch (array_type()) { |
| 1234 case kExternalByteArray: |
| 1235 stream->Add("byte"); |
| 1236 break; |
| 1237 case kExternalUnsignedByteArray: |
| 1238 stream->Add("u_byte"); |
| 1239 break; |
| 1240 case kExternalShortArray: |
| 1241 stream->Add("short"); |
| 1242 break; |
| 1243 case kExternalUnsignedShortArray: |
| 1244 stream->Add("u_short"); |
| 1245 break; |
| 1246 case kExternalIntArray: |
| 1247 stream->Add("int"); |
| 1248 break; |
| 1249 case kExternalUnsignedIntArray: |
| 1250 stream->Add("u_int"); |
| 1251 break; |
| 1252 case kExternalFloatArray: |
| 1253 stream->Add("float"); |
| 1254 break; |
| 1255 case kExternalPixelArray: |
| 1256 stream->Add("pixel"); |
| 1257 break; |
| 1258 } |
| 1231 stream->Add("["); | 1259 stream->Add("["); |
| 1232 key()->PrintNameTo(stream); | 1260 key()->PrintNameTo(stream); |
| 1233 stream->Add("]"); | 1261 stream->Add("]"); |
| 1234 } | 1262 } |
| 1235 | 1263 |
| 1236 | 1264 |
| 1237 void HStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 1265 void HStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 1238 object()->PrintNameTo(stream); | 1266 object()->PrintNameTo(stream); |
| 1239 stream->Add("."); | 1267 stream->Add("."); |
| 1240 ASSERT(name()->IsString()); | 1268 ASSERT(name()->IsString()); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1268 | 1296 |
| 1269 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 1297 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
| 1270 object()->PrintNameTo(stream); | 1298 object()->PrintNameTo(stream); |
| 1271 stream->Add("["); | 1299 stream->Add("["); |
| 1272 key()->PrintNameTo(stream); | 1300 key()->PrintNameTo(stream); |
| 1273 stream->Add("] = "); | 1301 stream->Add("] = "); |
| 1274 value()->PrintNameTo(stream); | 1302 value()->PrintNameTo(stream); |
| 1275 } | 1303 } |
| 1276 | 1304 |
| 1277 | 1305 |
| 1278 void HStorePixelArrayElement::PrintDataTo(StringStream* stream) { | 1306 void HStoreKeyedSpecializedArrayElement::PrintDataTo( |
| 1307 StringStream* stream) { |
| 1279 external_pointer()->PrintNameTo(stream); | 1308 external_pointer()->PrintNameTo(stream); |
| 1309 stream->Add("."); |
| 1310 switch (array_type()) { |
| 1311 case kExternalByteArray: |
| 1312 stream->Add("byte"); |
| 1313 break; |
| 1314 case kExternalUnsignedByteArray: |
| 1315 stream->Add("u_byte"); |
| 1316 break; |
| 1317 case kExternalShortArray: |
| 1318 stream->Add("short"); |
| 1319 break; |
| 1320 case kExternalUnsignedShortArray: |
| 1321 stream->Add("u_short"); |
| 1322 break; |
| 1323 case kExternalIntArray: |
| 1324 stream->Add("int"); |
| 1325 break; |
| 1326 case kExternalUnsignedIntArray: |
| 1327 stream->Add("u_int"); |
| 1328 break; |
| 1329 case kExternalFloatArray: |
| 1330 stream->Add("float"); |
| 1331 break; |
| 1332 case kExternalPixelArray: |
| 1333 stream->Add("pixel"); |
| 1334 break; |
| 1335 } |
| 1280 stream->Add("["); | 1336 stream->Add("["); |
| 1281 key()->PrintNameTo(stream); | 1337 key()->PrintNameTo(stream); |
| 1282 stream->Add("] = "); | 1338 stream->Add("] = "); |
| 1283 value()->PrintNameTo(stream); | 1339 value()->PrintNameTo(stream); |
| 1284 } | 1340 } |
| 1285 | 1341 |
| 1286 | 1342 |
| 1287 void HLoadGlobal::PrintDataTo(StringStream* stream) { | 1343 void HLoadGlobal::PrintDataTo(StringStream* stream) { |
| 1288 stream->Add("[%p]", *cell()); | 1344 stream->Add("[%p]", *cell()); |
| 1289 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); | 1345 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 | 1617 |
| 1562 | 1618 |
| 1563 void HCheckPrototypeMaps::Verify() { | 1619 void HCheckPrototypeMaps::Verify() { |
| 1564 HInstruction::Verify(); | 1620 HInstruction::Verify(); |
| 1565 ASSERT(HasNoUses()); | 1621 ASSERT(HasNoUses()); |
| 1566 } | 1622 } |
| 1567 | 1623 |
| 1568 #endif | 1624 #endif |
| 1569 | 1625 |
| 1570 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
| OLD | NEW |