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

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

Issue 2715713005: Verify that a new heap page isn't also marked as being off heap. (Closed)
Patch Set: Created 3 years, 9 months 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 Vector<size_t> liveSize; 372 Vector<size_t> liveSize;
373 Vector<size_t> deadSize; 373 Vector<size_t> deadSize;
374 }; 374 };
375 375
376 size_t objectPayloadSizeForTesting(); 376 size_t objectPayloadSizeForTesting();
377 377
378 void shouldFlushHeapDoesNotContainCache() { 378 void shouldFlushHeapDoesNotContainCache() {
379 m_shouldFlushHeapDoesNotContainCache = true; 379 m_shouldFlushHeapDoesNotContainCache = true;
380 } 380 }
381 381
382 #if DCHECK_IS_ON()
383 bool isAddressInHeapDoesNotContainCache(Address);
384 #endif
385
382 void registerTraceDOMWrappers( 386 void registerTraceDOMWrappers(
383 v8::Isolate* isolate, 387 v8::Isolate* isolate,
384 void (*traceDOMWrappers)(v8::Isolate*, Visitor*), 388 void (*traceDOMWrappers)(v8::Isolate*, Visitor*),
385 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*), 389 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*),
386 void (*performCleanup)(v8::Isolate*)) { 390 void (*performCleanup)(v8::Isolate*)) {
387 m_isolate = isolate; 391 m_isolate = isolate;
388 DCHECK(!m_isolate || traceDOMWrappers); 392 DCHECK(!m_isolate || traceDOMWrappers);
389 DCHECK(!m_isolate || invalidateDeadObjectsInWrappersMarkingDeque); 393 DCHECK(!m_isolate || invalidateDeadObjectsInWrappersMarkingDeque);
390 DCHECK(!m_isolate || performCleanup); 394 DCHECK(!m_isolate || performCleanup);
391 m_traceDOMWrappers = traceDOMWrappers; 395 m_traceDOMWrappers = traceDOMWrappers;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 class ThreadStateFor<AnyThread> { 701 class ThreadStateFor<AnyThread> {
698 STATIC_ONLY(ThreadStateFor); 702 STATIC_ONLY(ThreadStateFor);
699 703
700 public: 704 public:
701 static ThreadState* state() { return ThreadState::current(); } 705 static ThreadState* state() { return ThreadState::current(); }
702 }; 706 };
703 707
704 } // namespace blink 708 } // namespace blink
705 709
706 #endif // ThreadState_h 710 #endif // ThreadState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698