Skip to content

Commit c7481fa

Browse files
author
kalibera
committed
Fix typos (PR#18894).
git-svn-id: https://svn.r-project.org/R/trunk@88251 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7413f10 commit c7481fa

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/library/compiler/noweb/compiler.nw

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ getCompilerOption <- function(name, options = NULL) {
12671267
@ %def getCompilerOption
12681268

12691269
The [[suppressAll]] function determines whether a context has its
1270-
[[supressAll]] property set to [[TRUE]].
1270+
[[suppressAll]] property set to [[TRUE]].
12711271
<<[[suppressAll]] function>>=
12721272
suppressAll <- function(cntxt)
12731273
identical(cntxt$suppressAll, TRUE)
@@ -1504,7 +1504,7 @@ carry at least some runtime penalty. The approach taken here is
15041504
therefore to permit the compiler to inline some functions when they
15051505
are not visibly shadowed in the compiled code. What the compiler is
15061506
permitted 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

15091509
For the compiler to be able to decide whether is can inline a function
15101510
it 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
18141814
variable [[shadowed]] for providing a character vector of names of
18151815
variables 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
18181818
recursive calls. [[findLocals1]] now, instead of searching through the full
18191819
transitive closure of language objects, only searches from the first, but
18201820
returns what remains to be searched. The variables found are stored into an
@@ -2772,7 +2772,7 @@ not. [[ENDLOOPCNTXT]] terminates the context established by
27722772
data 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]]
27762776
structure so it is available after a [[longjmp]] triggered by a
27772777
[[break]] for retrieving the label on the [[ENDLOOPCNTXT]]
27782778
instruction. An alternative would be to add separate
@@ -3240,7 +3240,7 @@ cmpPrim2 <- function(e, cb, op, cntxt) {
32403240
@ %def cmpPrim2
32413241

32423242
The [[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
32443244
of subsequent arguments. These instructions can be omitted if the
32453245
subsequent argument evaluations cannot modify values on the stack.
32463246
With changes to stack protection this is mechanism is no longer
@@ -3305,7 +3305,7 @@ setInlineHandler("log", function(e, cb, cntxt) {
33053305

33063306
A number of one argument math functions are handled by the interpreter
33073307
using 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
33093309
operands, an index for the call expression in the constant table, and
33103310
an index for the function to be called in a table of function
33113311
pointers. 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

43284328
Because 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
43314331
in how intermediate values are managed and has some effect on results
43324332
produced by [[substitute]]. In particular, no intermediate [[*tmp*]]
@@ -5349,7 +5349,7 @@ optimization level to be specified using environment variables.
53495349

53505350
When [[enableJIT]] is set to 3, loops should be compiled before executing.
53515351
However, 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]]
53555355
and [[optimize]] and report a warning.
@@ -5724,7 +5724,7 @@ representations and more efficient calling conventions.
57245724
This appendix provides a few general utility functions.
57255725

57265726
The 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
59855985
not exported. The first is a simple byte code profiler. This requires
59865986
that the file [[eval.c]] be compiled with [[BC_PROFILING]] enabled,
59875987
which on [[gcc]]-compatible compilers will disable threaded code. The

0 commit comments

Comments
 (0)