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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 9169063: Add support for native ports in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/dart_api_impl.h
===================================================================
--- runtime/vm/dart_api_impl.h (revision 3743)
+++ runtime/vm/dart_api_impl.h (working copy)
@@ -123,6 +123,18 @@
static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
};
+class IsolateSaver {
+ public:
+ explicit IsolateSaver(Isolate* current_isolate)
+ : saved_isolate_(current_isolate) {
+ }
+ ~IsolateSaver() {
+ Isolate::SetCurrent(saved_isolate_);
+ }
+ private:
+ Isolate* saved_isolate_;
siva 2012/02/01 00:38:56 DISALLOW_COPY_AND_ASSIGN etc...
turnidge 2012/02/01 18:51:27 Done.
+};
+
} // namespace dart.
#endif // VM_DART_API_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698