Subversion Repositories eduke32

Rev

Rev 4001 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4001 Rev 4412
Line 1... Line 1...
1
----------------------------------------------------------------------------
1
----------------------------------------------------------------------------
2
-- LuaJIT module to save/list bytecode.
2
-- LuaJIT module to save/list bytecode.
3
--
3
--
4
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
4
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
5
-- Released under the MIT license. See Copyright Notice in luajit.h
5
-- Released under the MIT license. See Copyright Notice in luajit.h
6
----------------------------------------------------------------------------
6
----------------------------------------------------------------------------
7
--
7
--
8
-- This module saves or lists the bytecode for an input file.
8
-- This module saves or lists the bytecode for an input file.
9
-- It's run by the -b command line option.
9
-- It's run by the -b command line option.
10
--
10
--
11
------------------------------------------------------------------------------
11
------------------------------------------------------------------------------
12
12
13
local jit = require("jit")
13
local jit = require("jit")
14
assert(jit.version_num == 20002, "LuaJIT core/library version mismatch")
14
assert(jit.version_num == 20003, "LuaJIT core/library version mismatch")
15
local bit = require("bit")
15
local bit = require("bit")
16
16
17
-- Symbol name prefix for LuaJIT bytecode.
17
-- Symbol name prefix for LuaJIT bytecode.
18
local LJBC_PREFIX = "luaJIT_BC_"
18
local LJBC_PREFIX = "luaJIT_BC_"
19
19