| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 519 } |
| 520 } | 520 } |
| 521 end = cur + words; | 521 end = cur + words; |
| 522 | 522 |
| 523 while (cur < end) { | 523 while (cur < end) { |
| 524 PrintF(" 0x%08x: 0x%08x %10d", | 524 PrintF(" 0x%08x: 0x%08x %10d", |
| 525 reinterpret_cast<intptr_t>(cur), *cur, *cur); | 525 reinterpret_cast<intptr_t>(cur), *cur, *cur); |
| 526 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 526 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); |
| 527 int value = *cur; | 527 int value = *cur; |
| 528 Heap* current_heap = v8::internal::Isolate::Current()->heap(); | 528 Heap* current_heap = v8::internal::Isolate::Current()->heap(); |
| 529 if (current_heap->Contains(obj) || ((value & 1) == 0)) { | 529 if (((value & 1) == 0) || current_heap->Contains(obj)) { |
| 530 PrintF(" ("); | 530 PrintF(" ("); |
| 531 if ((value & 1) == 0) { | 531 if ((value & 1) == 0) { |
| 532 PrintF("smi %d", value / 2); | 532 PrintF("smi %d", value / 2); |
| 533 } else { | 533 } else { |
| 534 obj->ShortPrint(); | 534 obj->ShortPrint(); |
| 535 } | 535 } |
| 536 PrintF(")"); | 536 PrintF(")"); |
| 537 } | 537 } |
| 538 PrintF("\n"); | 538 PrintF("\n"); |
| 539 cur++; | 539 cur++; |
| (...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2902 } | 2902 } |
| 2903 | 2903 |
| 2904 | 2904 |
| 2905 #undef UNSUPPORTED | 2905 #undef UNSUPPORTED |
| 2906 | 2906 |
| 2907 } } // namespace v8::internal | 2907 } } // namespace v8::internal |
| 2908 | 2908 |
| 2909 #endif // USE_SIMULATOR | 2909 #endif // USE_SIMULATOR |
| 2910 | 2910 |
| 2911 #endif // V8_TARGET_ARCH_MIPS | 2911 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |