Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.h

Issue 2570463005: Retire ThreadState::registerPreFinalizer<T>() (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 Vector<size_t> liveSize; 406 Vector<size_t> liveSize;
407 Vector<size_t> deadSize; 407 Vector<size_t> deadSize;
408 }; 408 };
409 409
410 void pushThreadLocalWeakCallback(void*, WeakCallback); 410 void pushThreadLocalWeakCallback(void*, WeakCallback);
411 bool popAndInvokeThreadLocalWeakCallback(Visitor*); 411 bool popAndInvokeThreadLocalWeakCallback(Visitor*);
412 void threadLocalWeakProcessing(); 412 void threadLocalWeakProcessing();
413 413
414 size_t objectPayloadSizeForTesting(); 414 size_t objectPayloadSizeForTesting();
415 415
416 // TODO: no longer needed, remove all uses.
417 template <typename T>
418 void registerPreFinalizer(T* self) {
419 }
420
421 void shouldFlushHeapDoesNotContainCache() { 416 void shouldFlushHeapDoesNotContainCache() {
422 m_shouldFlushHeapDoesNotContainCache = true; 417 m_shouldFlushHeapDoesNotContainCache = true;
423 } 418 }
424 419
425 void registerTraceDOMWrappers( 420 void registerTraceDOMWrappers(
426 v8::Isolate* isolate, 421 v8::Isolate* isolate,
427 void (*traceDOMWrappers)(v8::Isolate*, Visitor*), 422 void (*traceDOMWrappers)(v8::Isolate*, Visitor*),
428 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*), 423 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*),
429 void (*performCleanup)(v8::Isolate*)) { 424 void (*performCleanup)(v8::Isolate*)) {
430 m_isolate = isolate; 425 m_isolate = isolate;
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 class ThreadStateFor<AnyThread> { 744 class ThreadStateFor<AnyThread> {
750 STATIC_ONLY(ThreadStateFor); 745 STATIC_ONLY(ThreadStateFor);
751 746
752 public: 747 public:
753 static ThreadState* state() { return ThreadState::current(); } 748 static ThreadState* state() { return ThreadState::current(); }
754 }; 749 };
755 750
756 } // namespace blink 751 } // namespace blink
757 752
758 #endif // ThreadState_h 753 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698