| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 #if ENABLE(ASSERT) | 362 #if ENABLE(ASSERT) |
| 363 // Infrastructure to determine if an address is within one of the | 363 // Infrastructure to determine if an address is within one of the |
| 364 // address ranges for the Blink heap. If the address is in the Blink | 364 // address ranges for the Blink heap. If the address is in the Blink |
| 365 // heap the containing heap page is returned. | 365 // heap the containing heap page is returned. |
| 366 BasePage* findPageFromAddress(Address); | 366 BasePage* findPageFromAddress(Address); |
| 367 BasePage* findPageFromAddress(const void* pointer) { return findPageFromAddr
ess(reinterpret_cast<Address>(const_cast<void*>(pointer))); } | 367 BasePage* findPageFromAddress(const void* pointer) { return findPageFromAddr
ess(reinterpret_cast<Address>(const_cast<void*>(pointer))); } |
| 368 #endif | 368 #endif |
| 369 | 369 |
| 370 // A region of PersistentNodes allocated on the given thread. | 370 // A region of PersistentNodes allocated on the given thread. |
| 371 PersistentRegion* persistentRegion() const { return m_persistentRegion.get()
; } | 371 PersistentRegion* getPersistentRegion() const { return m_persistentRegion.ge
t(); } |
| 372 // A region of PersistentNodes not owned by any particular thread. | 372 // A region of PersistentNodes not owned by any particular thread. |
| 373 | 373 |
| 374 // Visit local thread stack and trace all pointers conservatively. | 374 // Visit local thread stack and trace all pointers conservatively. |
| 375 void visitStack(Visitor*); | 375 void visitStack(Visitor*); |
| 376 | 376 |
| 377 // Visit the asan fake stack frame corresponding to a slot on the | 377 // Visit the asan fake stack frame corresponding to a slot on the |
| 378 // real machine stack if there is one. | 378 // real machine stack if there is one. |
| 379 void visitAsanFakeStackForPointer(Visitor*, Address); | 379 void visitAsanFakeStackForPointer(Visitor*, Address); |
| 380 | 380 |
| 381 // Visit all persistents allocated on this thread. | 381 // Visit all persistents allocated on this thread. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 706 |
| 707 template<> class ThreadStateFor<AnyThread> { | 707 template<> class ThreadStateFor<AnyThread> { |
| 708 STATIC_ONLY(ThreadStateFor); | 708 STATIC_ONLY(ThreadStateFor); |
| 709 public: | 709 public: |
| 710 static ThreadState* state() { return ThreadState::current(); } | 710 static ThreadState* state() { return ThreadState::current(); } |
| 711 }; | 711 }; |
| 712 | 712 |
| 713 } // namespace blink | 713 } // namespace blink |
| 714 | 714 |
| 715 #endif // ThreadState_h | 715 #endif // ThreadState_h |
| OLD | NEW |