sourcemod/sourcepawn/jit
David Anderson 04827466b0 Rewrite the .smx parser.
This removes one the last remnants of the SourceMod 1.0 VM implementation.

The new parser introduces a number of design changes in the VM. First, the VM now takes greater responsibility for validating and sanity checking the structure of the SMX container format. Previously, malformed SMX files could easily crash SourcePawn. The loader now rejects files that have out-of-bounds offsets or incomplete sections. Complex sections, like debug info or the code stream, are verified lazily.

Internally, the sp_plugin_t structure has been removed. It has been replaced by a new LegacyImage class, designed to be independent from the SPVM API. This potentially lets us load code streams from non-.smx containers. More importantly, it removes a lot of bookkeeping and pre-computed state from PluginRuntime. The LegacyImage class is now responsible for handling debug info as well.

PluginRuntime is now intended to hold only cached or immutable data, and PluginContext holds all VM state. As such PluginContext is now responsible for allocating a plugin's runtime memory, not PluginRuntime.

Finally, some aspects of the loading process have been cleaned up. The
decompression and image handoff logic should now be easier to
understand.
2015-02-25 22:28:10 -08:00
..
md5 Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
msvc8 Missed a reference to SOURCEMM16 in JIT project files (bug 3445). 2008-11-27 02:20:08 -06:00
msvc9 Missed a reference to SOURCEMM16 in JIT project files (bug 3445). 2008-11-27 02:20:08 -06:00
msvc10 Updated jit vcproj/makefile (NPOTB). 2012-08-15 15:10:55 -04:00
x86 Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
zlib Imported support for new build system. 2009-08-30 00:21:42 -07:00
AMBuilder Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
api.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
api.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
code-allocator.cpp Move the code cache into Environment, and out of knight/shared. 2015-02-24 01:57:50 -08:00
code-allocator.h Move the code cache into Environment, and out of knight/shared. 2015-02-24 01:57:50 -08:00
code-stubs.cpp Factor code stubs out of JITX86. 2015-02-24 02:03:58 -08:00
code-stubs.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
compiled-function.cpp Merge sp_vm_engine and engine2. 2015-02-24 02:03:55 -08:00
compiled-function.h Rename Function to CompiledFunction. 2015-02-23 16:27:57 -08:00
debug-trace.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
debug-trace.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
dll_exports.cpp Don't expose mutable sp_native_t. 2015-02-24 23:10:18 -08:00
dll_exports.h landed massive refactoring of the JIT. contexts are actually contexts now, and a higher level structure wraps sp_plugin_t info. on that note, both sp_plugin_t and sp_context_t are entirely opaque, and not even core has access to them. amazingly, i managed to keep binary compatibility here although a large number of functions are deprecated (and core should eventually stop calling them). 2008-07-11 08:18:43 +00:00
environment.cpp Move sp from sp_context_t to PluginContext. 2015-02-24 21:54:30 -08:00
environment.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
file-utils.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
file-utils.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
legacy-image.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
Makefile Refactor the public API entrypoint for SourcePawn. 2015-02-24 01:52:13 -08:00
Makefile.shell Refactor the public API entrypoint for SourcePawn. 2015-02-24 01:52:13 -08:00
opcodes.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
opcodes.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
plugin-context.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
plugin-context.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
plugin-runtime.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
plugin-runtime.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
scripted-invoker.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
scripted-invoker.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
smx-v1-image.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
smx-v1-image.h Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
version.rc Overhauled versioning information (bug 5453, r=dvander). 2012-08-26 01:33:54 +01:00
watchdog_timer.cpp Rewrite the .smx parser. 2015-02-25 22:28:10 -08:00
watchdog_timer.h Move watchdog/runtime interaction into Environment. 2015-02-24 02:03:55 -08:00