summaryrefslogtreecommitdiffstats
path: root/js/src/jit/none/LIR-none.h
blob: c04578630ec4da4aca458b85e7e57f209cabd427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * vim: set ts=8 sts=2 et sw=2 tw=80:
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef jit_none_LIR_none_h
#define jit_none_LIR_none_h

namespace js {
namespace jit {

class LUnboxFloatingPoint : public LInstruction {
 public:
  LIR_HEADER(UnboxFloatingPoint)
  static const size_t Input = 0;

  MUnbox* mir() const { MOZ_CRASH(); }

  const LDefinition* output() const { MOZ_CRASH(); }
  MIRType type() const { MOZ_CRASH(); }
};

class LTableSwitch : public LInstruction {
 public:
  LIR_HEADER(TableSwitch)
  MTableSwitch* mir() { MOZ_CRASH(); }

  const LAllocation* index() { MOZ_CRASH(); }
  const LDefinition* tempInt() { MOZ_CRASH(); }
  const LDefinition* tempPointer() { MOZ_CRASH(); }
};

class LTableSwitchV : public LInstruction {
 public:
  LIR_HEADER(TableSwitchV)
  MTableSwitch* mir() { MOZ_CRASH(); }

  const LDefinition* tempInt() { MOZ_CRASH(); }
  const LDefinition* tempFloat() { MOZ_CRASH(); }
  const LDefinition* tempPointer() { MOZ_CRASH(); }

  static const size_t InputValue = 0;
};

class LWasmUint32ToFloat32 : public LInstructionHelper<1, 1, 0> {
 public:
  explicit LWasmUint32ToFloat32(const LAllocation&)
      : LInstructionHelper(Opcode::Invalid) {
    MOZ_CRASH();
  }
};

class LUnbox : public LInstructionHelper<1, 2, 0> {
 public:
  MUnbox* mir() const { MOZ_CRASH(); }
  const LAllocation* payload() { MOZ_CRASH(); }
  const LAllocation* type() { MOZ_CRASH(); }
  const char* extraName() const { MOZ_CRASH(); }
};
class LDivI : public LBinaryMath<1> {
 public:
  LDivI(const LAllocation&, const LAllocation&, const LDefinition&)
      : LBinaryMath(Opcode::Invalid) {
    MOZ_CRASH();
  }
  MDiv* mir() const { MOZ_CRASH(); }
};
class LDivPowTwoI : public LInstructionHelper<1, 1, 0> {
 public:
  LDivPowTwoI(const LAllocation&, int32_t)
      : LInstructionHelper(Opcode::Invalid) {
    MOZ_CRASH();
  }
  const LAllocation* numerator() { MOZ_CRASH(); }
  int32_t shift() { MOZ_CRASH(); }
  MDiv* mir() const { MOZ_CRASH(); }
};
class LModI : public LBinaryMath<1> {
 public:
  LModI(const LAllocation&, const LAllocation&, const LDefinition&)
      : LBinaryMath(Opcode::Invalid) {
    MOZ_CRASH();
  }

  const LDefinition* callTemp() { MOZ_CRASH(); }
  MMod* mir() const { MOZ_CRASH(); }
};
class LWasmUint32ToDouble : public LInstructionHelper<1, 1, 0> {
 public:
  explicit LWasmUint32ToDouble(const LAllocation&)
      : LInstructionHelper(Opcode::Invalid) {
    MOZ_CRASH();
  }
};
class LModPowTwoI : public LInstructionHelper<1, 1, 0> {
 public:
  int32_t shift() { MOZ_CRASH(); }
  LModPowTwoI(const LAllocation& lhs, int32_t shift)
      : LInstructionHelper(Opcode::Invalid) {
    MOZ_CRASH();
  }
  MMod* mir() const { MOZ_CRASH(); }
};

class LMulI : public LInstruction {};

}  // namespace jit
}  // namespace js

#endif /* jit_none_LIR_none_h */