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") { ...@@ -2306,9 +2306,7 @@ static_library("http_server") {
"server/web_socket_encoder.cc", "server/web_socket_encoder.cc",
"server/web_socket_encoder.h", "server/web_socket_encoder.h",
] ]
configs += [ configs += [ "//build/config/compiler:wexit_time_destructors" ]
"//build/config/compiler:wexit_time_destructors",
]
deps = [ deps = [
":net", ":net",
"//base", "//base",
...@@ -2660,9 +2658,7 @@ static_library("test_support") { ...@@ -2660,9 +2658,7 @@ static_library("test_support") {
"url_request/url_request_test_util.h", "url_request/url_request_test_util.h",
] ]
configs += [ configs += [ "//build/config:precompiled_headers" ]
"//build/config:precompiled_headers",
]
public_deps = [ public_deps = [
":traffic_annotation", ":traffic_annotation",
...@@ -2769,6 +2765,7 @@ if (use_v8_in_net) { ...@@ -2769,6 +2765,7 @@ if (use_v8_in_net) {
configs += [ configs += [
"//build/config/compiler:wexit_time_destructors", "//build/config/compiler:wexit_time_destructors",
"//tools/v8_context_snapshot:use_v8_context_snapshot",
"//v8:external_startup_data", "//v8:external_startup_data",
] ]
...@@ -2779,6 +2776,7 @@ if (use_v8_in_net) { ...@@ -2779,6 +2776,7 @@ if (use_v8_in_net) {
deps = [ deps = [
"//base", "//base",
"//gin", "//gin",
"//tools/v8_context_snapshot",
"//url", "//url",
"//v8", "//v8",
] ]
...@@ -5307,9 +5305,7 @@ test("net_unittests") { ...@@ -5307,9 +5305,7 @@ test("net_unittests") {
] ]
net_unfiltered_sources = [] net_unfiltered_sources = []
configs += [ configs += [ "//build/config:precompiled_headers" ]
"//build/config:precompiled_headers",
]
defines = [] defines = []
deps = [ deps = [
......
...@@ -375,7 +375,10 @@ class SharedIsolateFactory { ...@@ -375,7 +375,10 @@ class SharedIsolateFactory {
#ifdef V8_USE_EXTERNAL_STARTUP_DATA #ifdef V8_USE_EXTERNAL_STARTUP_DATA
gin::V8Initializer::LoadV8Snapshot(); gin::V8Initializer::LoadV8Snapshot();
gin::V8Initializer::LoadV8Natives(); 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, // 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. // 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