OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1453 else if (IsNull()) | 1453 else if (IsNull()) |
1454 accumulator->Add("<null>"); | 1454 accumulator->Add("<null>"); |
1455 else if (IsTrue()) | 1455 else if (IsTrue()) |
1456 accumulator->Add("<true>"); | 1456 accumulator->Add("<true>"); |
1457 else if (IsFalse()) | 1457 else if (IsFalse()) |
1458 accumulator->Add("<false>"); | 1458 accumulator->Add("<false>"); |
1459 else | 1459 else |
1460 accumulator->Add("<Odd Oddball>"); | 1460 accumulator->Add("<Odd Oddball>"); |
1461 break; | 1461 break; |
1462 } | 1462 } |
1463 case SYMBOL_TYPE: | 1463 case SYMBOL_TYPE: { |
1464 accumulator->Add("<Symbol: %d>", Symbol::cast(this)->Hash()); | 1464 Symbol* symbol = Symbol::cast(this); |
1465 accumulator->Add("<Symbol: %d", symbol->Hash()); | |
1466 if (!symbol->name()->IsUndefined()) { | |
1467 String::cast(symbol->name())->StringShortPrint(accumulator); | |
Michael Starzinger
2013/03/22 12:03:25
I think there is a white-space missing between the
rossberg
2013/03/22 13:02:42
That actually was intentional, but I added a space
| |
1468 } | |
1469 accumulator->Add(">"); | |
1465 break; | 1470 break; |
1471 } | |
1466 case HEAP_NUMBER_TYPE: | 1472 case HEAP_NUMBER_TYPE: |
1467 accumulator->Add("<Number: "); | 1473 accumulator->Add("<Number: "); |
1468 HeapNumber::cast(this)->HeapNumberPrint(accumulator); | 1474 HeapNumber::cast(this)->HeapNumberPrint(accumulator); |
1469 accumulator->Put('>'); | 1475 accumulator->Put('>'); |
1470 break; | 1476 break; |
1471 case JS_PROXY_TYPE: | 1477 case JS_PROXY_TYPE: |
1472 accumulator->Add("<JSProxy>"); | 1478 accumulator->Add("<JSProxy>"); |
1473 break; | 1479 break; |
1474 case JS_FUNCTION_PROXY_TYPE: | 1480 case JS_FUNCTION_PROXY_TYPE: |
1475 accumulator->Add("<JSFunctionProxy>"); | 1481 accumulator->Add("<JSFunctionProxy>"); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1565 case MAP_TYPE: | 1571 case MAP_TYPE: |
1566 Map::BodyDescriptor::IterateBody(this, v); | 1572 Map::BodyDescriptor::IterateBody(this, v); |
1567 break; | 1573 break; |
1568 case CODE_TYPE: | 1574 case CODE_TYPE: |
1569 reinterpret_cast<Code*>(this)->CodeIterateBody(v); | 1575 reinterpret_cast<Code*>(this)->CodeIterateBody(v); |
1570 break; | 1576 break; |
1571 case JS_GLOBAL_PROPERTY_CELL_TYPE: | 1577 case JS_GLOBAL_PROPERTY_CELL_TYPE: |
1572 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v); | 1578 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v); |
1573 break; | 1579 break; |
1574 case SYMBOL_TYPE: | 1580 case SYMBOL_TYPE: |
1581 Symbol::BodyDescriptor::IterateBody(this, v); | |
1582 break; | |
1575 case HEAP_NUMBER_TYPE: | 1583 case HEAP_NUMBER_TYPE: |
1576 case FILLER_TYPE: | 1584 case FILLER_TYPE: |
1577 case BYTE_ARRAY_TYPE: | 1585 case BYTE_ARRAY_TYPE: |
1578 case FREE_SPACE_TYPE: | 1586 case FREE_SPACE_TYPE: |
1579 case EXTERNAL_PIXEL_ARRAY_TYPE: | 1587 case EXTERNAL_PIXEL_ARRAY_TYPE: |
1580 case EXTERNAL_BYTE_ARRAY_TYPE: | 1588 case EXTERNAL_BYTE_ARRAY_TYPE: |
1581 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 1589 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
1582 case EXTERNAL_SHORT_ARRAY_TYPE: | 1590 case EXTERNAL_SHORT_ARRAY_TYPE: |
1583 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 1591 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
1584 case EXTERNAL_INT_ARRAY_TYPE: | 1592 case EXTERNAL_INT_ARRAY_TYPE: |
(...skipping 12734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
14319 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 14327 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
14320 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 14328 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
14321 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 14329 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
14322 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 14330 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
14323 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 14331 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
14324 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 14332 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
14325 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 14333 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
14326 } | 14334 } |
14327 | 14335 |
14328 } } // namespace v8::internal | 14336 } } // namespace v8::internal |
OLD | NEW |