Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit d4d8270

Browse files
committed
Merge branch '6.2'
2 parents 07b06f1 + 7d1d2b7 commit d4d8270

16 files changed

Lines changed: 51 additions & 225 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ lib/libv8/VERSION
1313
/release/**/libv8
1414
/release/**/.vagrant
1515
/release/**/.scaleway
16+
/vendor/.gclient
17+
/vendor/.gclient_entries
18+
/vendor/v8/

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "vendor/depot_tools"]
22
path = vendor/depot_tools
33
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
4-
[submodule "vendor/v8"]
5-
path = vendor/v8
6-
url = https://chromium.googlesource.com/v8/v8.git

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: ruby
22
rvm:
3-
- 2.4.1
4-
- 2.3.4
3+
- 2.4.2
4+
- 2.3.5
55
- 2.2
66
- rbx
77
matrix:
@@ -17,7 +17,7 @@ matrix:
1717
osx_image: xcode6.4
1818
- rvm: 2.4.0
1919
os: osx
20-
osx_image: xcode9
20+
osx_image: xcode9.1
2121
- rvm: system
2222
os: osx
2323
osx_image: xcode8.2
@@ -29,7 +29,7 @@ matrix:
2929
osx_image: xcode6.4
3030
- rvm: system
3131
os: osx
32-
osx_image: xcode9
32+
osx_image: xcode9.1
3333
- rvm: ruby-2.3.1-clang
3434
env: CXX=clang++
3535
- rvm: 1.9.3

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ end
102102
desc "clean up artifacts of the build"
103103
task :clean => [:clean_submodules] do
104104
sh "rm -rf pkg"
105+
sh "rm -rf vendor/v8"
105106
sh "git clean -dxf -e .bundle -e vendor/bundle"
106107
end
107108

ext/libv8/builder.rb

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,19 @@ def source_version
112112
#
113113
def setup_build_deps!
114114
ENV['PATH'] = "#{File.expand_path('../../../vendor/depot_tools', __FILE__)}:#{ENV['PATH']}"
115-
Dir.chdir(File.expand_path('../../../vendor/v8', __FILE__)) do
116-
unless system "git checkout #{source_version}"
117-
fail "unable to checkout source for v8 #{source_version}"
115+
Dir.chdir(File.expand_path('../../../vendor', __FILE__)) do
116+
unless Dir.exists? 'v8'
117+
system "env #{gyp_defines} fetch v8" or fail "unable to fetch v8 source"
118+
else
119+
system "env #{gyp_defines} gclient fetch" or fail "could not fetch v8 build dependencies commits"
120+
end
121+
Dir.chdir('v8') do
122+
unless system "git checkout #{source_version}"
123+
fail "unable to checkout source for v8 #{source_version}"
124+
end
125+
system "env #{gyp_defines} gclient sync" or fail "could not sync v8 build dependencies"
126+
system "git checkout Makefile" # Work around a weird bug on FreeBSD
118127
end
119-
system "env #{gyp_defines} gclient sync -n" or fail "could not sync v8 build dependencies"
120-
system "git checkout Makefile" # Work around a weird bug on FreeBSD
121128
end
122129
end
123130

ext/libv8/paths.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def include_paths
1111
end
1212

1313
def object_paths
14-
[:base, :libbase, :snapshot, :libplatform, :libsampler].map do |name|
14+
[:base, :libplatform, :libsampler, :libbase, :snapshot].map do |name|
1515
Shellwords.escape libv8_object(name)
1616
end
1717
end

lib/libv8/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Libv8
2-
VERSION = "6.0.286.54.1"
2+
VERSION = "6.2.414.32.0beta1"
33
end
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From 6c28fb0319c5e2e7afad4b5731fc0ded86e1f7e7 Mon Sep 17 00:00:00 2001
1+
From ab2830d1cb3ba231c3ed3de4ed59e19c65e6e1d4 Mon Sep 17 00:00:00 2001
22
From: Petko Bordjukov <bordjukov@gmail.com>
33
Date: Mon, 25 Jul 2016 00:00:19 +0300
4-
Subject: [PATCH 1/5] Build a standalone static library
4+
Subject: [PATCH 1/4] Build a standalone static library
55

66
---
77
gypfiles/standalone.gypi | 3 +++
88
1 file changed, 3 insertions(+)
99

1010
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
11-
index 4c805bf643..6a72a23cfb 100644
11+
index 63930d8aef..d0d00d3f67 100644
1212
--- a/gypfiles/standalone.gypi
1313
+++ b/gypfiles/standalone.gypi
14-
@@ -522,6 +522,9 @@
14+
@@ -517,6 +517,9 @@
1515
}], # fastbuild!=0
1616
],
1717
'target_conditions': [
@@ -22,5 +22,5 @@ index 4c805bf643..6a72a23cfb 100644
2222
'defines!': [
2323
'DEBUG',
2424
--
25-
2.13.3
25+
2.14.2
2626

patches/0002-Don-t-compile-unnecessary-stuff.patch

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
From 31d199f67ff88be5576869abcc23ecf219fa1e6f Mon Sep 17 00:00:00 2001
1+
From 8b85dc00cfffe510e51677641586732396fe4cf0 Mon Sep 17 00:00:00 2001
22
From: Petko Bordjukov <bordjukov@gmail.com>
33
Date: Fri, 28 Jul 2017 11:11:08 +0300
4-
Subject: [PATCH 2/5] Don't compile unnecessary stuff
4+
Subject: [PATCH 2/4] Don't compile unnecessary stuff
55

66
---
7-
Makefile | 12 +++---------
7+
Makefile | 9 ++-------
88
gypfiles/all.gyp | 33 ---------------------------------
9-
2 files changed, 3 insertions(+), 42 deletions(-)
9+
2 files changed, 2 insertions(+), 40 deletions(-)
1010

1111
diff --git a/Makefile b/Makefile
12-
index ed5b3a7fab..04eddb5e8a 100644
12+
index eb146ac244..902832af48 100644
1313
--- a/Makefile
1414
+++ b/Makefile
15-
@@ -265,15 +265,9 @@ ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \
16-
android_mipsel android_x87
15+
@@ -268,14 +268,9 @@ ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \
16+
android_mipsel
1717

1818
# List of files that trigger Makefile regeneration:
1919
-GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \
2020
- gypfiles/shim_headers.gypi gypfiles/features.gypi \
2121
- gypfiles/standalone.gypi \
22-
- gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \
22+
+GYPFILES = gypfiles/features.gypi gypfiles/standalone.gypi \
23+
gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \
2324
- test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \
2425
- test/unittests/unittests.gyp src/v8.gyp \
2526
- tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \
26-
- buildtools/third_party/libc++abi/libc++abi.gyp \
27-
- buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \
28-
+GYPFILES = gypfiles/shim_headers.gypi gypfiles/features.gypi \
29-
+ gypfiles/standalone.gypi gypfiles/all.gyp \
30-
+ gypfiles/mac/asan.gyp src/v8.gyp tools/parser-shell.gyp \
31-
src/third_party/vtune/v8vtune.gyp src/d8.gyp
27+
- samples/samples.gyp src/third_party/vtune/v8vtune.gyp src/d8.gyp
28+
+ src/v8.gyp src/d8.gyp
3229

3330
# If vtunejit=on, the v8vtune.gyp will be appended.
31+
ifeq ($(vtunejit), on)
3432
diff --git a/gypfiles/all.gyp b/gypfiles/all.gyp
3533
index bc9d9650eb..96820a0ecc 100644
3634
--- a/gypfiles/all.gyp
@@ -83,5 +81,5 @@ index bc9d9650eb..96820a0ecc 100644
8381
}
8482
]
8583
--
86-
2.13.3
84+
2.14.2
8785

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From fe76837b00357250a01ad71c4cce4b7524dd765f Mon Sep 17 00:00:00 2001
1+
From 6d8fb9964719799a423db755f84dfe582dd0040e Mon Sep 17 00:00:00 2001
22
From: Petko Bordjukov <bordjukov@gmail.com>
33
Date: Mon, 25 Jul 2016 00:05:47 +0300
4-
Subject: [PATCH 3/5] Use the -fPIC flag for the static library
4+
Subject: [PATCH 3/4] Use the -fPIC flag for the static library
55

66
---
77
gypfiles/standalone.gypi | 2 +-
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

1010
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
11-
index 6a72a23cfb..fdf27226ad 100644
11+
index d0d00d3f67..f01bd48596 100644
1212
--- a/gypfiles/standalone.gypi
1313
+++ b/gypfiles/standalone.gypi
14-
@@ -800,7 +800,7 @@
14+
@@ -797,7 +797,7 @@
1515
[ 'visibility=="hidden" and v8_enable_backtrace==0', {
1616
'cflags': [ '-fvisibility=hidden' ],
1717
}],
@@ -21,5 +21,5 @@ index 6a72a23cfb..fdf27226ad 100644
2121
}],
2222
[ 'clang==0 and coverage==1', {
2323
--
24-
2.13.3
24+
2.14.2
2525

0 commit comments

Comments
 (0)