Skip to content

Commit be773fc

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. Backport-PR-URL: #33376 PR-URL: #32831 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 7aa41c6 commit be773fc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.2',
39+
'v8_embedder_string': '-node.3',
4040

4141
##### V8 defaults for Node.js #####
4242

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

+1
Original file line numberDiff line numberDiff line change
@@ -4490,6 +4490,7 @@ GlobalAccessFeedback::GlobalAccessFeedback(PropertyCellRef cell,
44904490

44914491
GlobalAccessFeedback::GlobalAccessFeedback(FeedbackSlotKind slot_kind)
44924492
: ProcessedFeedback(kGlobalAccess, slot_kind),
4493+
cell_or_context_(base::nullopt),
44934494
index_and_immutable_(0 /* doesn't matter */) {
44944495
DCHECK(IsGlobalICKind(slot_kind));
44954496
}

deps/v8/src/interpreter/interpreter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Interpreter::NewSourcePositionCollectionJob(
286286
auto job = std::make_unique<InterpreterCompilationJob>(parse_info, literal,
287287
allocator, nullptr);
288288
job->compilation_info()->SetBytecodeArray(existing_bytecode);
289-
return job;
289+
return std::unique_ptr<UnoptimizedCompilationJob> { static_cast<UnoptimizedCompilationJob*>(job.release()) };
290290
}
291291

292292
void Interpreter::ForEachBytecode(

0 commit comments

Comments
 (0)