PageRenderTime 62ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/JIT/opcodes/name.h

http://unladen-swallow.googlecode.com/
C++ Header | 31 lines | 21 code | 8 blank | 2 comment | 0 complexity | 5073cc8f827d48004d4fec9379ec14c9 MD5 | raw file
 1// -*- C++ -*-
 2#ifndef OPCODE_NAME_H_
 3#define OPCODE_NAME_H_
 4
 5#ifndef __cplusplus
 6#error This header expects to be included only in C++ source
 7#endif
 8
 9namespace py {
10
11class LlvmFunctionBuilder;
12class LlvmFunctionState;
13
14// This class contains all opcodes used to access variables by name.
15class OpcodeName
16{
17public:
18    OpcodeName(LlvmFunctionBuilder *fbuilder);
19
20    void LOAD_NAME(int index);
21    void STORE_NAME(int index);
22    void DELETE_NAME(int index);
23
24private:
25    LlvmFunctionBuilder *fbuilder_;
26    LlvmFunctionState *state_;
27};
28
29}
30
31#endif /* OPCODE_NAME_H_ */