cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 05:56:11 -06:00
|
|
|
#if !defined(DUK_V1_COMPAT_INCLUDED)
|
|
|
|
#define DUK_V1_COMPAT_INCLUDED
|
|
|
|
|
|
|
|
#include "duktape.h"
|
|
|
|
|
2019-05-27 08:36:06 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 05:56:11 -06:00
|
|
|
/* Straight flag rename */
|
|
|
|
#if !defined(DUK_ENUM_INCLUDE_INTERNAL)
|
|
|
|
#define DUK_ENUM_INCLUDE_INTERNAL DUK_ENUM_INCLUDE_HIDDEN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Flags for duk_push_string_file_raw() */
|
|
|
|
#define DUK_STRING_PUSH_SAFE (1 << 0) /* no error if file does not exist */
|
|
|
|
|
|
|
|
extern void duk_dump_context_stdout(duk_context *ctx);
|
|
|
|
extern void duk_dump_context_stderr(duk_context *ctx);
|
|
|
|
extern const char *duk_push_string_file_raw(duk_context *ctx, const char *path, duk_uint_t flags);
|
|
|
|
extern void duk_eval_file(duk_context *ctx, const char *path);
|
|
|
|
extern void duk_eval_file_noresult(duk_context *ctx, const char *path);
|
|
|
|
extern duk_int_t duk_peval_file(duk_context *ctx, const char *path);
|
|
|
|
extern duk_int_t duk_peval_file_noresult(duk_context *ctx, const char *path);
|
|
|
|
extern void duk_compile_file(duk_context *ctx, duk_uint_t flags, const char *path);
|
|
|
|
extern duk_int_t duk_pcompile_file(duk_context *ctx, duk_uint_t flags, const char *path);
|
|
|
|
extern void duk_to_defaultvalue(duk_context *ctx, duk_idx_t idx, duk_int_t hint);
|
|
|
|
|
|
|
|
#define duk_push_string_file(ctx,path) \
|
|
|
|
duk_push_string_file_raw((ctx), (path), 0)
|
|
|
|
|
2019-05-27 08:36:06 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif /* end 'extern "C"' wrapper */
|
|
|
|
|
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 05:56:11 -06:00
|
|
|
#endif /* DUK_V1_COMPAT_INCLUDED */
|