File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 3737
3838 # Reset this number to 0 on major V8 upgrades.
3939 # Increment by one for each non-official patch applied to deps/v8.
40- 'v8_embedder_string' : '-node.3 ' ,
40+ 'v8_embedder_string' : '-node.4 ' ,
4141
4242 ##### V8 defaults for Node.js #####
4343
Original file line number Diff line number Diff line change @@ -879,7 +879,7 @@ ElementAccessFeedback const& JSHeapBroker::ProcessFeedbackMapsForElementAccess(
879879 Tagged<Map> transition_target;
880880
881881 // Don't generate elements kind transitions from stable maps.
882- if (!map.is_stable ()) {
882+ if (!map.is_stable () && possible_transition_targets. begin () != possible_transition_targets. end () ) {
883883 // The lock is needed for UnusedPropertyFields (called deep inside
884884 // FindElementsKindTransitionedMap).
885885 MapUpdaterGuardIfNeeded mumd_scope (this );
Original file line number Diff line number Diff line change @@ -1292,11 +1292,11 @@ class WasmFrame : public TypedFrame {
12921292 FrameSummaries Summarize () const override ;
12931293
12941294 static WasmFrame* cast (StackFrame* frame) {
1295- DCHECK (frame->is_wasm ()
12961295#ifdef V8_ENABLE_DRUMBRAKE
1297- && !frame->is_wasm_interpreter_entry ()
1296+ DCHECK (frame->is_wasm () && !frame->is_wasm_interpreter_entry ());
1297+ #else
1298+ DCHECK (frame->is_wasm ());
12981299#endif // V8_ENABLE_DRUMBRAKE
1299- );
13001300 return static_cast <WasmFrame*>(frame);
13011301 }
13021302
Original file line number Diff line number Diff line change @@ -121,12 +121,10 @@ static_assert(sizeof(UnalignedDoubleMember) == sizeof(double));
121121#define FLEXIBLE_ARRAY_MEMBER (Type, name ) \
122122 using FlexibleDataReturnType = Type[0 ]; \
123123 FlexibleDataReturnType& name () { \
124- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
125124 using ReturnType = Type[0 ]; \
126125 return reinterpret_cast <ReturnType&>(*(this + 1 )); \
127126 } \
128127 const FlexibleDataReturnType& name () const { \
129- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
130128 using ReturnType = Type[0 ]; \
131129 return reinterpret_cast <const ReturnType&>(*(this + 1 )); \
132130 } \
Original file line number Diff line number Diff line change @@ -2735,15 +2735,21 @@ Handle<WasmExportedFunction> WasmExportedFunction::New(
27352735 DirectHandle<WasmFuncRef> func_ref,
27362736 DirectHandle<WasmInternalFunction> internal_function, int arity,
27372737 DirectHandle<Code> export_wrapper) {
2738+ #if V8_ENABLE_DRUMBRAKE
27382739 DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
27392740 (export_wrapper->is_builtin () &&
27402741 (export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2741- #if V8_ENABLE_DRUMBRAKE
27422742 export_wrapper->builtin_id () ==
27432743 Builtin::kGenericJSToWasmInterpreterWrapper ||
2744- #endif // V8_ENABLE_DRUMBRAKE
27452744 export_wrapper->builtin_id () == Builtin::kWasmPromising ||
27462745 export_wrapper->builtin_id () == Builtin::kWasmStressSwitch )));
2746+ #else
2747+ DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
2748+ (export_wrapper->is_builtin () &&
2749+ (export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2750+ export_wrapper->builtin_id () == Builtin::kWasmPromising ||
2751+ export_wrapper->builtin_id () == Builtin::kWasmStressSwitch )));
2752+ #endif // V8_ENABLE_DRUMBRAKE
27472753 int func_index = internal_function->function_index ();
27482754 Factory* factory = isolate->factory ();
27492755 DirectHandle<Map> rtt;
You can’t perform that action at this time.
0 commit comments