| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 m_orderedPreFinalizers.remove(PreFinalizer(self, &T::invokePreFinalizer)
); | 425 m_orderedPreFinalizers.remove(PreFinalizer(self, &T::invokePreFinalizer)
); |
| 426 } | 426 } |
| 427 | 427 |
| 428 void shouldFlushHeapDoesNotContainCache() { m_shouldFlushHeapDoesNotContainC
ache = true; } | 428 void shouldFlushHeapDoesNotContainCache() { m_shouldFlushHeapDoesNotContainC
ache = true; } |
| 429 | 429 |
| 430 void registerTraceDOMWrappers(v8::Isolate* isolate, void (*traceDOMWrappers)
(v8::Isolate*, Visitor*)) | 430 void registerTraceDOMWrappers(v8::Isolate* isolate, void (*traceDOMWrappers)
(v8::Isolate*, Visitor*)) |
| 431 { | 431 { |
| 432 m_isolate = isolate; | 432 m_isolate = isolate; |
| 433 m_traceDOMWrappers = traceDOMWrappers; | 433 m_traceDOMWrappers = traceDOMWrappers; |
| 434 } | 434 } |
| 435 void unregisterTraceDOMWrappers() |
| 436 { |
| 437 m_isolate = nullptr; |
| 438 m_traceDOMWrappers = nullptr; |
| 439 } |
| 435 | 440 |
| 436 // By entering a gc-forbidden scope, conservative GCs will not | 441 // By entering a gc-forbidden scope, conservative GCs will not |
| 437 // be allowed while handling an out-of-line allocation request. | 442 // be allowed while handling an out-of-line allocation request. |
| 438 // Intended used when constructing subclasses of GC mixins, where | 443 // Intended used when constructing subclasses of GC mixins, where |
| 439 // the object being constructed cannot be safely traced & marked | 444 // the object being constructed cannot be safely traced & marked |
| 440 // fully should a GC be allowed while its subclasses are being | 445 // fully should a GC be allowed while its subclasses are being |
| 441 // constructed. | 446 // constructed. |
| 442 void enterGCForbiddenScopeIfNeeded(GarbageCollectedMixinConstructorMarker* g
cMixinMarker) | 447 void enterGCForbiddenScopeIfNeeded(GarbageCollectedMixinConstructorMarker* g
cMixinMarker) |
| 443 { | 448 { |
| 444 ASSERT(checkThread()); | 449 ASSERT(checkThread()); |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 | 712 |
| 708 template<> class ThreadStateFor<AnyThread> { | 713 template<> class ThreadStateFor<AnyThread> { |
| 709 STATIC_ONLY(ThreadStateFor); | 714 STATIC_ONLY(ThreadStateFor); |
| 710 public: | 715 public: |
| 711 static ThreadState* state() { return ThreadState::current(); } | 716 static ThreadState* state() { return ThreadState::current(); } |
| 712 }; | 717 }; |
| 713 | 718 |
| 714 } // namespace blink | 719 } // namespace blink |
| 715 | 720 |
| 716 #endif // ThreadState_h | 721 #endif // ThreadState_h |
| OLD | NEW |