|
@@ -770,11 +770,6 @@ func (e *compiledFunctionLiteral) emitGetter(putOnStack bool) {
|
|
needCallee = true
|
|
needCallee = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- lenBefore := len(e.c.scope.names)
|
|
|
|
- namesBefore := make([]string, 0, lenBefore)
|
|
|
|
- for key, _ := range e.c.scope.names {
|
|
|
|
- namesBefore = append(namesBefore, key)
|
|
|
|
- }
|
|
|
|
maxPreambleLen := 2
|
|
maxPreambleLen := 2
|
|
e.c.p.code = make([]instruction, maxPreambleLen)
|
|
e.c.p.code = make([]instruction, maxPreambleLen)
|
|
if needCallee {
|
|
if needCallee {
|
|
@@ -801,7 +796,7 @@ func (e *compiledFunctionLiteral) emitGetter(putOnStack bool) {
|
|
e.c.p.code = e.c.p.code[maxPreambleLen-1:]
|
|
e.c.p.code = e.c.p.code[maxPreambleLen-1:]
|
|
}
|
|
}
|
|
e.c.convertFunctionToStashless(e.c.p.code, paramsCount)
|
|
e.c.convertFunctionToStashless(e.c.p.code, paramsCount)
|
|
- for i, _ := range e.c.p.srcMap {
|
|
|
|
|
|
+ for i := range e.c.p.srcMap {
|
|
e.c.p.srcMap[i].pc -= maxPreambleLen - l
|
|
e.c.p.srcMap[i].pc -= maxPreambleLen - l
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -842,7 +837,7 @@ func (e *compiledFunctionLiteral) emitGetter(putOnStack bool) {
|
|
|
|
|
|
copy(code[l:], e.c.p.code[maxPreambleLen:])
|
|
copy(code[l:], e.c.p.code[maxPreambleLen:])
|
|
e.c.p.code = code
|
|
e.c.p.code = code
|
|
- for i, _ := range e.c.p.srcMap {
|
|
|
|
|
|
+ for i := range e.c.p.srcMap {
|
|
e.c.p.srcMap[i].pc += l - maxPreambleLen
|
|
e.c.p.srcMap[i].pc += l - maxPreambleLen
|
|
}
|
|
}
|
|
}
|
|
}
|