Skip to content

v8 7.5.288.22 update instructions #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions 7.4.288.25.patch → 7.5.288.22.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/BUILD.gn b/BUILD.gn
index fddd525297..730127a7ec 100644
index 10fee26420..ba472209e8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1606,6 +1606,8 @@ v8_source_set("v8_base") {
@@ -1958,6 +1958,8 @@ v8_source_set("v8_base_without_compiler") {
"include/v8-wasm-trap-handler-posix.h",
"include/v8.h",
"include/v8config.h",
Expand Down Expand Up @@ -259,7 +259,7 @@ index 0000000000..c8634677ac
+ };
+}
diff --git a/src/inspector/inspector_protocol_config.json b/src/inspector/inspector_protocol_config.json
index c4aa29ce99..3fbe51337b 100644
index c4aa29ce99..299cfbe24a 100644
--- a/src/inspector/inspector_protocol_config.json
+++ b/src/inspector/inspector_protocol_config.json
@@ -26,6 +26,37 @@
Expand All @@ -269,14 +269,14 @@ index c4aa29ce99..3fbe51337b 100644
+ },
+ {
+ "domain": "Page",
+ "exclude": ["getNavigationHistory", "navigateToHistoryEntry", "resetNavigationHistory", "captureScreenshot", "screencastFrameAck", "handleJavaScriptDialog", "setColorPickerEnabled",
+ "exclude": ["getNavigationHistory", "navigateToHistoryEntry", "resetNavigationHistory", "captureScreenshot", "screencastFrameAck", "handleJavaScriptDialog", "setColorPickerEnabled",
+ "getAppManifest", "setControlNavigations", "processNavigation", "printToPDF", "bringToFront", "setDownloadBehavior", "navigate", "crash", "close", "setWebLifecycleState", "captureSnapshot"],
+ "async": ["getResourceContent", "searchInResource"],
+ "exclude_events": ["screencastFrame", "screencastVisibilityChanged", "colorPicked", "interstitialShown", "interstitialHidden", "javascriptDialogOpening", "javascriptDialogClosed", "navigationRequested"]
+ },
+ {
+ "domain": "Network",
+ "exclude": ["clearBrowserCache", "clearBrowserCookies", "getCookies", "getAllCookies", "deleteCookies", "setCookie", "setCookies", "canEmulateNetworkConditions",
+ "exclude": ["clearBrowserCache", "clearBrowserCookies", "getCookies", "getAllCookies", "deleteCookies", "setCookie", "setCookies", "canEmulateNetworkConditions",
+ "setRequestInterception", "continueInterceptedRequest", "getResponseBodyForInterception",
+ "takeResponseBodyForInterceptionAsStream"],
+ "async": ["getResponseBody", "getRequestPostData"]
Expand All @@ -286,7 +286,7 @@ index c4aa29ce99..3fbe51337b 100644
+ },
+ {
+ "domain": "CSS",
+ "async": ["enable"]
+ "async": ["enable"]
+ },
+ {
+ "domain": "Overlay"
Expand All @@ -296,19 +296,20 @@ index c4aa29ce99..3fbe51337b 100644
+ },
+ {
+ "domain": "Security",
+ "include": []
+ "include": []
}
]
},
diff --git a/src/inspector/js_protocol.pdl b/src/inspector/js_protocol.pdl
index 93c988ea30..f4e5262466 100644
index e4715f47ef..e588be7051 100644
--- a/src/inspector/js_protocol.pdl
+++ b/src/inspector/js_protocol.pdl
@@ -1462,3 +1462,3107 @@ deprecated domain Schema
@@ -1478,3 +1478,3108 @@ deprecated domain Schema
returns
# List of supported domains.
array of Domain domains
+
+
+# Actions and events related to the inspected page belong to the page domain.
+domain Page
+ depends on Debugger
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ ln -s $ANDROID_NDK_HOME third_party/android_tools/ndk
ln -s $ANDROID_NDK_HOME third_party/android_ndk
```

* checkout tag 7.4.288.25
* checkout tag 7.5.288.22
```
git checkout 7.4.288.25
git checkout 7.5.288.22
```

* Run sync
Expand Down
27 changes: 16 additions & 11 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ COUNT=0
for CURRENT_ARCH in ${ARCH_ARR[@]}
do
# make fat build
V8_FOLDERS=(v8_base v8_libplatform v8_libbase v8_libsampler v8_external_snapshot v8_initializers v8_init)
V8_FOLDERS=(v8_compiler v8_base_without_compiler v8_libplatform v8_libbase v8_libsampler v8_external_snapshot v8_initializers v8_init torque_generated_initializers)

SECONDS=0
ninja -C $BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE ${V8_FOLDERS[@]} inspector
Expand All @@ -84,21 +84,16 @@ do
CURRENT_BUILD_TOOL=${NDK_BUILD_TOOLS_ARR[$COUNT]}
COUNT=$COUNT+1
V8_FOLDERS_LEN=${#V8_FOLDERS[@]}
LAST_PARAM=""
for CURRENT_V8_FOLDER in ${V8_FOLDERS[@]}
do
LAST_PARAM=${BUILD_DIR_PREFIX}/${CURRENT_ARCH}-${BUILD_TYPE}/obj/${CURRENT_V8_FOLDER}/*.o
eval $CURRENT_BUILD_TOOL/ar r $BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/obj/$CURRENT_V8_FOLDER/lib$CURRENT_V8_FOLDER.a "${LAST_PARAM}"
mv $BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/obj/$CURRENT_V8_FOLDER/lib$CURRENT_V8_FOLDER.a $DIST/$CURRENT_ARCH-$BUILD_TYPE
LAST_PARAM="${LAST_PARAM} ${BUILD_DIR_PREFIX}/${CURRENT_ARCH}-${BUILD_TYPE}/obj/${CURRENT_V8_FOLDER}/*.o"
done

echo "=================================="
echo "=================================="
echo "Preparing libc++ and libc++abi libraries for $CURRENT_ARCH"
echo "=================================="
echo "=================================="
THIRD_PARTY_OUT=$BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/obj/buildtools/third_party
eval $CURRENT_BUILD_TOOL/ar r $DIST/$CURRENT_ARCH-$BUILD_TYPE/libc++.a $THIRD_PARTY_OUT/libc++/libc++/*.o
eval $CURRENT_BUILD_TOOL/ar r $DIST/$CURRENT_ARCH-$BUILD_TYPE/libc++abi.a $THIRD_PARTY_OUT/libc++abi/libc++abi/*.o
LAST_PARAM="${LAST_PARAM} $THIRD_PARTY_OUT/libc++/libc++/*.o $THIRD_PARTY_OUT/libc++abi/libc++abi/*.o"

eval $CURRENT_BUILD_TOOL/ar r $DIST/$CURRENT_ARCH-$BUILD_TYPE/libv8.a "${LAST_PARAM}"

echo "=================================="
echo "=================================="
Expand Down Expand Up @@ -127,6 +122,16 @@ do

INCLUDE="$(pwd)/dist/$CURRENT_ARCH-$BUILD_TYPE/include"
mkdir -p $INCLUDE

SOURCE_DIR=
if [[ $CURRENT_ARCH == "arm64" ]] ;then
SOURCE_DIR=$BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/clang_x64_v8_$CURRENT_ARCH
elif [[ $CURRENT_ARCH == "arm" ]] ;then
SOURCE_DIR=$BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/clang_x86_v8_$CURRENT_ARCH
elif [[ $CURRENT_ARCH == "x86" ]] ;then
SOURCE_DIR=$BUILD_DIR_PREFIX/$CURRENT_ARCH-$BUILD_TYPE/clang_x86
fi

pushd $SOURCE_DIR/..
xxd -i snapshot_blob.bin > $INCLUDE/snapshot_blob.h
xxd -i natives_blob.bin > $INCLUDE/natives_blob.h
Expand Down