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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 1439483003: - Add an OSThread structure which is the generic TLS structure for all C++ (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.h
diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h
index 76b3abae27f2a92bebeb045c1b58d17eac6304b6..9e7cb5fd684b466731ed83b248518d85e45ea573 100644
--- a/runtime/vm/dart_api_impl.h
+++ b/runtime/vm/dart_api_impl.h
@@ -286,23 +286,6 @@ class Api : AllStatic {
friend class ApiNativeScope;
};
-class IsolateSaver {
- public:
- explicit IsolateSaver(Isolate* current_isolate)
- : saved_isolate_(current_isolate) {
- }
- ~IsolateSaver() {
- // TODO(koda): Audit users; they should know whether they're in an isolate.
- if (saved_isolate_ != NULL) {
- Thread::EnterIsolate(saved_isolate_);
- }
- }
- private:
- Isolate* saved_isolate_;
-
- DISALLOW_COPY_AND_ASSIGN(IsolateSaver);
-};
-
// Start a scope in which no Dart API call backs are allowed.
#define START_NO_CALLBACK_SCOPE(thread) \
thread->IncrementNoCallbackScopeDepth()
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698