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

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: switch to CHECK() 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 bool isAddressInHeapDoesNotContainCache(Address);
383
382 void registerTraceDOMWrappers( 384 void registerTraceDOMWrappers(
383 v8::Isolate* isolate, 385 v8::Isolate* isolate,
384 void (*traceDOMWrappers)(v8::Isolate*, Visitor*), 386 void (*traceDOMWrappers)(v8::Isolate*, Visitor*),
385 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*), 387 void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*),
386 void (*performCleanup)(v8::Isolate*)) { 388 void (*performCleanup)(v8::Isolate*)) {
387 m_isolate = isolate; 389 m_isolate = isolate;
388 DCHECK(!m_isolate || traceDOMWrappers); 390 DCHECK(!m_isolate || traceDOMWrappers);
389 DCHECK(!m_isolate || invalidateDeadObjectsInWrappersMarkingDeque); 391 DCHECK(!m_isolate || invalidateDeadObjectsInWrappersMarkingDeque);
390 DCHECK(!m_isolate || performCleanup); 392 DCHECK(!m_isolate || performCleanup);
391 m_traceDOMWrappers = traceDOMWrappers; 393 m_traceDOMWrappers = traceDOMWrappers;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 class ThreadStateFor<AnyThread> { 699 class ThreadStateFor<AnyThread> {
698 STATIC_ONLY(ThreadStateFor); 700 STATIC_ONLY(ThreadStateFor);
699 701
700 public: 702 public:
701 static ThreadState* state() { return ThreadState::current(); } 703 static ThreadState* state() { return ThreadState::current(); }
702 }; 704 };
703 705
704 } // namespace blink 706 } // namespace blink
705 707
706 #endif // ThreadState_h 708 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PageMemory.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698