| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // Visit local thread stack and trace all pointers conservatively. | 451 // Visit local thread stack and trace all pointers conservatively. |
| 452 void visitStack(Visitor*); | 452 void visitStack(Visitor*); |
| 453 | 453 |
| 454 // Visit the asan fake stack frame corresponding to a slot on the | 454 // Visit the asan fake stack frame corresponding to a slot on the |
| 455 // real machine stack if there is one. | 455 // real machine stack if there is one. |
| 456 void visitAsanFakeStackForPointer(Visitor*, Address); | 456 void visitAsanFakeStackForPointer(Visitor*, Address); |
| 457 | 457 |
| 458 // Visit all persistents allocated on this thread. | 458 // Visit all persistents allocated on this thread. |
| 459 void visitPersistents(Visitor*); | 459 void visitPersistents(Visitor*); |
| 460 | 460 |
| 461 // Takes dump of memory statistics for tracing. |
| 462 void dumpMemory(); |
| 463 |
| 461 #if ENABLE(GC_PROFILING) | 464 #if ENABLE(GC_PROFILING) |
| 462 const GCInfo* findGCInfo(Address); | 465 const GCInfo* findGCInfo(Address); |
| 463 static const GCInfo* findGCInfoFromAllThreads(Address); | 466 static const GCInfo* findGCInfoFromAllThreads(Address); |
| 464 | 467 |
| 465 struct SnapshotInfo { | 468 struct SnapshotInfo { |
| 466 ThreadState* state; | 469 ThreadState* state; |
| 467 | 470 |
| 468 size_t freeSize; | 471 size_t freeSize; |
| 469 size_t pageCount; | 472 size_t pageCount; |
| 470 | 473 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 }; | 737 }; |
| 735 | 738 |
| 736 template<> class ThreadStateFor<AnyThread> { | 739 template<> class ThreadStateFor<AnyThread> { |
| 737 public: | 740 public: |
| 738 static ThreadState* state() { return ThreadState::current(); } | 741 static ThreadState* state() { return ThreadState::current(); } |
| 739 }; | 742 }; |
| 740 | 743 |
| 741 } // namespace blink | 744 } // namespace blink |
| 742 | 745 |
| 743 #endif // ThreadState_h | 746 #endif // ThreadState_h |
| OLD | NEW |