Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index 4729375f4d50ac53663c948814e7ffb466648ce2..53178ceb61284edd86f956852d0aeb5b77a5c5f1 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -23,7 +23,6 @@ static uint8_t* malloc_allocator(uint8_t* ptr, |
return reinterpret_cast<uint8_t*>(new_ptr); |
} |
- |
class IsolateSaver { |
public: |
explicit IsolateSaver(Isolate* current_isolate) |
@@ -46,7 +45,6 @@ class IsolateSaver { |
DISALLOW_COPY_AND_ASSIGN(IsolateSaver); |
}; |
- |
static bool PostCObjectHelper(Dart_Port port_id, Dart_CObject* message) { |
uint8_t* buffer = NULL; |
ApiMessageWriter writer(&buffer, malloc_allocator); |
@@ -62,12 +60,10 @@ static bool PostCObjectHelper(Dart_Port port_id, Dart_CObject* message) { |
port_id, buffer, writer.BytesWritten(), Message::kNormalPriority)); |
} |
- |
DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message) { |
return PostCObjectHelper(port_id, message); |
} |
- |
DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message) { |
if (Smi::IsValid(message)) { |
return PortMap::PostMessage( |
@@ -79,7 +75,6 @@ DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message) { |
return PostCObjectHelper(port_id, &cobj); |
} |
- |
DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
Dart_NativeMessageHandler handler, |
bool handle_concurrently) { |
@@ -101,7 +96,6 @@ DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
return port_id; |
} |
- |
DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id) { |
// Close the native port without a current isolate. |
IsolateSaver saver(Isolate::Current()); |
@@ -110,7 +104,6 @@ DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id) { |
return PortMap::ClosePort(native_port_id); |
} |
- |
// --- Verification tools --- |
static void CompileAll(Thread* thread, Dart_Handle* result) { |
@@ -123,7 +116,6 @@ static void CompileAll(Thread* thread, Dart_Handle* result) { |
} |
} |
- |
DART_EXPORT Dart_Handle Dart_CompileAll() { |
DARTSCOPE(Thread::Current()); |
Dart_Handle result = Api::CheckAndFinalizePendingClasses(T); |
@@ -135,7 +127,6 @@ DART_EXPORT Dart_Handle Dart_CompileAll() { |
return result; |
} |
- |
static void ParseAll(Thread* thread, Dart_Handle* result) { |
ASSERT(thread != NULL); |
const Error& error = Error::Handle(thread->zone(), Library::ParseAll(thread)); |
@@ -146,7 +137,6 @@ static void ParseAll(Thread* thread, Dart_Handle* result) { |
} |
} |
- |
DART_EXPORT Dart_Handle Dart_ParseAll() { |
DARTSCOPE(Thread::Current()); |
Dart_Handle result = Api::CheckAndFinalizePendingClasses(T); |