Skip to content

Commit 3cc3ccc

Browse files
ryzokukentargos
authored andcommitted
deps: patch V8 to run on older XCode versions
Patch V8 (compiler/js-heap-broker.cc) to remove the use of an optional property, which is a fairly new C++ feature, since that requires a newer XCode version than the minimum requirement in BUILDING.md and thus breaks CI. PR-URL: #29694 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
1 parent 7854ff3 commit 3cc3ccc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Reset this number to 0 on major V8 upgrades.
4141
# Increment by one for each non-official patch applied to deps/v8.
42-
'v8_embedder_string': '-node.9',
42+
'v8_embedder_string': '-node.10',
4343

4444
##### V8 defaults for Node.js #####
4545

deps/v8/src/compiler/js-heap-broker.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4211,6 +4211,7 @@ GlobalAccessFeedback::GlobalAccessFeedback(PropertyCellRef cell,
42114211

42124212
GlobalAccessFeedback::GlobalAccessFeedback(FeedbackSlotKind slot_kind)
42134213
: ProcessedFeedback(kGlobalAccess, slot_kind),
4214+
cell_or_context_(base::nullopt),
42144215
index_and_immutable_(0 /* doesn't matter */) {
42154216
DCHECK(IsGlobalICKind(slot_kind));
42164217
}

deps/v8/src/interpreter/interpreter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Interpreter::NewSourcePositionCollectionJob(
295295
auto job = std::make_unique<InterpreterCompilationJob>(parse_info, literal,
296296
allocator, nullptr);
297297
job->compilation_info()->SetBytecodeArray(existing_bytecode);
298-
return job;
298+
return std::unique_ptr<UnoptimizedCompilationJob> { static_cast<UnoptimizedCompilationJob*>(job.release()) };
299299
}
300300

301301
void Interpreter::ForEachBytecode(

0 commit comments

Comments
 (0)