File tree 5 files changed +12
-9
lines changed
5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 36
36
37
37
# Reset this number to 0 on major V8 upgrades.
38
38
# Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string' : '-node.3 ' ,
39
+ 'v8_embedder_string' : '-node.4 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ ElementAccessFeedback const& JSHeapBroker::ProcessFeedbackMapsForElementAccess(
861
861
Tagged<Map> transition_target;
862
862
863
863
// Don't generate elements kind transitions from stable maps.
864
- if (!map.is_stable ()) {
864
+ if (!map.is_stable () && possible_transition_targets. begin () != possible_transition_targets. end () ) {
865
865
// The lock is needed for UnusedPropertyFields (called deep inside
866
866
// FindElementsKindTransitionedMap).
867
867
MapUpdaterGuardIfNeeded mumd_scope (this );
Original file line number Diff line number Diff line change @@ -1269,11 +1269,11 @@ class WasmFrame : public TypedFrame {
1269
1269
void Summarize (std::vector<FrameSummary>* frames) const override ;
1270
1270
1271
1271
static WasmFrame* cast (StackFrame* frame) {
1272
- DCHECK (frame->is_wasm ()
1273
1272
#ifdef V8_ENABLE_DRUMBRAKE
1274
- && !frame->is_wasm_interpreter_entry ()
1273
+ DCHECK (frame->is_wasm () && !frame->is_wasm_interpreter_entry ());
1274
+ #else
1275
+ DCHECK (frame->is_wasm ());
1275
1276
#endif // V8_ENABLE_DRUMBRAKE
1276
- );
1277
1277
return static_cast <WasmFrame*>(frame);
1278
1278
}
1279
1279
Original file line number Diff line number Diff line change @@ -101,12 +101,10 @@ static_assert(sizeof(UnalignedDoubleMember) == sizeof(double));
101
101
#define FLEXIBLE_ARRAY_MEMBER (Type, name ) \
102
102
using FlexibleDataReturnType = Type[0 ]; \
103
103
FlexibleDataReturnType& name () { \
104
- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
105
104
using ReturnType = Type[0 ]; \
106
105
return reinterpret_cast <ReturnType&>(*(this + 1 )); \
107
106
} \
108
107
const FlexibleDataReturnType& name () const { \
109
- static_assert (alignof (Type) <= alignof (decltype (*this ))); \
110
108
using ReturnType = Type[0 ]; \
111
109
return reinterpret_cast <const ReturnType&>(*(this + 1 )); \
112
110
} \
Original file line number Diff line number Diff line change @@ -2455,14 +2455,19 @@ Handle<WasmExportedFunction> WasmExportedFunction::New(
2455
2455
DirectHandle<WasmFuncRef> func_ref,
2456
2456
DirectHandle<WasmInternalFunction> internal_function, int arity,
2457
2457
DirectHandle<Code> export_wrapper) {
2458
+ #if V8_ENABLE_DRUMBRAKE
2458
2459
DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
2459
2460
(export_wrapper->is_builtin () &&
2460
2461
(export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2461
- #if V8_ENABLE_DRUMBRAKE
2462
2462
export_wrapper->builtin_id () ==
2463
2463
Builtin::kGenericJSToWasmInterpreterWrapper ||
2464
- #endif // V8_ENABLE_DRUMBRAKE
2465
2464
export_wrapper->builtin_id () == Builtin::kWasmPromising )));
2465
+ #else
2466
+ DCHECK (CodeKind::JS_TO_WASM_FUNCTION == export_wrapper->kind () ||
2467
+ (export_wrapper->is_builtin () &&
2468
+ (export_wrapper->builtin_id () == Builtin::kJSToWasmWrapper ||
2469
+ export_wrapper->builtin_id () == Builtin::kWasmPromising )));
2470
+ #endif // V8_ENABLE_DRUMBRAKE
2466
2471
int func_index = internal_function->function_index ();
2467
2472
Factory* factory = isolate->factory ();
2468
2473
const wasm::WasmModule* module = instance_data->module ();
You can’t perform that action at this time.
0 commit comments