Skip to content

Commit e5582f6

Browse files
ryzokukennodejs-ci
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: nodejs/node#29694 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
1 parent 8c2025b commit e5582f6

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
@@ -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.2',
42+
'v8_embedder_string': '-node.3',
4343

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

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

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

44984498
GlobalAccessFeedback::GlobalAccessFeedback(FeedbackSlotKind slot_kind)
44994499
: ProcessedFeedback(kGlobalAccess, slot_kind),
4500+
cell_or_context_(base::nullopt),
45004501
index_and_immutable_(0 /* doesn't matter */) {
45014502
DCHECK(IsGlobalICKind(slot_kind));
45024503
}

deps/v8/src/interpreter/interpreter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Interpreter::NewSourcePositionCollectionJob(
260260
auto job = std::make_unique<InterpreterCompilationJob>(parse_info, literal,
261261
allocator, nullptr);
262262
job->compilation_info()->SetBytecodeArray(existing_bytecode);
263-
return job;
263+
return std::unique_ptr<UnoptimizedCompilationJob> { static_cast<UnoptimizedCompilationJob*>(job.release()) };
264264
}
265265

266266
void Interpreter::ForEachBytecode(

0 commit comments

Comments
 (0)