CXXR (C++ R)
|
#include <iostream>
#include <config.h>
#include <Defn.h>
#include <Rinterface.h>
#include <Fileio.h>
#include "arithmetic.h"
#include "basedecl.h"
#include "CXXR/ArgList.hpp"
#include "CXXR/BailoutContext.hpp"
#include "CXXR/ByteCode.hpp"
#include "CXXR/ClosureContext.hpp"
#include "CXXR/DottedArgs.hpp"
#include "CXXR/ListFrame.hpp"
#include "CXXR/LoopBailout.hpp"
#include "CXXR/LoopException.hpp"
#include "CXXR/PlainContext.hpp"
#include "CXXR/ProvenanceTracker.h"
#include "CXXR/ReturnBailout.hpp"
#include "CXXR/ReturnException.hpp"
#include "CXXR/S3Launcher.hpp"
#include "CXXR/ArgMatcher.hpp"
Macros | |
#define | R_NO_REMAP |
#define | SET_TEMPVARLOC_FROM_CAR(loc, lhs) |
#define | simple_as_environment(arg) (IS_S4_OBJECT(arg) && (TYPEOF(arg) == S4SXP) ? R_getS4DataSlot(arg, ENVSXP) : R_NilValue) |
#define | NSFROMEND(i) (s_nodestack->fromEnd(i)) |
#define | GETSTACK(i) NSFROMEND(-i) |
#define | SETSTACK(i, v) NSFROMEND(-i) = v |
#define | SETSTACK_REAL(i, v) (NSFROMEND(-i) = Rf_ScalarReal(v)) |
#define | SETSTACK_INTEGER(i, v) (NSFROMEND(-i) = Rf_ScalarInteger(v)) |
#define | SETSTACK_LOGICAL(i, v) |
#define | DO_FAST_RELOP2(op, a, b) |
#define | FastRelop2(op, opval, opsym) |
#define | Builtin1(do_fun, which, rho) |
#define | Builtin2(do_fun, which, rho) |
#define | NewBuiltin2(do_fun, opval, opsym, rho) |
#define | Arith1(opsym) |
#define | Arith2(opval, opsym) NewBuiltin2(cmp_arith2,opval,opsym,rho) |
#define | Math1(which) Builtin1(do_math1,which,rho) |
#define | Relop2(opval, opsym) NewBuiltin2(cmp_relop,opval,opsym,rho) |
#define | DO_FAST_BINOP(op, a, b) |
#define | DO_FAST_BINOP_INT(op, a, b) |
#define | FastBinary(op, opval, opsym) |
#define | BCNPUSH(v) (s_nodestack->push(v)) |
#define | BCNDUP() (s_nodestack->push(s_nodestack->fromEnd(1))) |
#define | BCNDUP2ND() (s_nodestack->push(s_nodestack->fromEnd(2))) |
#define | BCNPOP(v) (s_nodestack->topnpop()) |
#define | BCNPOP_IGNORE_VALUE() (s_nodestack->pop()) |
#define | BCNSTACKCHECK(n) |
#define | BCIPUSHPTR(v) |
#define | BCIPUSHINT(v) |
#define | BCIPOPPTR() ((--R_BCIntStackTop)->p) |
#define | BCIPOPINT() ((--R_BCIntStackTop)->i) |
#define | BCCONSTS(e) (SEXP_downcast<ByteCode*>(e)->constants()) |
#define | OP(name, argc) case name##_OP |
#define | BEGIN_MACHINE loop: switch(*pc++) |
#define | LASTOP default: Rf_error(_("Bad opcode")) |
#define | INITIALIZE_MACHINE() |
#define | NEXT() goto loop |
#define | GETOP() *pc++ |
#define | SKIP_OP() (pc++) |
#define | BINDING_SYMBOL(loc) const_cast<Symbol*>(loc->symbol()) |
#define | GET_CACHED_BINDING_CELL(vcache, sidx) R_NilValue |
#define | GET_SMALLCACHE_BINDING_CELL(vcache, sidx) R_NilValue |
#define | SET_CACHED_BINDING(vcache, sidx, cell) |
#define | MAYBE_MISSING_ARGUMENT_ERROR(symbol, keepmiss) do { if (! keepmiss) MISSING_ARGUMENT_ERROR(symbol); } while (0) |
#define | INLINE_GETVAR |
#define | DO_GETVAR(dd, keepmiss) |
#define | PUSHCALLARG(v) PUSHCALLARG_CELL(PairList::cons(v)) |
#define | PUSHCALLARG_CELL(c) |
#define | DO_STARTDISPATCH(generic) |
#define | DO_DFLTDISPATCH(fun, symbol) |
#define | DO_START_ASSIGN_DISPATCH(generic) |
#define | DO_DFLT_ASSIGN_DISPATCH(fun, symbol) |
#define | DO_STARTDISPATCH_N(generic) |
#define | DO_START_ASSIGN_DISPATCH_N(generic) |
#define | DO_ISTEST(fun) |
#define | DO_ISTYPE(type) |
#define | isNumericOnly(x) (Rf_isNumeric(x) && ! Rf_isLogical(x)) |
#define | BC_COUNT_DELTA 1000 |
#define | BC_CHECK_SIGINT() |
#define | DO_VECSUBSET(rho) |
#define | INTEGER_TO_REAL(x) ((x) == NA_INTEGER ? NA_REAL : (x)) |
#define | LOGICAL_TO_REAL(x) ((x) == NA_LOGICAL ? NA_REAL : (x)) |
#define | FIXUP_SCALAR_LOGICAL(callidx, arg, op) |
#define | GET_VEC_LOOP_VALUE(var, pos) |
#define | R_COMPILED_EXTENSION ".Rc" |
Typedefs | |
typedef int | BCODE |
typedef void * | R_binding_cache_t |
Functions | |
SEXP attribute_hidden | do_Rprof (SEXP call, SEXP op, SEXP args, SEXP rho) |
attribute_hidden void | Rf_SrcrefPrompt (const char *prefix, SEXP srcref) |
void attribute_hidden | R_init_jit_enabled (void) |
SEXP attribute_hidden | R_cmpfun (SEXP fun) |
SEXP attribute_hidden | do_enablejit (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_compilepkgs (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP | R_execMethod (SEXP op, SEXP rho) |
SEXP attribute_hidden | do_if (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_for (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_while (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_repeat (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_break (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_paren (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_begin (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_return (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_function (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_set (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | Rf_evalListKeepMissing (SEXP el, SEXP rho) |
SEXP attribute_hidden | do_eval (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_withVisible (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_recall (SEXP call, SEXP op, SEXP args, SEXP rho) |
attribute_hidden int | Rf_DispatchOrEval (SEXP call, SEXP op, const char *generic, SEXP args, SEXP rho, SEXP *ans, int dropmissing, int argsevald) |
attribute_hidden int | Rf_DispatchGroup (const char *group, SEXP call, SEXP op, SEXP args, SEXP rho, SEXP *ans) |
attribute_hidden void | R_initialize_bcode (void) |
SEXP | R_PromiseExpr (SEXP p) |
SEXP | R_ClosureExpr (SEXP p) |
SEXP attribute_hidden | do_mkcode (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_bcclose (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_is_builtin_internal (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_disassemble (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_bcversion (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_loadfile (SEXP call, SEXP op, SEXP args, SEXP env) |
SEXP attribute_hidden | do_savefile (SEXP call, SEXP op, SEXP args, SEXP env) |
char * | R_CompiledFileName (char *fname, char *buf, std::size_t bsize) |
FILE * | R_OpenCompiledFile (char *fname, char *buf, std::size_t bsize) |
SEXP attribute_hidden | do_growconst (SEXP call, SEXP op, SEXP args, SEXP env) |
SEXP attribute_hidden | do_putconst (SEXP call, SEXP op, SEXP args, SEXP env) |
SEXP attribute_hidden | do_getconst (SEXP call, SEXP op, SEXP args, SEXP env) |
SEXP | R_getbcprofcounts () |
SEXP | R_startbcprof () |
SEXP | R_stopbcprof () |
SEXP attribute_hidden | do_setnumthreads (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | do_setmaxnumthreads (SEXP call, SEXP op, SEXP args, SEXP rho) |
SEXP attribute_hidden | Rf_promiseArgs (SEXP el, SEXP rho) |
General evaluation of expressions, including implementation of R flow control constructs, and R profiling.
#define Arith1 | ( | opsym | ) |
#define BC_CHECK_SIGINT | ( | ) |
#define BCIPUSHINT | ( | v | ) |
#define BCIPUSHPTR | ( | v | ) |
#define Builtin1 | ( | do_fun, | |
which, | |||
rho | |||
) |
#define Builtin2 | ( | do_fun, | |
which, | |||
rho | |||
) |
#define DO_DFLT_ASSIGN_DISPATCH | ( | fun, | |
symbol | |||
) |
#define DO_DFLTDISPATCH | ( | fun, | |
symbol | |||
) |
#define DO_FAST_BINOP | ( | op, | |
a, | |||
b | |||
) |
#define DO_FAST_BINOP_INT | ( | op, | |
a, | |||
b | |||
) |
#define DO_FAST_RELOP2 | ( | op, | |
a, | |||
b | |||
) |
#define DO_ISTEST | ( | fun | ) |
#define DO_ISTYPE | ( | type | ) |
#define DO_VECSUBSET | ( | rho | ) |
#define FIXUP_SCALAR_LOGICAL | ( | callidx, | |
arg, | |||
op | |||
) |
#define GET_VEC_LOOP_VALUE | ( | var, | |
pos | |||
) |
#define NewBuiltin2 | ( | do_fun, | |
opval, | |||
opsym, | |||
rho | |||
) |
#define PUSHCALLARG_CELL | ( | c | ) |
#define SET_TEMPVARLOC_FROM_CAR | ( | loc, | |
lhs | |||
) |
#define SETSTACK_LOGICAL | ( | i, | |
v | |||
) |