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

Unified Diff: runtime/vm/kernel_isolate.h

Issue 2554953004: Revert "Add Kernel Isolate" (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/kernel_isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_isolate.h
diff --git a/runtime/vm/kernel_isolate.h b/runtime/vm/kernel_isolate.h
deleted file mode 100644
index 8f54c347a1820b9c081cc68e299f21632ec56d8b..0000000000000000000000000000000000000000
--- a/runtime/vm/kernel_isolate.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#ifndef RUNTIME_VM_KERNEL_ISOLATE_H_
-#define RUNTIME_VM_KERNEL_ISOLATE_H_
-
-#if !defined(DART_PRECOMPILED_RUNTIME)
-
-#include "include/dart_api.h"
-
-#include "vm/allocation.h"
-#include "vm/dart.h"
-#include "vm/os_thread.h"
-
-namespace dart {
-
-class KernelIsolate : public AllStatic {
- public:
- static const char* kName;
-
- static void Run();
-
- static bool Exists();
- static bool IsRunning();
- static bool IsKernelIsolate(const Isolate* isolate);
- static Dart_Port WaitForKernelPort();
- static Dart_Port KernelPort() { return kernel_port_; }
-
- static bool LoadScript(const String& url, const String& source);
-
- protected:
- static Monitor* monitor_;
- static Dart_IsolateCreateCallback create_callback_;
-
- static void InitCallback(Isolate* I);
- static void SetKernelIsolate(Isolate* isolate);
- static void SetLoadPort(Dart_Port port);
- static void FinishedInitializing();
-
- static Dart_Port kernel_port_;
- static Isolate* isolate_;
- static bool initializing_;
-
- static Dart_IsolateCreateCallback create_callback() {
- return create_callback_;
- }
-
- friend class Dart;
- friend class RunKernelTask;
-};
-
-} // namespace dart
-
-#endif // DART_PRECOMPILED_RUNTIME
-
-#endif // RUNTIME_VM_KERNEL_ISOLATE_H_
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/kernel_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698