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 37
37
38
38
# Reset this number to 0 on major V8 upgrades.
39
39
# Increment by one for each non-official patch applied to deps/v8.
40
- 'v8_embedder_string' : '-node.3 ' ,
40
+ 'v8_embedder_string' : '-node.4 ' ,
41
41
42
42
##### V8 defaults for Node.js #####
43
43
Original file line number Diff line number Diff line change @@ -879,7 +879,7 @@ ElementAccessFeedback const& JSHeapBroker::ProcessFeedbackMapsForElementAccess(
879
879
Tagged<Map> transition_target;
880
880
881
881
// 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 () ) {
883
883
// The lock is needed for UnusedPropertyFields (called deep inside
884
884
// FindElementsKindTransitionedMap).
885
885
MapUpdaterGuardIfNeeded mumd_scope (this );
Original file line number Diff line number Diff line change @@ -1292,11 +1292,11 @@ class WasmFrame : public TypedFrame {
1292
1292
FrameSummaries Summarize () const override ;
1293
1293
1294
1294
static WasmFrame* cast (StackFrame* frame) {
1295
- DCHECK (frame->is_wasm ()
1296
1295
#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 ());
1298
1299
#endif // V8_ENABLE_DRUMBRAKE
1299
- );
1300
1300
return static_cast <WasmFrame*>(frame);
1301
1301
}
1302
1302
Original file line number Diff line number Diff line change @@ -121,12 +121,10 @@ static_assert(sizeof(UnalignedDoubleMember) == sizeof(double));
121
121
#define FLEXIBLE_ARRAY_MEMBER (Type, name ) \
122
122
using FlexibleDataReturnType = Type[0 ]; \
123
123
FlexibleDataReturnType& name () { \
124
- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
125
124
using ReturnType = Type[0 ]; \
126
125
return reinterpret_cast <ReturnType&>(*(this + 1 )); \
127
126
} \
128
127
const FlexibleDataReturnType& name () const { \
129
- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
130
128
using ReturnType = Type[0 ]; \
131
129
return reinterpret_cast <const ReturnType&>(*(this + 1 )); \
132
130
} \
Original file line number Diff line number Diff line change @@ -2721,15 +2721,21 @@ Handle<WasmExportedFunction> WasmExportedFunction::New(
2721
2721
DirectHandle<WasmFuncRef> func_ref,
2722
2722
DirectHandle<WasmInternalFunction> internal_function, int arity,
2723
2723
DirectHandle<Code> export_wrapper) {
2724
+ #if V8_ENABLE_DRUMBRAKE
2724
2725
DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
2725
2726
(export_wrapper->is_builtin () &&
2726
2727
(export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2727
- #if V8_ENABLE_DRUMBRAKE
2728
2728
export_wrapper->builtin_id () ==
2729
2729
Builtin::kGenericJSToWasmInterpreterWrapper ||
2730
- #endif // V8_ENABLE_DRUMBRAKE
2731
2730
export_wrapper->builtin_id () == Builtin::kWasmPromising ||
2732
2731
export_wrapper->builtin_id () == Builtin::kWasmStressSwitch )));
2732
+ #else
2733
+ DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
2734
+ (export_wrapper->is_builtin () &&
2735
+ (export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2736
+ export_wrapper->builtin_id () == Builtin::kWasmPromising ||
2737
+ export_wrapper->builtin_id () == Builtin::kWasmStressSwitch )));
2738
+ #endif // V8_ENABLE_DRUMBRAKE
2733
2739
int func_index = internal_function->function_index ();
2734
2740
Factory* factory = isolate->factory ();
2735
2741
DirectHandle<Map> rtt;
You can’t perform that action at this time.
0 commit comments