diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 14:18:15 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 14:18:15 +0200 |
commit | 9296b21b87eec3f01bee465fcb2b64c4ea14514b (patch) | |
tree | 9ad1d353de6ffce438fd631b60204b0fc5563a71 /deno2/snapshot_creator.cc | |
parent | a6880dad6534ee9e1637c5098698cf32a4f1527e (diff) |
Use C linkage in deno.h
Diffstat (limited to 'deno2/snapshot_creator.cc')
-rw-r--r-- | deno2/snapshot_creator.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deno2/snapshot_creator.cc b/deno2/snapshot_creator.cc index f904e6679..fc43783e2 100644 --- a/deno2/snapshot_creator.cc +++ b/deno2/snapshot_creator.cc @@ -9,8 +9,8 @@ #include "v8/include/v8.h" -#include "include/deno.h" #include "./deno_internal.h" +#include "include/deno.h" class StartupDataCppWriter { public: @@ -130,9 +130,9 @@ int main(int argc, char** argv) { auto natives_blob = ReadFile(natives_in_bin); auto snapshot_in_blob = ReadFile(snapshot_in_bin); - deno::v8_init(); - auto snapshot_blob = deno::make_snapshot(&natives_blob, &snapshot_in_blob, - js_fn, js_data.data); + deno_init(); + auto snapshot_blob = + deno::MakeSnapshot(&natives_blob, &snapshot_in_blob, js_fn, js_data.data); StartupDataCppWriter nativesWriter("natives", natives_out_cc, natives_blob); nativesWriter.Write(); |