diff options
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/internal.h b/src/internal.h deleted file mode 100644 index c63ba532a..000000000 --- a/src/internal.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2018 the Deno authors. All rights reserved. MIT license. -#ifndef INTERNAL_H_ -#define INTERNAL_H_ - -#include <string> -#include "deno.h" -#include "third_party/v8/include/v8.h" - -extern "C" { -// deno_s = Wrapped Isolate. -struct deno_s { - v8::Isolate* isolate; - const v8::FunctionCallbackInfo<v8::Value>* currentArgs; - std::string last_exception; - v8::Persistent<v8::Function> recv; - v8::Persistent<v8::Context> context; - deno_recv_cb cb; - void* data; -}; -} - -namespace deno { - -struct InternalFieldData { - uint32_t data; -}; - -void Print(const v8::FunctionCallbackInfo<v8::Value>& args); -void Recv(const v8::FunctionCallbackInfo<v8::Value>& args); -void Send(const v8::FunctionCallbackInfo<v8::Value>& args); -static intptr_t external_references[] = {reinterpret_cast<intptr_t>(Print), - reinterpret_cast<intptr_t>(Recv), - reinterpret_cast<intptr_t>(Send), 0}; - -Deno* NewFromSnapshot(void* data, deno_recv_cb cb); - -void InitializeContext(v8::Isolate* isolate, v8::Local<v8::Context> context, - const char* js_filename, const std::string& js_source, - const std::string* source_map); - -void AddIsolate(Deno* d, v8::Isolate* isolate); - -} // namespace deno -#endif // INTERNAL_H_ |