Merge pull request #750 from ethereum/chriseth-patch-2

Correct source map definition.
This commit is contained in:
chriseth 2016-08-01 12:44:38 +02:00 committed by GitHub
commit 23a4d07821

View File

@ -130,7 +130,7 @@ index mentioned above.
The encoding in the source mapping for the bytecode is more complicated:
It is a list of ``s:l:f:j`` separated by ``;``. Each of these
elements corresponds to an instruction, i.e. you cannot use the byte offset
but have to use the instruction offset or PC (program counter).
but have to use the instruction offset (push instructions are longer than a single byte).
The fields ``s``, ``l`` and ``f`` are as above and ``j`` can be either
``i``, ``o`` or ``-`` signifying whether a jump instruction goes into a
function, returns from a function or is a regular jump as part of e.g. a loop.