@@ -1267,7 +1267,7 @@ getCompilerOption <- function(name, options = NULL) {
12671267@ %def getCompilerOption
12681268
12691269The [[suppressAll]] function determines whether a context has its
1270- [[supressAll ]] property set to [[TRUE]].
1270+ [[suppressAll ]] property set to [[TRUE]].
12711271<<[[suppressAll]] function>>=
12721272suppressAll <- function(cntxt)
12731273 identical(cntxt$suppressAll, TRUE)
@@ -1504,7 +1504,7 @@ carry at least some runtime penalty. The approach taken here is
15041504therefore to permit the compiler to inline some functions when they
15051505are not visibly shadowed in the compiled code. What the compiler is
15061506permitted to do is determined by the setting of an optimization level.
1507- The details are desctibed in Section \ref{sec:inlining}.
1507+ The details are described in Section \ref{sec:inlining}.
15081508
15091509For the compiler to be able to decide whether is can inline a function
15101510it needs to be able to determine whether there are any local variable
@@ -1814,7 +1814,7 @@ surrounding function. To allow for this we can add an optional
18141814variable [[shadowed]] for providing a character vector of names of
18151815variables with shadowing local definitions.
18161816
1817- The more sophisticated implementaiton is also slightly optimized to avoid
1817+ The more sophisticated implementation is also slightly optimized to avoid
18181818recursive calls. [[findLocals1]] now, instead of searching through the full
18191819transitive closure of language objects, only searches from the first, but
18201820returns what remains to be searched. The variables found are stored into an
@@ -2772,7 +2772,7 @@ not. [[ENDLOOPCNTXT]] terminates the context established by
27722772data is stored on the byte code interpreter stack; in the case of a
27732773[[for]] loop some loop state information is duplicated on the stack by
27742774[[STARTLOOPCNTXT]] and removed again by [[ENDLOOPCNTXT]]. The byte
2775- code intepreter stores the [[pc]] in a slot in the [[RCNTXT]]
2775+ code interpreter stores the [[pc]] in a slot in the [[RCNTXT]]
27762776structure so it is available after a [[longjmp]] triggered by a
27772777[[break]] for retrieving the label on the [[ENDLOOPCNTXT]]
27782778instruction. An alternative would be to add separate
@@ -3240,7 +3240,7 @@ cmpPrim2 <- function(e, cb, op, cntxt) {
32403240@ %def cmpPrim2
32413241
32423242The [[INCLNK]] and [[DECLNK]] instructions are used to protect
3243- evaluated arguents on the stack from modifications during evaluation
3243+ evaluated arguments on the stack from modifications during evaluation
32443244of subsequent arguments. These instructions can be omitted if the
32453245subsequent argument evaluations cannot modify values on the stack.
32463246With changes to stack protection this is mechanism is no longer
@@ -3305,7 +3305,7 @@ setInlineHandler("log", function(e, cb, cntxt) {
33053305
33063306A number of one argument math functions are handled by the interpreter
33073307using the function [[math1]] in [[arithmetic.c]]. The [[MATH1.OP]]
3308- instruction handles these for compuled code. The instruction takes two
3308+ instruction handles these for compiled code. The instruction takes two
33093309operands, an index for the call expression in the constant table, and
33103310an index for the function to be called in a table of function
33113311pointers. The table of names in the byte code compiler has to match
@@ -4326,7 +4326,7 @@ f(g(x, print(y)), y) <- 3
43264326\end{itemize}
43274327
43284328Because of these issues the compiler implements slightly different
4329- semantics for complex assignment than the current intepreter .
4329+ semantics for complex assignment than the current interpreter .
43304330\emph{Evaluation} semantics should be identical; the difference arises
43314331in how intermediate values are managed and has some effect on results
43324332produced by [[substitute]]. In particular, no intermediate [[*tmp*]]
@@ -5349,7 +5349,7 @@ optimization level to be specified using environment variables.
53495349
53505350When [[enableJIT]] is set to 3, loops should be compiled before executing.
53515351However, if the [[optimize]] option is set to 0 or 1, a compiled loop will
5352- call to the same primitive function as is used by the AST interpretter (e.g.
5352+ call to the same primitive function as is used by the AST interpreter (e.g.
53535353[[do_for]]), and the compilation would run into infinite recursion.
53545354[[checkCompilerOptions]] will detect invalid combinations of [[enableJIT]]
53555355and [[optimize]] and report a warning.
@@ -5724,7 +5724,7 @@ representations and more efficient calling conventions.
57245724This appendix provides a few general utility functions.
57255725
57265726The utility function [[pasteExpr]] is used in the error messages.
5727- %% **** use elipsis instead of collapse??
5727+ %% **** use ellipsis instead of collapse??
57285728%% **** use error context or catch errors?
57295729%% **** maybe don't need expression if we catch errors?
57305730<<[[pasteExpr]] function>>=
@@ -5981,7 +5981,7 @@ nsName <- function(ns) {
59815981
59825982\section{Experimental utilities}
59835983
5984- This section presents two experimental utililities that, for now, are
5984+ This section presents two experimental utilities that, for now, are
59855985not exported. The first is a simple byte code profiler. This requires
59865986that the file [[eval.c]] be compiled with [[BC_PROFILING]] enabled,
59875987which on [[gcc]]-compatible compilers will disable threaded code. The
0 commit comments