Bug 1254295 - fix a few typos in JS headers; r=nbp
authorTom Tromey <tom@tromey.com>
Thu, 27 Oct 2016 08:39:56 -0600
changeset 348687 52736ea528a925cc1b0411ceeb20ae03510130fa
parent 348686 1e2587f668f4c32fd007a7660a9f763e1bde059c
child 348688 5ba29d0fdd6d3a6cc1d2385e7d9d0b5cfd4adc5d
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp
bugs1254295
milestone52.0a1
Bug 1254295 - fix a few typos in JS headers; r=nbp MozReview-Commit-ID: 3do0PIwCyOy
js/src/jit/JitFrameIterator.h
js/src/vm/Interpreter.h
js/src/vm/Stack.h
--- a/js/src/jit/JitFrameIterator.h
+++ b/js/src/jit/JitFrameIterator.h
@@ -22,18 +22,18 @@ namespace js {
 
 namespace js {
 namespace jit {
 
 typedef void * CalleeToken;
 
 enum FrameType
 {
-    // A JS frame is analagous to a js::InterpreterFrame, representing one scripted
-    // functon activation. IonJS frames are used by the optimizing compiler.
+    // A JS frame is analogous to a js::InterpreterFrame, representing one scripted
+    // function activation. IonJS frames are used by the optimizing compiler.
     JitFrame_IonJS,
 
     // JS frame used by the baseline JIT.
     JitFrame_BaselineJS,
 
     // Frame pushed for JIT stubs that make non-tail calls, so that the
     // return address -> ICEntry mapping works.
     JitFrame_BaselineStub,
--- a/js/src/vm/Interpreter.h
+++ b/js/src/vm/Interpreter.h
@@ -196,17 +196,17 @@ ExecuteKernel(JSContext* cx, HandleScrip
 
 /* Execute a script with the given scopeChain as global code. */
 extern bool
 Execute(JSContext* cx, HandleScript script, JSObject& scopeChain, Value* rval);
 
 class ExecuteState;
 class InvokeState;
 
-// RunState is passed to RunScript and RunScript then eiter passes it to the
+// RunState is passed to RunScript and RunScript then either passes it to the
 // interpreter or to the JITs. RunState contains all information we need to
 // construct an interpreter or JIT frame.
 class RunState
 {
   protected:
     enum Kind { Execute, Invoke };
     Kind kind_;
 
--- a/js/src/vm/Stack.h
+++ b/js/src/vm/Stack.h
@@ -292,17 +292,17 @@ class InterpreterFrame
 
         /*
          * See comment above 'isDebuggee' in jscompartment.h for explanation of
          * invariants of debuggee compartments, scripts, and frames.
          */
         DEBUGGEE               =       0x40,  /* Execution is being observed by Debugger */
 
         /* Used in tracking calls and profiling (see vm/SPSProfiler.cpp) */
-        HAS_PUSHED_SPS_FRAME   =       0x80,  /* SPS was notified of enty */
+        HAS_PUSHED_SPS_FRAME   =       0x80,  /* SPS was notified of entry */
 
         /*
          * If set, we entered one of the JITs and ScriptFrameIter should skip
          * this frame.
          */
         RUNNING_IN_JIT         =      0x100,
 
         /* Miscellaneous state. */