Skip to content
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

Feature/sync with latest upstream(also fix mac arm fail) #2

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-18.04, ubuntu-20.04, windows-latest]
os: [macos-latest, ubuntu-20.04, ubuntu-22.04]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: setup
run: cmake -E make_directory ${{runner.workspace}}/build
# Note: `cmake -B ${{runner.workspace}}/build` needs
# cmake 3.13 but Ubuntu 16.04 comes with cmake 3.12.
- name: configure
run: cmake ${{runner.workspace}}/v8-cmake
working-directory: ${{runner.workspace}}/build
- name: build
run: cmake --build ${{runner.workspace}}/build -j 2
- name: test
if: matrix.os != 'windows-latest'
run: ${{runner.workspace}}/build/d8 -e 42
- name: test-windows
if: matrix.os == 'windows-latest'
run: ${{runner.workspace}}/build/Debug/d8 -e 42
shell: powershell
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tasks:
# cmake bug see https://github.com/gitpod-io/workspace-images/issues/1020
- init: sudo apt install cmake -y && mkdir -p build && cd build && cmake -G Ninja .. && cmake --build .
149 changes: 83 additions & 66 deletions CMakeLists.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cmake/GenerateBuiltinsList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function(v8_generate_builtins_list target-dir)
COMMENT "Generating ${directory}"
VERBATIM)
add_custom_command(
COMMAND bytecode_builtins_list_generator ${output}
DEPENDS ${directory}
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/bytecode_builtins_list_generator ${output}
DEPENDS ${directory} bytecode_builtins_list_generator
OUTPUT ${output}
COMMENT "Generating ${output}"
VERBATIM)
Expand Down
510 changes: 0 additions & 510 deletions generated/builtins-generated/bytecodes-builtins-list.h

This file was deleted.

19 changes: 19 additions & 0 deletions patches/fix_gcc_build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Subject: [PATCH] fix gcc build
---
Index: v8/include/v8config.h
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/v8/include/v8config.h b/v8/include/v8config.h
--- a/v8/include/v8config.h (revision 8a773a0c4053aac9a3eb3f7bbd0c54b158f0bf73)
+++ b/v8/include/v8config.h (revision ad265bb8c8fb5a06b81cb4168f39f44f1c519d09)
@@ -402,7 +402,7 @@
// always_inline is available in gcc 4.0 but not very reliable until 4.4.
// Works around "sorry, unimplemented: inlining failed" build errors with
// older compilers.
-# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 1
+# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 0
# define V8_HAS_ATTRIBUTE_NOINLINE 1
# define V8_HAS_ATTRIBUTE_UNUSED 1
# define V8_HAS_ATTRIBUTE_VISIBILITY 1
12 changes: 6 additions & 6 deletions update_v8.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"url": "https://chromium.googlesource.com/v8/v8.git",
"commit": "87c27db79e6a35a6bdedcbfe732f978812bf6ced",
"commit": "07c05c4b8c5e8916e604c09692d7b6e1813c606e",
"/* comment */": "Dependency v8 must be first.",
"branch": "branch-heads/10.2",
"branch": "branch-heads/11.5",
"path": ""
},
{
Expand All @@ -14,25 +14,25 @@
},
{
"url": "https://chromium.googlesource.com/chromium/src/third_party/jinja2.git",
"commit": "ee69aa00ee8536f61db6a451f3858745cf587de6",
"commit": "264c07d7e64f2874434a3b8039e101ddf1b01e7e",
"branch": "master",
"path": "third_party/jinja2"
},
{
"url": "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git",
"commit": "d115b033c4e53666b535cbd1985ffe60badad082",
"commit": "147f65333c38ddd1ebf554e89965c243c8ce50b3",
"branch": "master",
"path": "base/trace_event/common"
},
{
"url": "https://chromium.googlesource.com/chromium/src/third_party/zlib.git",
"commit": "a6d209ab932df0f1c9d5b7dc67cfa74e8a3272c0",
"commit": "14dd4c4455602c9b71a1a89b5cafd1f4030d2e3f",
"branch": "master",
"path": "third_party/zlib"
},
{
"url": "https://chromium.googlesource.com/chromium/src/third_party/markupsafe.git",
"commit": "1b882ef6372b58bfd55a3285f37ed801be9137cd",
"commit": "13f4e8c9e206567eeb13bf585406ddc574005748",
"branch": "master",
"path": "third_party/markupsafe"
},
Expand Down
1 change: 1 addition & 0 deletions v8/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
BasedOnStyle: Google
DerivePointerAlignment: false
MaxEmptyLinesToKeep: 1
IfMacros: ['IF', 'IF_NOT', 'ELSE', 'ELSE_IF']
95 changes: 95 additions & 0 deletions v8/.git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,106 @@
# - Because you must use a hash, you need to append to this list in a follow-up
# CL to the actual reformatting CL that you are trying to ignore.

# objects.h splitting
0604031eb1d01c52b6c1c9ae3012d80b23d74a68
09e405453359000d66cc0faaa102854e626bebeb
766ef168fbcac6bd0728cc2c9bb3ae7cbd74278a
b5a2839b927be04bdb50a236071c11764e4d6400
c911f91b5b6219e038c0117b05a8375bdf3db0b0
1bb48bf91ba8c887884a0fbd674c91f64964d8a5
19da9f24df7b59fec72b9dd8a979ad0ce5639c87
b090d7e7468236ffce0afdb55bb496bf0073f2ee
f40638d148b7a435522d5b714993908061e3b10d
e8a1c25f6afae9b77921abb70fad49da252eb6f0
6fa8283d0e031c9585d190f751907ed45bf85de0
9aa861c4bcfed612039259f93c2cd2b01337e99e
8175648018bd9f70af866f9fa433f1d79644d86b
c7b1ceb801ec7f639a093468d8e6424212cc197c
e39d2cbe1b1baa6513ddce2d73c981e335cc34fb
eda00a5c499b7a83479115eb275a816b8a2ed104
68deca9b418976ca8b3375e81058a9e0a815357f
0525e17847f39f80e3fd163021a58f68d8fcaf06
81a3c699d6eef936452ac3d10c7c59a2c1e38c0c
01452bedfca2b5447a7f62bda87edbbb76259a6e
1baf1050113a5418696839c273e05ea5ad1b5c4d
4b39fe3d608916b1cfea015de287511a1623fc7f
c6effdbba9b301244475553538f6eb1b3d9670b9
71e4c573199466ea4541e3d6b307c9b33d7bb785
efc92f0d4aa77bb90f5b56606b6f0d0819fba4af
a9db2c74b5bae2345ac52be404748954a3b5050d
0a01b6202226bbe99c0b83acf6c5a80344f5fb6a
a6c44361c8f2dc07b935e3f2bb3e0d3ad4f4a383
10d8aab1de430695a69e9d75af6ea42c2cdc9d6d
dd3c4fca2f0a2761b8b95cd47fcd62836d714890
e9c932233980866074025e65051003d1f298516c
2b1f79881c3f0b69bfb9274bda57ea50f7304982
7f031160d71a3d836667dc98288eaff4c94e6f56
490fabb4578f8a3c4096fdccff688c17ed5ed00d
d953b2ab726acca0b3abe90ce090a16d7ccc2ae3
bb514c426b9438cfb1149d219ac4ec2d8d1c8458
dfb453d713d8a05e76f720a6aae2871eec210276
b490fd66b873c89fca37b21eab58502b6367a864
9a71683d9c8ff9470eda6be5b2b11babac7b9863
37945f731c4d800ef788e3c32f8663773a93450e
b90c98fc29a8d896354de4a22c055f6d98376171
35f3e9d0e654e84646a0b98f29e4a2786cdca4b1
260eb5bb9b62ea3d5fa6ad0b0e8c2de75d48bad4
cc2c11441ce352360acce8638a19f58edf361f7d
7be0159e4b1e0b064e215ae4ced34d649cb2552e
95a7cfe0eaabbcff0f730ed60e1805779f6cfe41
8f54d18ba4ad10770e9537a2803459feccfe79a3
f44759d9ff52a3e5563e5f2bb23ee2c08222fcfd
09050c8a967f5f2956305e5d016b304d7bf5e669
c769745d5856a7eb3a0dbe6af5376c7638944364
a1547aa914aeedd7862f74124c18d2bbaf432c36
5f950698c0dc7c36b855961feb929022f74102fb
4aedeb1bd50c12ebcd6cf954c4cbef1205fff5ac
7366d8954cb1bd277d3283241da2fae62b886c48
bc35251f5e55a65c3a4acf7cba52cee505c86a46
4fb60b215801db70c694a799e735b64bfead59bb
03762b8488de0e393077e3f40fe7b63e675b3af3
a8a45d875f0a98b192cf0063ceda12aaf75ddfaf
a48e5ab8804e9e97b5ea577d6f2667bacee92eb2

# Update of quotations in DEPS file.
e50b49a0e38b34e2b28e026f4d1c7e0da0c7bb1a

# Rewrite code base to use "." instead of "->" to access Object members.
878ccb33bd3cf0e6dc018ff8d15843f585ac07be

# Splitting src/ into subfolders
632239011db501e76475d82ff6492f37fa8c1edc
f455f86d899716df3b9550950ce172f5b867619a
24a51e1eee4e286165dd0bba6afb4c35e8177a25
f9a88acbc928f0fc5e9a3acbcd3b4ece52355f3d
dec3298d9cfbe95759774a0e00302a08836b5f3d
a0c3797461810e3159662851e64946e17654236e
b72941e8b0d2843adf768442024d8950da798db1
4c986c625f19e35c95f3492c662822f4695218b4
0fa243af7096ee5b748b194476be2e4efecaec59
786ce26341b7ab11b4d42f1c77202530d5138ad2
a6eeea35cb7ff0c29b6cfdd1c786f382110241ce
be014256adea1552d4a044ef80616cdab6a7d549
93d3b7173fec7d010539057cdbd78d497f09fa9b
5bfe84a0dab60289b3470c080908ce83ac2212d4
a7695520556665ba73ab02c497ab73b162a5fb13
61523c45a335fe3be76498e0b16bf8e7aec0d058
bf372a73d8a5f4029fc9f4f69b675ef0cad80ada
8ad6b335376c6275ffb3361c662a1a45c853f4fc
06bf8261cf2c94fc071652652600b5790f719c05
81a0102fe8586071cc68e9595b26c5c1207ee5b3
5f28539599f6a6a265e18b8c897cc96ccbeec9c4
3253767622a784866dc34aeb7b5d0f02ebdff61e
9ac8b20086f95f1158a1901eefe12e25fd0333e4
3cb560adfe26edb586a0e6e655e5a7c4755cad1a
7bbd0bfe5161d57bcf268716ce4d1ce14d6786e6
c39cabbcbea26891558b81fd2236c38a7aeada08
a3187716d31a0ab9d7051adde6be9bd2b2c6fec1

# Move test/mjsunit/regress-*.js => test/mjsunit/regress/
cb67be1a3842fcf6a0da18aee444e3b7ea789e04

# [include] Split out v8.h
d1b27019d3bf86360ea838c317f8505fac6d3a7e
44fe02ced6e4c6b49d627807e3b3fd0edbbeb36e
ec06bb6ce5641cf65e400ec55b7421f87d04b999
4 changes: 4 additions & 0 deletions v8/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
.clangd
.cpplint-cache
.cproject
.DS_Store
.gclient_entries
.gdb_history
.idea
.jslint-cache
.landmines
.project
Expand Down Expand Up @@ -67,11 +69,13 @@
/third_party/jsoncpp/source
!/third_party/colorama
/third_party/colorama/src
!/third_party/glibc
!/third_party/googletest
/third_party/googletest/src
!/third_party/test262-harness
!/third_party/v8
!/third_party/wasm-api
/tools/builtins-pgo/profiles/*.profile
/tools/clang
/tools/gcmole/bootstrap
/tools/gcmole/gcmole-tools
Expand Down
12 changes: 11 additions & 1 deletion v8/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ no_check_targets = [
"//:cppgc_base",
"//:v8_internal_headers",
"//src/inspector:inspector",
"//test/cctest:cctest_sources",
"//test/cctest:cctest_sources", # 15 errors
"//test/unittests:inspector_unittests_sources", # 2 errors
"//third_party/icu:*",
]

default_args = {
# Overwrite default args declared in the Fuchsia sdk
# Please maintain this in sync with Chromium version in src/.gn
fuchsia_target_api_level = 9

# Disable rust dependencies.
enable_rust = false
}

# These are the list of GN files that run exec_script. This whitelist exists
# to force additional review for new uses of exec_script, which is strongly
# discouraged except for gypi_to_gn calls.
Expand Down
2 changes: 2 additions & 0 deletions v8/.mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
# Please keep the list sorted.

Clemens Backes <[email protected]> Clemens Hammacher <[email protected]>
Jakob Linke <[email protected]>
Jakob Linke <[email protected]> <[email protected]>
Timothy Gu <[email protected]> <[email protected]>
2 changes: 1 addition & 1 deletion v8/.style.yapf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[style]
based_on_style = chromium
based_on_style = yapf
91 changes: 0 additions & 91 deletions v8/.vpython

This file was deleted.

12 changes: 11 additions & 1 deletion v8/.vpython3
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ wheel: <

wheel: <
name: "infra/python/wheels/coverage/${vpython_platform}"
version: "version:5.5.chromium.2"
version: "version:5.5.chromium.3"
>

wheel: <
Expand All @@ -69,3 +69,13 @@ wheel: <
name: "infra/python/wheels/numpy/${vpython_platform}"
version: "version:1.2x.supported.1"
>

wheel: <
name: "infra/python/wheels/protobuf-py3"
version: "version:3.19.3"
>

wheel: <
name: "infra/python/wheels/requests-py2_py3"
version: "version:2.13.0"
>
Loading
Loading