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

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

Issue 1966743004: Move tracking of ActiveScriptWrappables to V8PerIsolateData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lazy creation of map Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 void leaveStaticReferenceRegistrationDisabledScope(); 515 void leaveStaticReferenceRegistrationDisabledScope();
516 #endif 516 #endif
517 517
518 void resetHeapCounters(); 518 void resetHeapCounters();
519 void increaseAllocatedObjectSize(size_t); 519 void increaseAllocatedObjectSize(size_t);
520 void decreaseAllocatedObjectSize(size_t); 520 void decreaseAllocatedObjectSize(size_t);
521 void increaseMarkedObjectSize(size_t); 521 void increaseMarkedObjectSize(size_t);
522 522
523 void callThreadShutdownHooks(); 523 void callThreadShutdownHooks();
524 524
525 v8::Isolate* isolate() const { return m_isolate; }
526
525 private: 527 private:
526 enum SnapshotType { 528 enum SnapshotType {
527 HeapSnapshot, 529 HeapSnapshot,
528 FreelistSnapshot 530 FreelistSnapshot
529 }; 531 };
530 532
531 ThreadState(bool perThreadHeapEnabled); 533 ThreadState(bool perThreadHeapEnabled);
532 ~ThreadState(); 534 ~ThreadState();
533 535
534 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); 536 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 701
700 template<> class ThreadStateFor<AnyThread> { 702 template<> class ThreadStateFor<AnyThread> {
701 STATIC_ONLY(ThreadStateFor); 703 STATIC_ONLY(ThreadStateFor);
702 public: 704 public:
703 static ThreadState* state() { return ThreadState::current(); } 705 static ThreadState* state() { return ThreadState::current(); }
704 }; 706 };
705 707
706 } // namespace blink 708 } // namespace blink
707 709
708 #endif // ThreadState_h 710 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698