From 5e601891fc9faf8cde836e6515bfdd273dd113e9 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 24 Feb 2013 17:59:04 +0100 Subject: Replace table.remove with bytecode builtin. --- src/host/buildvm_libbc.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/host') diff --git a/src/host/buildvm_libbc.h b/src/host/buildvm_libbc.h index a71aa630..ec2a55f8 100644 --- a/src/host/buildvm_libbc.h +++ b/src/host/buildvm_libbc.h @@ -9,7 +9,11 @@ static const uint8_t libbc_code[] = { 59,8,5,0,66,6,3,2,10,6,0,0,88,7,1,128,76,6,2,0,79,2,248,127,75,0,1,0,0,2,10, 0,0,0,16,16,0,12,0,16,1,9,0,43,2,0,0,18,3,0,0,41,4,0,0,88,5,7,128,18,7,1,0, 18,8,5,0,18,9,6,0,66,7,3,2,10,7,0,0,88,8,1,128,76,7,2,0,70,5,3,3,82,5,247,127, -75,0,1,0,0,1,2,0,0,0,3,16,0,12,0,21,1,0,0,76,1,2,0,0 +75,0,1,0,0,1,2,0,0,0,3,16,0,12,0,21,1,0,0,76,1,2,0,0,2,10,0,0,2,30,16,0,12, +0,21,2,0,0,11,1,0,0,88,3,7,128,8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2, +0,76,3,2,0,88,3,18,128,16,1,14,0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3, +12,128,59,3,1,0,22,4,1,1,18,5,2,0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64, +9,8,0,79,4,252,127,43,4,0,0,64,4,2,0,76,3,2,0,75,0,1,0,0,2,0 }; static const struct { const char *name; int ofs; } libbc_map[] = { @@ -18,6 +22,7 @@ static const struct { const char *name; int ofs; } libbc_map[] = { {"table_foreachi",50}, {"table_foreach",117}, {"table_getn",188}, -{NULL,207} +{"table_remove",207}, +{NULL,336} }; -- cgit v1.2.3-55-g6feb