Skip to content

Commit f26c461

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: #32116 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3906006 commit f26c461

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.1',
39+
'v8_embedder_string': '-node.2',
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
@@ -4626,6 +4626,7 @@ GlobalAccessFeedback::GlobalAccessFeedback(PropertyCellRef cell,
46264626

46274627
GlobalAccessFeedback::GlobalAccessFeedback(FeedbackSlotKind slot_kind)
46284628
: ProcessedFeedback(kGlobalAccess, slot_kind),
4629+
cell_or_context_(base::nullopt),
46294630
index_and_immutable_(0 /* doesn't matter */) {
46304631
DCHECK(IsGlobalICKind(slot_kind));
46314632
}

deps/v8/src/interpreter/interpreter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Interpreter::NewSourcePositionCollectionJob(
314314
auto job = std::make_unique<InterpreterCompilationJob>(
315315
parse_info, literal, allocator, nullptr, local_isolate);
316316
job->compilation_info()->SetBytecodeArray(existing_bytecode);
317-
return job;
317+
return std::unique_ptr<UnoptimizedCompilationJob> { static_cast<UnoptimizedCompilationJob*>(job.release()) };
318318
}
319319

320320
void Interpreter::ForEachBytecode(

0 commit comments

Comments
 (0)