mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
make_snapshot should be private
Now deno.h doesn't export v8.h and is self contained.
This commit is contained in:
parent
12cded8af6
commit
a6880dad65
4 changed files with 6 additions and 8 deletions
|
@ -16,6 +16,10 @@ static intptr_t external_references[] = {reinterpret_cast<intptr_t>(Print),
|
|||
reinterpret_cast<intptr_t>(Recv),
|
||||
reinterpret_cast<intptr_t>(Send), 0};
|
||||
|
||||
v8::StartupData make_snapshot(v8::StartupData* prev_natives_blob,
|
||||
v8::StartupData* prev_snapshot_blob,
|
||||
const char* js_filename, const char* js_source);
|
||||
|
||||
// deno_s = Wrapped Isolate.
|
||||
struct deno_s {
|
||||
v8::Isolate* isolate;
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
#ifndef INCLUDE_DENO_H_
|
||||
#define INCLUDE_DENO_H_
|
||||
|
||||
#include <string>
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace deno {
|
||||
|
||||
// Data that gets transmitted.
|
||||
|
@ -28,10 +25,6 @@ void v8_set_flags(int* argc, char** argv);
|
|||
// Constructors:
|
||||
Deno* from_snapshot(void* data, RecvCallback cb);
|
||||
|
||||
v8::StartupData make_snapshot(v8::StartupData* prev_natives_blob,
|
||||
v8::StartupData* prev_snapshot_blob,
|
||||
const char* js_filename, const char* js_source);
|
||||
|
||||
void* deno_get_data();
|
||||
|
||||
// Returns nonzero on error.
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "v8/include/v8.h"
|
||||
|
||||
#include "include/deno.h"
|
||||
#include "./deno_internal.h"
|
||||
|
||||
class StartupDataCppWriter {
|
||||
public:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
cd `dirname "$0"`/..
|
||||
clang-format -i -style Google *.cc *.h
|
||||
clang-format -i -style Google *.cc *.h include/*.h
|
||||
gn format BUILD.gn
|
||||
gn format .gn
|
||||
yapf -i tools/*.py
|
||||
|
|
Loading…
Reference in a new issue