Go to file
David Anderson a1afa23bc4 Implement a new stack and error handling model for the SourcePawn VM.
This has three major changes to SourcePawn. First, the API now supports the concept of "exceptions". The exception state is a global property of an instance of the SourcePawn VM. Exceptions can be caught or suppressed. Many places in SourceMod have been updated to check exceptions instead of errors.

The new API obsoletes major parts of the embedder API - all but one method of invoking functions is obsoleted, and the debug interface has been scrapped. Extensions using the native API will not be affected, however, ThrowNativeError has been deprecated in favor of ReportError.

Second, the SourcePawn concept of a "stack" has been unified at the API level. A stack frame iterator now iterates over all SourcePawn invocations, rather than the topmost plugin. This makes error handling more consistent and removes another dependency on context-per-plugin.

Finally, the implementation of stack frames has been changed dramatically. Rather than maintain a complicated and expensive return pointer stack, we now rely on the implicit one provided by the CPU. The stack frame iterator now walks the JIT stack directly. This removes many unnecessary bookkeeping instructions from the generated code, in particular making the CALL instruction 40% faster.

These changes required some fair surgery to the JIT. Its error paths are now slightly more complicated, as they have to throw an exception rather than return an error code. In addition, any path that can throw an exception is now responsible for creating an "exit frame", which exists to tell the stack frame iterator about transitions from the JIT to the VM.
2015-03-04 23:45:30 -08:00
configs Remove references to the DisableJIT option. r=psychonic 2014-07-15 09:42:49 -07:00
core Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
gamedata Updated plugin blacklist. 2015-02-25 01:10:28 +00:00
loader Disable RTTI for Loader, Logic, and JIT bins 2014-09-11 17:15:59 -07:00
msvc10 Added msvc10 proj file for Regex extension and hooked up to meta sln (NPOTB). 2013-03-17 11:29:55 -04:00
plugins Merge pull request #213 from splewis/find-array-nonzero-blocks 2015-02-24 22:37:49 +00:00
public Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
sourcepawn Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
tools Merge currently in-use gdc-psyfork symbols.txt. 2015-02-05 14:44:58 -05:00
translations Add support for customizing ban reasons in basebans.sp (bug 5762, r=psychonic). 2013-08-28 13:17:17 -04:00
versionlib Change version display. 2014-05-25 03:18:05 -07:00
.arcconfig Add a .arcconfig file so that arc works 2013-10-15 22:57:59 +01:00
.gitignore Fix .gitignore typo 2014-06-30 15:06:22 +02:00
.travis.yml Install g++-4.8 before installing llvm 3.5 2015-02-21 19:20:18 -08:00
AMBuildScript Remove conditionals in ambuild scripts for using msvc <2013 (not supported). 2015-01-21 11:04:52 -05:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Add an ambuild configure option to disable auto versioning. 2014-07-02 13:29:59 -05:00
product.version Bump version to 1.8.0-dev. 2014-12-18 04:55:58 -08:00
pushbuild.txt Trigger build for hl2sdk-dota changes. 2015-02-20 09:16:40 -05:00
README.md and maybe also a hyphen 2014-05-27 01:09:12 -06:00

SourceMod

General

Development