Commit f07e903f authored by Hitoshi Yoshida's avatar Hitoshi Yoshida Committed by Commit Bot

net: Make net/ work with v8_context_snapshot.bin

We are planning to replace snapshot_blob.bin with v8_context_snapshot.bin.
This CL makes net/ code to load v8_context_snapshot.bin to work with it.

Bug: 789964, 764576
Change-Id: Ifcbe58d632dd76fd4bcc02182044d1e111f4267a
Reviewed-on: https://chromium-review.googlesource.com/810347Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522648}
parent 23293f02
......@@ -2306,9 +2306,7 @@ static_library("http_server") {
"server/web_socket_encoder.cc",
"server/web_socket_encoder.h",
]
configs += [
"//build/config/compiler:wexit_time_destructors",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
":net",
"//base",
......@@ -2660,9 +2658,7 @@ static_library("test_support") {
"url_request/url_request_test_util.h",
]
configs += [
"//build/config:precompiled_headers",
]
configs += [ "//build/config:precompiled_headers" ]
public_deps = [
":traffic_annotation",
......@@ -2769,6 +2765,7 @@ if (use_v8_in_net) {
configs += [
"//build/config/compiler:wexit_time_destructors",
"//tools/v8_context_snapshot:use_v8_context_snapshot",
"//v8:external_startup_data",
]
......@@ -2779,6 +2776,7 @@ if (use_v8_in_net) {
deps = [
"//base",
"//gin",
"//tools/v8_context_snapshot",
"//url",
"//v8",
]
......@@ -5307,9 +5305,7 @@ test("net_unittests") {
]
net_unfiltered_sources = []
configs += [
"//build/config:precompiled_headers",
]
configs += [ "//build/config:precompiled_headers" ]
defines = []
deps = [
......
......@@ -375,7 +375,10 @@ class SharedIsolateFactory {
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
gin::V8Initializer::LoadV8Snapshot();
gin::V8Initializer::LoadV8Natives();
#endif
#ifdef USE_V8_CONTEXT_SNAPSHOT
gin::V8Initializer::LoadV8ContextSnapshot();
#endif // USE_V8_CONTEXT_SNAPSHOT
#endif // V8_USE_EXTERNAL_STARTUP_DATA
// The performance of the proxy resolver is limited by DNS resolution,
// and not V8, so tune down V8 to use as little memory as possible.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment