| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 get(i)->ShortPrint(out); | 562 get(i)->ShortPrint(out); |
| 563 } | 563 } |
| 564 PrintF(out, "\n"); | 564 PrintF(out, "\n"); |
| 565 } | 565 } |
| 566 | 566 |
| 567 | 567 |
| 568 void FixedDoubleArray::FixedDoubleArrayPrint(FILE* out) { | 568 void FixedDoubleArray::FixedDoubleArrayPrint(FILE* out) { |
| 569 HeapObject::PrintHeader(out, "FixedDoubleArray"); | 569 HeapObject::PrintHeader(out, "FixedDoubleArray"); |
| 570 PrintF(out, " - length: %d", length()); | 570 PrintF(out, " - length: %d", length()); |
| 571 for (int i = 0; i < length(); i++) { | 571 for (int i = 0; i < length(); i++) { |
| 572 PrintF(out, "\n [%d]: %g", i, get_scalar(i)); | 572 if (is_the_hole(i)) { |
| 573 PrintF(out, "\n [%d]: <the hole>", i); |
| 574 } else { |
| 575 PrintF(out, "\n [%d]: %g", i, get_scalar(i)); |
| 576 } |
| 573 } | 577 } |
| 574 PrintF(out, "\n"); | 578 PrintF(out, "\n"); |
| 575 } | 579 } |
| 576 | 580 |
| 577 | 581 |
| 578 void JSValue::JSValuePrint(FILE* out) { | 582 void JSValue::JSValuePrint(FILE* out) { |
| 579 HeapObject::PrintHeader(out, "ValueObject"); | 583 HeapObject::PrintHeader(out, "ValueObject"); |
| 580 value()->Print(out); | 584 value()->Print(out); |
| 581 } | 585 } |
| 582 | 586 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 desc.Print(out); | 969 desc.Print(out); |
| 966 } | 970 } |
| 967 PrintF(out, "\n"); | 971 PrintF(out, "\n"); |
| 968 } | 972 } |
| 969 | 973 |
| 970 | 974 |
| 971 #endif // OBJECT_PRINT | 975 #endif // OBJECT_PRINT |
| 972 | 976 |
| 973 | 977 |
| 974 } } // namespace v8::internal | 978 } } // namespace v8::internal |
| OLD | NEW |