| 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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 key()->PrintNameTo(stream); | 1447 key()->PrintNameTo(stream); |
| 1448 stream->Add("]"); | 1448 stream->Add("]"); |
| 1449 } | 1449 } |
| 1450 | 1450 |
| 1451 | 1451 |
| 1452 void HLoadKeyedSpecializedArrayElement::PrintDataTo( | 1452 void HLoadKeyedSpecializedArrayElement::PrintDataTo( |
| 1453 StringStream* stream) { | 1453 StringStream* stream) { |
| 1454 external_pointer()->PrintNameTo(stream); | 1454 external_pointer()->PrintNameTo(stream); |
| 1455 stream->Add("."); | 1455 stream->Add("."); |
| 1456 switch (elements_kind()) { | 1456 switch (elements_kind()) { |
| 1457 case JSObject::EXTERNAL_BYTE_ELEMENTS: | 1457 case EXTERNAL_BYTE_ELEMENTS: |
| 1458 stream->Add("byte"); | 1458 stream->Add("byte"); |
| 1459 break; | 1459 break; |
| 1460 case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS: | 1460 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: |
| 1461 stream->Add("u_byte"); | 1461 stream->Add("u_byte"); |
| 1462 break; | 1462 break; |
| 1463 case JSObject::EXTERNAL_SHORT_ELEMENTS: | 1463 case EXTERNAL_SHORT_ELEMENTS: |
| 1464 stream->Add("short"); | 1464 stream->Add("short"); |
| 1465 break; | 1465 break; |
| 1466 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 1466 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
| 1467 stream->Add("u_short"); | 1467 stream->Add("u_short"); |
| 1468 break; | 1468 break; |
| 1469 case JSObject::EXTERNAL_INT_ELEMENTS: | 1469 case EXTERNAL_INT_ELEMENTS: |
| 1470 stream->Add("int"); | 1470 stream->Add("int"); |
| 1471 break; | 1471 break; |
| 1472 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: | 1472 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
| 1473 stream->Add("u_int"); | 1473 stream->Add("u_int"); |
| 1474 break; | 1474 break; |
| 1475 case JSObject::EXTERNAL_FLOAT_ELEMENTS: | 1475 case EXTERNAL_FLOAT_ELEMENTS: |
| 1476 stream->Add("float"); | 1476 stream->Add("float"); |
| 1477 break; | 1477 break; |
| 1478 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: | 1478 case EXTERNAL_DOUBLE_ELEMENTS: |
| 1479 stream->Add("double"); | 1479 stream->Add("double"); |
| 1480 break; | 1480 break; |
| 1481 case JSObject::EXTERNAL_PIXEL_ELEMENTS: | 1481 case EXTERNAL_PIXEL_ELEMENTS: |
| 1482 stream->Add("pixel"); | 1482 stream->Add("pixel"); |
| 1483 break; | 1483 break; |
| 1484 case JSObject::FAST_ELEMENTS: | 1484 case FAST_ELEMENTS: |
| 1485 case JSObject::FAST_DOUBLE_ELEMENTS: | 1485 case FAST_DOUBLE_ELEMENTS: |
| 1486 case JSObject::DICTIONARY_ELEMENTS: | 1486 case DICTIONARY_ELEMENTS: |
| 1487 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS: | 1487 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 1488 UNREACHABLE(); | 1488 UNREACHABLE(); |
| 1489 break; | 1489 break; |
| 1490 } | 1490 } |
| 1491 stream->Add("["); | 1491 stream->Add("["); |
| 1492 key()->PrintNameTo(stream); | 1492 key()->PrintNameTo(stream); |
| 1493 stream->Add("]"); | 1493 stream->Add("]"); |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 | 1496 |
| 1497 void HStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 1497 void HStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 stream->Add("] = "); | 1542 stream->Add("] = "); |
| 1543 value()->PrintNameTo(stream); | 1543 value()->PrintNameTo(stream); |
| 1544 } | 1544 } |
| 1545 | 1545 |
| 1546 | 1546 |
| 1547 void HStoreKeyedSpecializedArrayElement::PrintDataTo( | 1547 void HStoreKeyedSpecializedArrayElement::PrintDataTo( |
| 1548 StringStream* stream) { | 1548 StringStream* stream) { |
| 1549 external_pointer()->PrintNameTo(stream); | 1549 external_pointer()->PrintNameTo(stream); |
| 1550 stream->Add("."); | 1550 stream->Add("."); |
| 1551 switch (elements_kind()) { | 1551 switch (elements_kind()) { |
| 1552 case JSObject::EXTERNAL_BYTE_ELEMENTS: | 1552 case EXTERNAL_BYTE_ELEMENTS: |
| 1553 stream->Add("byte"); | 1553 stream->Add("byte"); |
| 1554 break; | 1554 break; |
| 1555 case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS: | 1555 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: |
| 1556 stream->Add("u_byte"); | 1556 stream->Add("u_byte"); |
| 1557 break; | 1557 break; |
| 1558 case JSObject::EXTERNAL_SHORT_ELEMENTS: | 1558 case EXTERNAL_SHORT_ELEMENTS: |
| 1559 stream->Add("short"); | 1559 stream->Add("short"); |
| 1560 break; | 1560 break; |
| 1561 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 1561 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
| 1562 stream->Add("u_short"); | 1562 stream->Add("u_short"); |
| 1563 break; | 1563 break; |
| 1564 case JSObject::EXTERNAL_INT_ELEMENTS: | 1564 case EXTERNAL_INT_ELEMENTS: |
| 1565 stream->Add("int"); | 1565 stream->Add("int"); |
| 1566 break; | 1566 break; |
| 1567 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: | 1567 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
| 1568 stream->Add("u_int"); | 1568 stream->Add("u_int"); |
| 1569 break; | 1569 break; |
| 1570 case JSObject::EXTERNAL_FLOAT_ELEMENTS: | 1570 case EXTERNAL_FLOAT_ELEMENTS: |
| 1571 stream->Add("float"); | 1571 stream->Add("float"); |
| 1572 break; | 1572 break; |
| 1573 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: | 1573 case EXTERNAL_DOUBLE_ELEMENTS: |
| 1574 stream->Add("double"); | 1574 stream->Add("double"); |
| 1575 break; | 1575 break; |
| 1576 case JSObject::EXTERNAL_PIXEL_ELEMENTS: | 1576 case EXTERNAL_PIXEL_ELEMENTS: |
| 1577 stream->Add("pixel"); | 1577 stream->Add("pixel"); |
| 1578 break; | 1578 break; |
| 1579 case JSObject::FAST_ELEMENTS: | 1579 case FAST_ELEMENTS: |
| 1580 case JSObject::FAST_DOUBLE_ELEMENTS: | 1580 case FAST_DOUBLE_ELEMENTS: |
| 1581 case JSObject::DICTIONARY_ELEMENTS: | 1581 case DICTIONARY_ELEMENTS: |
| 1582 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS: | 1582 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 1583 UNREACHABLE(); | 1583 UNREACHABLE(); |
| 1584 break; | 1584 break; |
| 1585 } | 1585 } |
| 1586 stream->Add("["); | 1586 stream->Add("["); |
| 1587 key()->PrintNameTo(stream); | 1587 key()->PrintNameTo(stream); |
| 1588 stream->Add("] = "); | 1588 stream->Add("] = "); |
| 1589 value()->PrintNameTo(stream); | 1589 value()->PrintNameTo(stream); |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 | 1592 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 | 1879 |
| 1880 | 1880 |
| 1881 void HCheckPrototypeMaps::Verify() { | 1881 void HCheckPrototypeMaps::Verify() { |
| 1882 HInstruction::Verify(); | 1882 HInstruction::Verify(); |
| 1883 ASSERT(HasNoUses()); | 1883 ASSERT(HasNoUses()); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 #endif | 1886 #endif |
| 1887 | 1887 |
| 1888 } } // namespace v8::internal | 1888 } } // namespace v8::internal |
| OLD | NEW |