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

Side by Side Diff: src/isolate.h

Issue 1522703002: Add Isolate::DiscardThreadSpecificMetadata method to embedder API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove rocketsoftware wildcard from AUTHORS Created 5 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
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void ClearSerializerData(); 511 void ClearSerializerData();
512 512
513 // Find the PerThread for this particular (isolate, thread) combination 513 // Find the PerThread for this particular (isolate, thread) combination
514 // If one does not yet exist, return null. 514 // If one does not yet exist, return null.
515 PerIsolateThreadData* FindPerThreadDataForThisThread(); 515 PerIsolateThreadData* FindPerThreadDataForThisThread();
516 516
517 // Find the PerThread for given (isolate, thread) combination 517 // Find the PerThread for given (isolate, thread) combination
518 // If one does not yet exist, return null. 518 // If one does not yet exist, return null.
519 PerIsolateThreadData* FindPerThreadDataForThread(ThreadId thread_id); 519 PerIsolateThreadData* FindPerThreadDataForThread(ThreadId thread_id);
520 520
521 // Discard the PerThread for this particular (isolate, thread) combination
522 // If one does not yet exist, no-op.
523 void DiscardPerThreadDataForThisThread();
524
521 // Returns the key used to store the pointer to the current isolate. 525 // Returns the key used to store the pointer to the current isolate.
522 // Used internally for V8 threads that do not execute JavaScript but still 526 // Used internally for V8 threads that do not execute JavaScript but still
523 // are part of the domain of an isolate (like the context switcher). 527 // are part of the domain of an isolate (like the context switcher).
524 static base::Thread::LocalStorageKey isolate_key() { 528 static base::Thread::LocalStorageKey isolate_key() {
525 return isolate_key_; 529 return isolate_key_;
526 } 530 }
527 531
528 // Returns the key used to store process-wide thread IDs. 532 // Returns the key used to store process-wide thread IDs.
529 static base::Thread::LocalStorageKey thread_id_key() { 533 static base::Thread::LocalStorageKey thread_id_key() {
530 return thread_id_key_; 534 return thread_id_key_;
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 1555
1552 EmbeddedVector<char, 128> filename_; 1556 EmbeddedVector<char, 128> filename_;
1553 FILE* file_; 1557 FILE* file_;
1554 int scope_depth_; 1558 int scope_depth_;
1555 }; 1559 };
1556 1560
1557 } // namespace internal 1561 } // namespace internal
1558 } // namespace v8 1562 } // namespace v8
1559 1563
1560 #endif // V8_ISOLATE_H_ 1564 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698