@@ -1121,8 +1121,7 @@ class TurboshaftAssemblerOpInterface
11211121
11221122 template <typename ... Args>
11231123 explicit TurboshaftAssemblerOpInterface (Args... args)
1124- : GenericAssemblerOpInterface<Next>(args...),
1125- matcher_(Asm().output_graph()) {}
1124+ : matcher_(Asm().output_graph()) {}
11261125
11271126 const OperationMatcher& matcher () const { return matcher_; }
11281127
@@ -2245,11 +2244,11 @@ class TurboshaftAssemblerOpInterface
22452244
22462245 // Helpers to read the most common fields.
22472246 // 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 ());
22502249 }
22512250
2252- V<Word32> LoadInstanceTypeField (V<Map> map) {
2251+ V<Word32> LoadInstanceTypeField (V<v8::internal:: Map> map) {
22532252 return LoadField<Word32>(map, AccessBuilder::ForMapInstanceType ());
22542253 }
22552254
@@ -2849,7 +2848,7 @@ class TurboshaftAssemblerOpInterface
28492848 V<Object> CallRuntime_TransitionElementsKind (Isolate* isolate,
28502849 V<Context> context,
28512850 V<HeapObject> object,
2852- V<Map> target_map) {
2851+ V<v8::internal:: Map> target_map) {
28532852 return CallRuntime<typename RuntimeCallDescriptor::TransitionElementsKind>(
28542853 isolate, context, {object, target_map});
28552854 }
@@ -3267,8 +3266,8 @@ class TurboshaftAssemblerOpInterface
32673266
32683267 void TransitionAndStoreArrayElement (
32693268 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) {
32723271 ReduceIfReachableTransitionAndStoreArrayElement (array, index, value, kind,
32733272 fast_map, double_map);
32743273 }
@@ -3281,17 +3280,17 @@ class TurboshaftAssemblerOpInterface
32813280 }
32823281
32833282 V<Word32> CompareMaps (V<HeapObject> heap_object,
3284- const ZoneRefSet<Map>& maps) {
3283+ const ZoneRefSet<v8::internal:: Map>& maps) {
32853284 return ReduceIfReachableCompareMaps (heap_object, maps);
32863285 }
32873286
32883287 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,
32903289 const FeedbackSource& feedback) {
32913290 ReduceIfReachableCheckMaps (heap_object, frame_state, maps, flags, feedback);
32923291 }
32933292
3294- void AssumeMap (V<HeapObject> heap_object, const ZoneRefSet<Map>& maps) {
3293+ void AssumeMap (V<HeapObject> heap_object, const ZoneRefSet<v8::internal:: Map>& maps) {
32953294 ReduceIfReachableAssumeMap (heap_object, maps);
32963295 }
32973296
@@ -3400,16 +3399,16 @@ class TurboshaftAssemblerOpInterface
34003399 return ReduceIfReachableAssertNotNull (object, type, trap_id);
34013400 }
34023401
3403- V<Map> RttCanon (V<FixedArray> rtts, uint32_t type_index) {
3402+ V<v8::internal:: Map> RttCanon (V<FixedArray> rtts, uint32_t type_index) {
34043403 return ReduceIfReachableRttCanon (rtts, type_index);
34053404 }
34063405
3407- V<Word32> WasmTypeCheck (V<Tagged> object, OptionalV<Map> rtt,
3406+ V<Word32> WasmTypeCheck (V<Tagged> object, OptionalV<v8::internal:: Map> rtt,
34083407 WasmTypeCheckConfig config) {
34093408 return ReduceIfReachableWasmTypeCheck (object, rtt, config);
34103409 }
34113410
3412- V<Tagged> WasmTypeCast (V<Tagged> object, OptionalV<Map> rtt,
3411+ V<Tagged> WasmTypeCast (V<Tagged> object, OptionalV<v8::internal:: Map> rtt,
34133412 WasmTypeCheckConfig config) {
34143413 return ReduceIfReachableWasmTypeCast (object, rtt, config);
34153414 }
@@ -3454,12 +3453,12 @@ class TurboshaftAssemblerOpInterface
34543453 return ReduceIfReachableArrayLength (array, null_check);
34553454 }
34563455
3457- V<HeapObject> WasmAllocateArray (V<Map> rtt, ConstOrV<Word32> length,
3456+ V<HeapObject> WasmAllocateArray (V<v8::internal:: Map> rtt, ConstOrV<Word32> length,
34583457 const wasm::ArrayType* array_type) {
34593458 return ReduceIfReachableWasmAllocateArray (rtt, resolve (length), array_type);
34603459 }
34613460
3462- V<HeapObject> WasmAllocateStruct (V<Map> rtt,
3461+ V<HeapObject> WasmAllocateStruct (V<v8::internal:: Map> rtt,
34633462 const wasm::StructType* struct_type) {
34643463 return ReduceIfReachableWasmAllocateStruct (rtt, struct_type);
34653464 }
@@ -4044,8 +4043,14 @@ class TSAssembler
40444043 : public Assembler<reducer_list<TurboshaftAssemblerOpInterface, Reducers...,
40454044 TSReducerBase>> {
40464045 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
40494054};
40504055
40514056#include " src/compiler/turboshaft/undef-assembler-macros.inc"
0 commit comments