MCPcopy Create free account
hub / github.com/aesthetic0001/js-virtualizer / getBytecodeType

Method getBytecodeType

src/utils/assembler.js:96–108  ·  view source on GitHub ↗
(Literal)

Source from the content-addressed store, hash-verified

94 }
95
96 getBytecodeType(Literal) {
97 switch (typeof Literal) {
98 case 'boolean': {
99 return 'BOOL';
100 }
101 case 'number': {
102 return Number.isInteger(Literal) ? 'DWORD' : 'FLOAT';
103 }
104 case 'string': {
105 return 'STRING';
106 }
107 }
108 }
109
110 getLoadOpcode() {
111 let encoded

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected