b9c1c92d2d
* dead code elimination phase 1 * combine dead code elimination with return fix code * remove last instruction tracking from compiler code (not needed) * fix a symbol table block scope bug * add some more tests
11 lines
288 B
Go
11 lines
288 B
Go
package compiler
|
|
|
|
import "github.com/d5/tengo/compiler/source"
|
|
|
|
// CompilationScope represents a compiled instructions
|
|
// and the last two instructions that were emitted.
|
|
type CompilationScope struct {
|
|
instructions []byte
|
|
symbolInit map[string]bool
|
|
sourceMap map[int]source.Pos
|
|
}
|