summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-02-13 14:23:17 -0500
committerGitHub <noreply@github.com>2019-02-13 14:23:17 -0500
commit8d1567fafbdac8cd76e736d203eacc578d932a94 (patch)
treebaec093eb62be6b77a85d4e54a1c84da9d0fb163
parente782ba1a6fd8342cddd961da9274dbd0244685d1 (diff)
Upgrade V8 to 7.4.158 (#1767)
This is to have access to this fix: https://bugs.chromium.org/p/v8/issues/detail?id=8838 necessary for v8_postmortem_support.
-rw-r--r--gclient_config.py2
-rw-r--r--libdeno/api.cc9
m---------third_party0
3 files changed, 6 insertions, 5 deletions
diff --git a/gclient_config.py b/gclient_config.py
index 658a4d2fe..331f4e95b 100644
--- a/gclient_config.py
+++ b/gclient_config.py
@@ -1,7 +1,7 @@
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
solutions = [{
'url':
- 'https://chromium.googlesource.com/v8/v8.git@7.4.98',
+ 'https://chromium.googlesource.com/v8/v8.git@7.4.158',
'name': 'v8',
'deps_file': 'DEPS',
'custom_deps': {
diff --git a/libdeno/api.cc b/libdeno/api.cc
index 21ece13a6..2601862a2 100644
--- a/libdeno/api.cc
+++ b/libdeno/api.cc
@@ -90,11 +90,12 @@ deno_buf deno_get_snapshot(Deno* d_) {
blob.raw_size};
}
+static std::unique_ptr<v8::Platform> platform;
+
void deno_init() {
- // v8::V8::InitializeICUDefaultLocation(argv[0]);
- // v8::V8::InitializeExternalStartupData(argv[0]);
- auto* p = v8::platform::CreateDefaultPlatform();
- v8::V8::InitializePlatform(p);
+ CHECK_NULL(platform.get());
+ platform = v8::platform::NewDefaultPlatform();
+ v8::V8::InitializePlatform(platform.get());
v8::V8::Initialize();
}
diff --git a/third_party b/third_party
-Subproject 6cb1fd41357d7e26664200f5b891913c14d5536
+Subproject c2745933463333cd2f864614d481881f73447cf