variant opcodes for PUSHSELF

This commit is contained in:
Roberto Ierusalimschy
1997-12-29 15:35:46 -02:00
parent 498a934abf
commit 4e0bf95622
3 changed files with 17 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
%{
/*
** $Id: lua.stx,v 1.28 1997/12/28 22:48:15 roberto Exp roberto $
** $Id: lua.stx,v 1.29 1997/12/29 17:28:45 roberto Exp roberto $
** Syntax analizer and code generator
** See Copyright Notice in lua.h
*/
@@ -833,7 +833,7 @@ functioncall : funcvalue funcParams
funcvalue : sexp1 { $$ = 0; }
| sexp1 ':' NAME
{
code_oparg(PUSHSELF, 0, string_constant($3, L->currState), 1);
code_oparg(PUSHSELF, 8, string_constant($3, L->currState), 1);
$$ = 1;
}
;