Debian Codegraph @

js/src/jit/wasm32/MacroAssembler-wasm32.cpp

raw
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 #include "jit/wasm32/MacroAssembler-wasm32.h"
8
9 namespace js::jit {
10
11 void MacroAssembler::subFromStackPtr(Imm32 imm32) { MOZ_CRASH(); }
12
13 //{{{ check_macroassembler_style
14
15 void MacroAssembler::PushBoxed(FloatRegister reg) { MOZ_CRASH(); }
16
17 void MacroAssembler::branchPtrInNurseryChunk(Condition cond, Register ptr,
18 Register temp, Label* label) {
19 MOZ_CRASH();
20 }
21
22 void MacroAssembler::pushReturnAddress() { MOZ_CRASH(); }
23
24 void MacroAssembler::popReturnAddress() { MOZ_CRASH(); }
25
26 CodeOffset MacroAssembler::moveNearAddressWithPatch(Register dest) {
27 MOZ_CRASH();
28 }
29
30 void MacroAssembler::patchNearAddressMove(CodeLocationLabel loc,
31 CodeLocationLabel target) {
32 MOZ_CRASH();
33 }
34
35 size_t MacroAssembler::PushRegsInMaskSizeInBytes(LiveRegisterSet set) {
36 MOZ_CRASH();
37 return 0;
38 }
39
40 void MacroAssembler::PushRegsInMask(LiveRegisterSet set) { MOZ_CRASH(); }
41
42 void MacroAssembler::PopRegsInMaskIgnore(LiveRegisterSet set,
43 LiveRegisterSet ignore) {
44 MOZ_CRASH();
45 }
46
47 void MacroAssembler::PopStackPtr() { MOZ_CRASH(); }
48
49 void MacroAssembler::freeStackTo(uint32_t framePushed) { MOZ_CRASH(); }
50
51 void MacroAssembler::flexibleDivMod32(Register rhs, Register srcDest,
52 Register remOutput, bool isUnsigned,
53 const LiveRegisterSet& volatileLiveRegs) {
54 MOZ_CRASH();
55 }
56
57 void MacroAssembler::flexibleQuotient32(
58 Register rhs, Register srcDest, bool isUnsigned,
59 const LiveRegisterSet& volatileLiveRegs) {
60 MOZ_CRASH();
61 }
62
63 void MacroAssembler::flexibleQuotientPtr(
64 Register rhs, Register srcDest, bool isUnsigned,
65 const LiveRegisterSet& volatileLiveRegs) {
66 MOZ_CRASH();
67 }
68
69 void MacroAssembler::flexibleRemainder32(
70 Register rhs, Register srcDest, bool isUnsigned,
71 const LiveRegisterSet& volatileLiveRegs) {
72 MOZ_CRASH();
73 }
74
75 void MacroAssembler::flexibleRemainderPtr(
76 Register rhs, Register srcDest, bool isUnsigned,
77 const LiveRegisterSet& volatileLiveRegs) {
78 MOZ_CRASH();
79 }
80
81 void MacroAssembler::storeRegsInMask(LiveRegisterSet set, Address dest,
82 Register scratch) {
83 MOZ_CRASH();
84 }
85
86 void MacroAssembler::wasmBoundsCheck32(Condition cond, Register index,
87 Register boundsCheckLimit, Label* ok) {
88 MOZ_CRASH();
89 }
90
91 void MacroAssembler::wasmBoundsCheck32(Condition cond, Register index,
92 Address boundsCheckLimit, Label* ok) {
93 MOZ_CRASH();
94 }
95
96 void MacroAssembler::wasmBoundsCheck64(Condition cond, Register64 index,
97 Register64 boundsCheckLimit, Label* ok) {
98 MOZ_CRASH();
99 }
100
101 void MacroAssembler::wasmBoundsCheck64(Condition cond, Register64 index,
102 Address boundsCheckLimit, Label* ok) {
103 MOZ_CRASH();
104 }
105
106 void MacroAssembler::oolWasmTruncateCheckF32ToI32(
107 FloatRegister input, Register output, TruncFlags flags,
108 const wasm::TrapSiteDesc& trapSiteDesc, Label* rejoin) {
109 MOZ_CRASH();
110 }
111
112 void MacroAssembler::wasmTruncateDoubleToInt64(
113 FloatRegister input, Register64 output, bool isSaturating, Label* oolEntry,
114 Label* oolRejoin, FloatRegister tempDouble) {
115 MOZ_CRASH();
116 }
117
118 void MacroAssembler::wasmTruncateDoubleToUInt64(
119 FloatRegister input, Register64 output, bool isSaturating, Label* oolEntry,
120 Label* oolRejoin, FloatRegister tempDouble) {
121 MOZ_CRASH();
122 }
123
124 void MacroAssembler::oolWasmTruncateCheckF64ToI64(
125 FloatRegister input, Register64 output, TruncFlags flags,
126 const wasm::TrapSiteDesc& trapSiteDesc, Label* rejoin) {
127 MOZ_CRASH();
128 }
129
130 void MacroAssembler::wasmTruncateFloat32ToInt64(
131 FloatRegister input, Register64 output, bool isSaturating, Label* oolEntry,
132 Label* oolRejoin, FloatRegister tempDouble) {
133 MOZ_CRASH();
134 }
135
136 void MacroAssembler::wasmTruncateFloat32ToUInt64(
137 FloatRegister input, Register64 output, bool isSaturating, Label* oolEntry,
138 Label* oolRejoin, FloatRegister tempDouble) {
139 MOZ_CRASH();
140 }
141
142 void MacroAssembler::oolWasmTruncateCheckF32ToI64(
143 FloatRegister input, Register64 output, TruncFlags flags,
144 const wasm::TrapSiteDesc& trapSiteDesc, Label* rejoin) {
145 MOZ_CRASH();
146 }
147
148 void MacroAssembler::oolWasmTruncateCheckF64ToI32(
149 FloatRegister input, Register output, TruncFlags flags,
150 const wasm::TrapSiteDesc& trapSiteDesc, Label* rejoin) {
151 MOZ_CRASH();
152 }
153
154 void MacroAssembler::convertUInt64ToFloat32(Register64 src, FloatRegister dest,
155 Register temp) {
156 MOZ_CRASH();
157 }
158
159 void MacroAssembler::convertInt64ToFloat32(Register64 src, FloatRegister dest) {
160 MOZ_CRASH();
161 }
162
163 bool MacroAssembler::convertUInt64ToDoubleNeedsTemp() { MOZ_CRASH(); }
164
165 void MacroAssembler::convertUInt64ToDouble(Register64 src, FloatRegister dest,
166 Register temp) {
167 MOZ_CRASH();
168 }
169
170 void MacroAssembler::convertInt64ToDouble(Register64 src, FloatRegister dest) {
171 MOZ_CRASH();
172 }
173
174 void MacroAssembler::convertIntPtrToDouble(Register src, FloatRegister dest) {
175 MOZ_CRASH();
176 }
177
178 void MacroAssembler::wasmAtomicLoad64(const wasm::MemoryAccessDesc& access,
179 const Address& mem, Register64 temp,
180 Register64 output) {
181 MOZ_CRASH();
182 }
183
184 void MacroAssembler::wasmAtomicLoad64(const wasm::MemoryAccessDesc& access,
185 const BaseIndex& mem, Register64 temp,
186 Register64 output) {
187 MOZ_CRASH();
188 }
189
190 void MacroAssembler::patchNopToCall(uint8_t* call, uint8_t* target) {
191 MOZ_CRASH();
192 }
193
194 void MacroAssembler::patchCallToNop(uint8_t* call) { MOZ_CRASH(); }
195
196 void MacroAssembler::patchCall(uint32_t callerOffset, uint32_t calleeOffset) {
197 MOZ_CRASH();
198 }
199
200 CodeOffset MacroAssembler::farJumpWithPatch() {
201 MOZ_CRASH();
202 return CodeOffset(0);
203 }
204
205 void MacroAssembler::patchFarJump(CodeOffset farJump, uint32_t targetOffset) {
206 MOZ_CRASH();
207 }
208
209 CodeOffset MacroAssembler::call(Register reg) {
210 MOZ_CRASH();
211 return CodeOffset(0);
212 }
213
214 CodeOffset MacroAssembler::call(Label* label) {
215 MOZ_CRASH();
216 return CodeOffset(0);
217 }
218
219 CodeOffset MacroAssembler::call(wasm::SymbolicAddress imm) {
220 MOZ_CRASH();
221 return CodeOffset(0);
222 }
223
224 CodeOffset MacroAssembler::callWithPatch() {
225 MOZ_CRASH();
226 return CodeOffset(0);
227 }
228
229 CodeOffset MacroAssembler::nopPatchableToCall() {
230 MOZ_CRASH();
231 return CodeOffset(0);
232 }
233
234 FaultingCodeOffset MacroAssembler::wasmTrapInstruction() {
235 MOZ_CRASH();
236 return FaultingCodeOffset();
237 }
238
239 template void MacroAssembler::storeUnboxedValue(const ConstantOrRegister& value,
240 MIRType valueType,
241 const Address& dest);
242
243 template void MacroAssembler::storeUnboxedValue(
244 const ConstantOrRegister& value, MIRType valueType,
245 const BaseObjectElementIndex& dest);
246
247 template <typename T>
248 void MacroAssembler::storeUnboxedValue(const ConstantOrRegister& value,
249 MIRType valueType, const T& dest) {
250 MOZ_CRASH();
251 }
252
253 uint32_t MacroAssembler::pushFakeReturnAddress(Register scratch) {
254 MOZ_CRASH();
255 }
256
257 void MacroAssembler::Pop(Register reg) { MOZ_CRASH(); }
258
259 void MacroAssembler::Pop(FloatRegister t) { MOZ_CRASH(); }
260
261 void MacroAssembler::Pop(const ValueOperand& val) { MOZ_CRASH(); }
262
263 void MacroAssembler::Push(Register reg) { MOZ_CRASH(); }
264
265 void MacroAssembler::Push(const Imm32 imm) { MOZ_CRASH(); }
266
267 void MacroAssembler::Push(const ImmWord imm) { MOZ_CRASH(); }
268
269 void MacroAssembler::Push(const ImmPtr imm) { MOZ_CRASH(); }
270
271 void MacroAssembler::Push(const ImmGCPtr ptr) { MOZ_CRASH(); }
272
273 void MacroAssembler::Push(FloatRegister reg) { MOZ_CRASH(); }
274
275 void MacroAssembler::wasmTruncateFloat32ToInt32(FloatRegister input,
276 Register output,
277 bool isSaturating,
278 Label* oolEntry) {
279 MOZ_CRASH();
280 }
281
282 void MacroAssembler::wasmTruncateFloat32ToUInt32(FloatRegister input,
283 Register output,
284 bool isSaturating,
285 Label* oolEntry) {
286 MOZ_CRASH();
287 }
288
289 void MacroAssembler::wasmTruncateDoubleToUInt32(FloatRegister input,
290 Register output,
291 bool isSaturating,
292 Label* oolEntry) {
293 MOZ_CRASH();
294 }
295
296 void MacroAssembler::wasmTruncateDoubleToInt32(FloatRegister input,
297 Register output,
298 bool isSaturating,
299 Label* oolEntry) {
300 MOZ_CRASH();
301 }
302
303 void MacroAssembler::wasmAtomicExchange64(const wasm::MemoryAccessDesc& access,
304 const Address& mem, Register64 value,
305 Register64 output) {
306 MOZ_CRASH();
307 }
308
309 void MacroAssembler::wasmAtomicExchange64(const wasm::MemoryAccessDesc& access,
310 const BaseIndex& mem,
311 Register64 value, Register64 output) {
312 MOZ_CRASH();
313 }
314
315 void MacroAssembler::atomicPause() { MOZ_CRASH(); }
316
317 void MacroAssembler::speculationBarrier() { MOZ_CRASH(); }
318
319 void MacroAssembler::shiftIndex32AndAdd(Register indexTemp32, int shift,
320 Register pointer) {
321 MOZ_CRASH();
322 }
323
324 void MacroAssembler::setupUnalignedABICall(Register scratch) { MOZ_CRASH(); }
325
326 void MacroAssembler::enterFakeExitFrameForWasm(Register cxreg, Register scratch,
327 ExitFrameType type) {
328 MOZ_CRASH();
329 }
330
331 CodeOffset MacroAssembler::sub32FromMemAndBranchIfNegativeWithPatch(
332 Address address, Label* label) {
333 MOZ_CRASH();
334 }
335
336 void MacroAssembler::patchSub32FromMemAndBranchIfNegative(CodeOffset offset,
337 Imm32 imm) {
338 MOZ_CRASH();
339 }
340
341 void MacroAssembler::floorFloat32ToInt32(FloatRegister src, Register dest,
342 Label* fail) {
343 MOZ_CRASH();
344 }
345
346 void MacroAssembler::floorDoubleToInt32(FloatRegister src, Register dest,
347 Label* fail) {
348 MOZ_CRASH();
349 }
350
351 void MacroAssembler::ceilFloat32ToInt32(FloatRegister src, Register dest,
352 Label* fail) {
353 MOZ_CRASH();
354 }
355
356 void MacroAssembler::ceilDoubleToInt32(FloatRegister src, Register dest,
357 Label* fail) {
358 MOZ_CRASH();
359 }
360
361 void MacroAssembler::roundFloat32ToInt32(FloatRegister src, Register dest,
362 FloatRegister temp, Label* fail) {
363 MOZ_CRASH();
364 }
365
366 void MacroAssembler::roundDoubleToInt32(FloatRegister src, Register dest,
367 FloatRegister temp, Label* fail) {
368 MOZ_CRASH();
369 }
370
371 void MacroAssembler::truncFloat32ToInt32(FloatRegister src, Register dest,
372 Label* fail) {
373 MOZ_CRASH();
374 }
375
376 void MacroAssembler::truncDoubleToInt32(FloatRegister src, Register dest,
377 Label* fail) {
378 MOZ_CRASH();
379 }
380
381 void MacroAssembler::nearbyIntDouble(RoundingMode mode, FloatRegister src,
382 FloatRegister dest) {
383 MOZ_CRASH();
384 }
385
386 void MacroAssembler::nearbyIntFloat32(RoundingMode mode, FloatRegister src,
387 FloatRegister dest) {
388 MOZ_CRASH();
389 }
390
391 void MacroAssembler::copySignDouble(FloatRegister lhs, FloatRegister rhs,
392 FloatRegister output) {
393 MOZ_CRASH();
394 }
395
396 void MacroAssembler::branchTestValue(Condition cond, const ValueOperand& lhs,
397 const Value& rhs, Label* label) {
398 MOZ_CRASH();
399 }
400
401 void MacroAssembler::branchTestNaNValue(Condition cond, const ValueOperand& val,
402 Register temp, Label* label) {
403 MOZ_CRASH();
404 }
405
406 void MacroAssembler::branchValueIsNurseryCell(Condition cond,
407 const Address& address,
408 Register temp, Label* label) {
409 MOZ_CRASH();
410 }
411
412 void MacroAssembler::branchValueIsNurseryCell(Condition cond,
413 ValueOperand value, Register temp,
414 Label* label) {
415 MOZ_CRASH();
416 }
417
418 void MacroAssembler::callWithABINoProfiler(Register fun, ABIType result) {
419 MOZ_CRASH();
420 }
421
422 void MacroAssembler::callWithABINoProfiler(const Address& fun, ABIType result) {
423 MOZ_CRASH();
424 }
425
426 void MacroAssembler::call(const Address& addr) { MOZ_CRASH(); }
427
428 void MacroAssembler::call(ImmWord imm) { MOZ_CRASH(); }
429
430 void MacroAssembler::call(ImmPtr imm) { MOZ_CRASH(); }
431
432 void MacroAssembler::call(JitCode* c) { MOZ_CRASH(); }
433
434 void MacroAssembler::callWithABIPost(uint32_t stackAdjust, ABIType result,
435 bool callFromWasm) {
436 MOZ_CRASH();
437 }
438
439 void MacroAssembler::callWithABIPre(uint32_t* stackAdjust, bool callFromWasm) {
440 MOZ_CRASH();
441 }
442
443 void MacroAssembler::comment(const char* msg) { MOZ_CRASH(); }
444
445 void MacroAssembler::flush() { MOZ_CRASH(); }
446
447 void MacroAssembler::loadStoreBuffer(Register ptr, Register buffer) {
448 MOZ_CRASH();
449 }
450
451 void MacroAssembler::moveValue(const ValueOperand& src,
452 const ValueOperand& dest) {
453 MOZ_CRASH();
454 }
455
456 void MacroAssembler::moveValue(const Value& src, const ValueOperand& dest) {
457 MOZ_CRASH();
458 }
459
460 void MacroAssembler::wasmCompareExchange64(const wasm::MemoryAccessDesc& access,
461 const Address& mem,
462 Register64 expected,
463 Register64 replacement,
464 Register64 output) {
465 MOZ_CRASH();
466 }
467
468 void MacroAssembler::wasmCompareExchange64(const wasm::MemoryAccessDesc& access,
469 const BaseIndex& mem,
470 Register64 expected,
471 Register64 replacement,
472 Register64 output) {
473 MOZ_CRASH();
474 }
475
476 void MacroAssembler::wasmMarkCallAsSlow() { MOZ_CRASH(); }
477
478 void MacroAssembler::wasmCheckSlowCallsite(Register ra, Label* notSlow,
479 Register temp1, Register temp2) {
480 MOZ_CRASH();
481 }
482
483 CodeOffset MacroAssembler::wasmMarkedSlowCall(const wasm::CallSiteDesc& desc,
484 const Register reg) {
485 MOZ_CRASH();
486 }
487
488 //}}} check_macroassembler_style
489
490 void MacroAssemblerWasm32::executableCopy(void* buffer) { MOZ_CRASH(); }
491
492 void MacroAssemblerWasm32::jump(Label* label) { MOZ_CRASH(); }
493
494 void MacroAssemblerWasm32::writeCodePointer(CodeLabel* label) { MOZ_CRASH(); }
495
496 void MacroAssemblerWasm32::haltingAlign(size_t) { MOZ_CRASH(); }
497
498 void MacroAssemblerWasm32::nopAlign(size_t) { MOZ_CRASH(); }
499
500 void MacroAssemblerWasm32::checkStackAlignment() { MOZ_CRASH(); }
501
502 uint32_t MacroAssemblerWasm32::currentOffset() {
503 MOZ_CRASH();
504 return 0;
505 }
506
507 void MacroAssemblerWasm32::nop() { MOZ_CRASH(); }
508
509 void MacroAssemblerWasm32::breakpoint() { MOZ_CRASH(); }
510
511 void MacroAssemblerWasm32::abiret() { MOZ_CRASH(); }
512
513 void MacroAssemblerWasm32::ret() { MOZ_CRASH(); }
514
515 CodeOffset MacroAssemblerWasm32::toggledJump(Label*) { MOZ_CRASH(); }
516
517 CodeOffset MacroAssemblerWasm32::toggledCall(JitCode*, bool) { MOZ_CRASH(); }
518
519 size_t MacroAssemblerWasm32::ToggledCallSize(uint8_t*) { MOZ_CRASH(); }
520
521 void MacroAssemblerWasm32::finish() { MOZ_CRASH(); }
522
523 void MacroAssemblerWasm32::pushValue(ValueOperand val) { MOZ_CRASH(); }
524
525 void MacroAssemblerWasm32::popValue(ValueOperand) { MOZ_CRASH(); }
526
527 void MacroAssemblerWasm32::tagValue(JSValueType, Register, ValueOperand) {
528 MOZ_CRASH();
529 }
530
531 void MacroAssemblerWasm32::retn(Imm32 n) { MOZ_CRASH(); }
532
533 void MacroAssemblerWasm32::push(Register reg) { MOZ_CRASH(); }
534
535 Address MacroAssemblerWasm32::ToType(const Address& address) { MOZ_CRASH(); }
536
537 } // namespace js::jit