Kiwi Engine
VM for interpreter
|
Utility functions for passes. More...
Go to the source code of this file.
Functions | |
struct KEFrame * | KEAddFrameToThisFrame (struct KEFrame *dst, const struct CNFixedString *ident, struct KELineInfo *linfo) |
Add frame if the parent frame does not have it. More... | |
struct KEFrame * | KEAddFrameToFrame (struct KEFrame *dst, struct KEPath *path, struct KELineInfo *linfo) |
Add frame if the parent frame does not have it. More... | |
CNBoolean | KEMergeFrames (struct KEFrame *dst, struct KEFrame *src) |
Merge source frame into destination frame. More... | |
CNBoolean | KEMergeFrameIntoFrame (struct KEFrame *dst, struct KEPath *path, struct KEFrame *src) |
Add frame into the frame. More... | |
Utility functions for passes.
struct KEFrame* KEAddFrameToFrame | ( | struct KEFrame * | dst, |
struct KEPath * | path, | ||
struct KELineInfo * | linfo | ||
) |
Add frame if the parent frame does not have it.
dst | Destination parent frame |
path | Path of the frame to be added |
linfo | Line information of the frame |
struct KEFrame* KEAddFrameToThisFrame | ( | struct KEFrame * | dst, |
const struct CNFixedString * | ident, | ||
struct KELineInfo * | linfo | ||
) |
Add frame if the parent frame does not have it.
dst | Destination parent frame |
ident | Name of the new frame |
linfo | Line information of the frame |
CNBoolean KEMergeFrameIntoFrame | ( | struct KEFrame * | dst, |
struct KEPath * | path, | ||
struct KEFrame * | src | ||
) |
Add frame into the frame.
TRUE | Succeeded |
FALSE | Failed |
dst | Destination program |
path | Path of the source frame |
src | Source frame |
Merge source frame into destination frame.
True | Merge successed |
False | Merge failed |
dst | Destination frame |
src | Source frame |