@@ -196,19 +196,19 @@ func (c *compiler) NilNode(_ *ast.NilNode) {
196196
197197func (c * compiler ) IdentifierNode (node * ast.IdentifierNode ) {
198198 if c .mapEnv {
199- c .emit (OpEnvFast , c .addConstant (node .Value ))
199+ c .emit (OpLoadFast , c .addConstant (node .Value ))
200200 } else if len (node .FieldIndex ) > 0 {
201- c .emit (OpEnvField , c .addConstant (& runtime.Field {
201+ c .emit (OpLoadField , c .addConstant (& runtime.Field {
202202 Index : node .FieldIndex ,
203203 Path : []string {node .Value },
204204 }))
205205 } else if node .Method {
206- c .emit (OpEnvMethod , c .addConstant (& runtime.Method {
206+ c .emit (OpLoadMethod , c .addConstant (& runtime.Method {
207207 Name : node .Value ,
208208 Index : node .MethodIndex ,
209209 }))
210210 } else {
211- c .emit (OpEnvConst , c .addConstant (node .Value ))
211+ c .emit (OpLoadConst , c .addConstant (node .Value ))
212212 }
213213 if node .Deref {
214214 c .emit (OpDeref )
@@ -454,7 +454,7 @@ func (c *compiler) MemberNode(node *ast.MemberNode) {
454454 }
455455 index = append (ident .FieldIndex , index ... )
456456 path = append ([]string {ident .Value }, path ... )
457- c .emitLocation (ident .Location (), OpEnvField , c .addConstant (
457+ c .emitLocation (ident .Location (), OpLoadField , c .addConstant (
458458 & runtime.Field {Index : index , Path : path },
459459 ))
460460 goto deref
0 commit comments