-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Edge type + Fix slice of pointer Attribute
- Loading branch information
Vincent Rasquier
committed
Dec 14, 2017
1 parent
4ae2d74
commit 96bf68c
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package asm | ||
|
||
const ( | ||
JUMP = 0 | ||
EXCEPTION = 0x7FFFFFFF | ||
) | ||
|
||
// Edge An edge in the control flow graph of a method. Each node of this graph is a basic block, | ||
// represented with the Label corresponding to its first instruction. Each edge goes from one node | ||
// to another, i.e. from one basic block to another (called the predecessor and successor blocks, | ||
// respectively). An edge corresponds either to a jump or ret instruction or to an exception | ||
// handler. | ||
type Edge struct { | ||
info int | ||
successor *Label | ||
nextEdge *Edge | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters