diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-29 15:35:46 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-29 15:35:46 -0200 |
| commit | 4e0bf95622151cf09a2708b465d6df682ad43284 (patch) | |
| tree | 884d5b225780be9629121046eea600b7451348e6 /lvm.c | |
| parent | 498a934abf763ef1e436663ae40afea4f3a5075a (diff) | |
| download | lua-4e0bf95622151cf09a2708b465d6df682ad43284.tar.gz lua-4e0bf95622151cf09a2708b465d6df682ad43284.tar.bz2 lua-4e0bf95622151cf09a2708b465d6df682ad43284.zip | |
variant opcodes for PUSHSELF
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.18 1997/12/17 20:48:58 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.19 1997/12/23 19:24:19 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -363,7 +363,11 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) | |||
| 363 | aux = next_word(pc); goto pushself; | 363 | aux = next_word(pc); goto pushself; |
| 364 | 364 | ||
| 365 | case PUSHSELF: | 365 | case PUSHSELF: |
| 366 | aux = *pc++; | 366 | aux = *pc++; goto pushself; |
| 367 | |||
| 368 | case PUSHSELF0: case PUSHSELF1: case PUSHSELF2: case PUSHSELF3: | ||
| 369 | case PUSHSELF4: case PUSHSELF5: case PUSHSELF6: case PUSHSELF7: | ||
| 370 | aux -= PUSHSELF0; | ||
| 367 | pushself: { | 371 | pushself: { |
| 368 | TObject receiver = *(S->top-1); | 372 | TObject receiver = *(S->top-1); |
| 369 | *S->top++ = consts[aux]; | 373 | *S->top++ = consts[aux]; |
