@@ -1121,8 +1121,7 @@ class TurboshaftAssemblerOpInterface
1121
1121
1122
1122
template <typename ... Args>
1123
1123
explicit TurboshaftAssemblerOpInterface (Args... args)
1124
- : GenericAssemblerOpInterface<Next>(args...),
1125
- matcher_(Asm().output_graph()) {}
1124
+ : matcher_(Asm().output_graph()) {}
1126
1125
1127
1126
const OperationMatcher& matcher () const { return matcher_; }
1128
1127
@@ -2245,11 +2244,11 @@ class TurboshaftAssemblerOpInterface
2245
2244
2246
2245
// Helpers to read the most common fields.
2247
2246
// TODO(nicohartmann@): Strengthen this to `V<HeapObject>`.
2248
- V<Map> LoadMapField (V<Object> object) {
2249
- return LoadField<Map>(object, AccessBuilder::ForMap ());
2247
+ V<v8::internal:: Map> LoadMapField (V<Object> object) {
2248
+ return LoadField<v8::internal:: Map>(object, AccessBuilder::ForMap ());
2250
2249
}
2251
2250
2252
- V<Word32> LoadInstanceTypeField (V<Map> map) {
2251
+ V<Word32> LoadInstanceTypeField (V<v8::internal:: Map> map) {
2253
2252
return LoadField<Word32>(map, AccessBuilder::ForMapInstanceType ());
2254
2253
}
2255
2254
@@ -2849,7 +2848,7 @@ class TurboshaftAssemblerOpInterface
2849
2848
V<Object> CallRuntime_TransitionElementsKind (Isolate* isolate,
2850
2849
V<Context> context,
2851
2850
V<HeapObject> object,
2852
- V<Map> target_map) {
2851
+ V<v8::internal:: Map> target_map) {
2853
2852
return CallRuntime<typename RuntimeCallDescriptor::TransitionElementsKind>(
2854
2853
isolate, context, {object, target_map});
2855
2854
}
@@ -3267,8 +3266,8 @@ class TurboshaftAssemblerOpInterface
3267
3266
3268
3267
void TransitionAndStoreArrayElement (
3269
3268
V<Object> array, V<WordPtr> index, OpIndex value,
3270
- TransitionAndStoreArrayElementOp::Kind kind, MaybeHandle<Map> fast_map,
3271
- MaybeHandle<Map> double_map) {
3269
+ TransitionAndStoreArrayElementOp::Kind kind, MaybeHandle<v8::internal:: Map> fast_map,
3270
+ MaybeHandle<v8::internal:: Map> double_map) {
3272
3271
ReduceIfReachableTransitionAndStoreArrayElement (array, index , value, kind,
3273
3272
fast_map, double_map);
3274
3273
}
@@ -3281,17 +3280,17 @@ class TurboshaftAssemblerOpInterface
3281
3280
}
3282
3281
3283
3282
V<Word32> CompareMaps (V<HeapObject> heap_object,
3284
- const ZoneRefSet<Map>& maps) {
3283
+ const ZoneRefSet<v8::internal:: Map>& maps) {
3285
3284
return ReduceIfReachableCompareMaps (heap_object, maps);
3286
3285
}
3287
3286
3288
3287
void CheckMaps (V<HeapObject> heap_object, OpIndex frame_state,
3289
- const ZoneRefSet<Map>& maps, CheckMapsFlags flags,
3288
+ const ZoneRefSet<v8::internal:: Map>& maps, CheckMapsFlags flags,
3290
3289
const FeedbackSource& feedback) {
3291
3290
ReduceIfReachableCheckMaps (heap_object, frame_state, maps, flags, feedback);
3292
3291
}
3293
3292
3294
- void AssumeMap (V<HeapObject> heap_object, const ZoneRefSet<Map>& maps) {
3293
+ void AssumeMap (V<HeapObject> heap_object, const ZoneRefSet<v8::internal:: Map>& maps) {
3295
3294
ReduceIfReachableAssumeMap (heap_object, maps);
3296
3295
}
3297
3296
@@ -3400,16 +3399,16 @@ class TurboshaftAssemblerOpInterface
3400
3399
return ReduceIfReachableAssertNotNull (object, type, trap_id);
3401
3400
}
3402
3401
3403
- V<Map> RttCanon (V<FixedArray> rtts, uint32_t type_index) {
3402
+ V<v8::internal:: Map> RttCanon (V<FixedArray> rtts, uint32_t type_index) {
3404
3403
return ReduceIfReachableRttCanon (rtts, type_index);
3405
3404
}
3406
3405
3407
- V<Word32> WasmTypeCheck (V<Tagged> object, OptionalV<Map> rtt,
3406
+ V<Word32> WasmTypeCheck (V<Tagged> object, OptionalV<v8::internal:: Map> rtt,
3408
3407
WasmTypeCheckConfig config) {
3409
3408
return ReduceIfReachableWasmTypeCheck (object, rtt, config);
3410
3409
}
3411
3410
3412
- V<Tagged> WasmTypeCast (V<Tagged> object, OptionalV<Map> rtt,
3411
+ V<Tagged> WasmTypeCast (V<Tagged> object, OptionalV<v8::internal:: Map> rtt,
3413
3412
WasmTypeCheckConfig config) {
3414
3413
return ReduceIfReachableWasmTypeCast (object, rtt, config);
3415
3414
}
@@ -3454,12 +3453,12 @@ class TurboshaftAssemblerOpInterface
3454
3453
return ReduceIfReachableArrayLength (array, null_check);
3455
3454
}
3456
3455
3457
- V<HeapObject> WasmAllocateArray (V<Map> rtt, ConstOrV<Word32> length,
3456
+ V<HeapObject> WasmAllocateArray (V<v8::internal:: Map> rtt, ConstOrV<Word32> length,
3458
3457
const wasm::ArrayType* array_type) {
3459
3458
return ReduceIfReachableWasmAllocateArray (rtt, resolve (length), array_type);
3460
3459
}
3461
3460
3462
- V<HeapObject> WasmAllocateStruct (V<Map> rtt,
3461
+ V<HeapObject> WasmAllocateStruct (V<v8::internal:: Map> rtt,
3463
3462
const wasm::StructType* struct_type) {
3464
3463
return ReduceIfReachableWasmAllocateStruct (rtt, struct_type);
3465
3464
}
@@ -4044,8 +4043,14 @@ class TSAssembler
4044
4043
: public Assembler<reducer_list<TurboshaftAssemblerOpInterface, Reducers...,
4045
4044
TSReducerBase>> {
4046
4045
public:
4047
- using Assembler<reducer_list<TurboshaftAssemblerOpInterface, Reducers...,
4048
- TSReducerBase>>::Assembler;
4046
+ #ifdef _WIN32
4047
+ explicit TSAssembler (Graph& input_graph, Graph& output_graph,
4048
+ Zone* phase_zone)
4049
+ : Assembler(input_graph, output_graph, phase_zone) {}
4050
+ #else
4051
+ using Assembler<reducer_list<TurboshaftAssemblerOpInterface, Reducers...,
4052
+ TSReducerBase>>::Assembler;
4053
+ #endif
4049
4054
};
4050
4055
4051
4056
#include " src/compiler/turboshaft/undef-assembler-macros.inc"
0 commit comments