Skip to content

Commit 03cc860

Browse files
deps: patch V8 to fix basic sanity check
Debug compilation job has basic sanity check to compile and run a native add-on. In JSHeapBroker::ProcessFeedbackMapsForElementAccess there was an error when constructing MapHandlesSpan with the same begin and end (an empty span). This was fixed by excluding the empty spans from executing that section of the code.
1 parent b41ae49 commit 03cc860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ ElementAccessFeedback const& JSHeapBroker::ProcessFeedbackMapsForElementAccess(
826826
Tagged<Map> transition_target;
827827

828828
// Don't generate elements kind transitions from stable maps.
829-
if (!map.is_stable()) {
829+
if (!map.is_stable() && possible_transition_targets.begin() != possible_transition_targets.end()) {
830830
// The lock is needed for UnusedPropertyFields (called deep inside
831831
// FindElementsKindTransitionedMap).
832832
MapUpdaterGuardIfNeeded mumd_scope(this);

0 commit comments

Comments
 (0)