MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / validRegister

Method validRegister

system/lib/libunwind/src/Registers.hpp:129–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129inline bool Registers_x86::validRegister(int regNum) const {
130 if (regNum == UNW_REG_IP)
131 return true;
132 if (regNum == UNW_REG_SP)
133 return true;
134 if (regNum < 0)
135 return false;
136 if (regNum > 7)
137 return false;
138 return true;
139}
140
141inline uint32_t Registers_x86::getRegister(int regNum) const {
142 switch (regNum) {

Callers 2

stepWithDwarfMethod · 0.80
validRegMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected