Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html

Issue 185653007: NaCl docs: update computed goto support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address mseaborn's comments. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | native_client_sdk/doc_generated/sitemap.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html
diff --git a/native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html b/native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html
index 8d09b4afc591f12a9b070d4fc31a92be817e4d21..f6f463e5f7052219b06729139617e09d15bb711b 100644
--- a/native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html
+++ b/native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html
@@ -22,12 +22,12 @@
<li><a class="reference internal" href="#inline-assembly" id="id11">Inline Assembly</a></li>
<li><a class="reference internal" href="#undefined-behavior" id="id12">Undefined Behavior</a></li>
<li><a class="reference internal" href="#floating-point" id="id13">Floating-Point</a></li>
-<li><p class="first"><a class="reference internal" href="#future-directions" id="id14">Future Directions</a></p>
+<li><a class="reference internal" href="#computed-goto" id="id14">Computed <code>goto</code></a></li>
+<li><p class="first"><a class="reference internal" href="#future-directions" id="id15">Future Directions</a></p>
<ul class="small-gap">
-<li><a class="reference internal" href="#simd" id="id15">SIMD</a></li>
-<li><a class="reference internal" href="#inter-process-communication" id="id16">Inter-Process Communication</a></li>
-<li><a class="reference internal" href="#posix-style-signal-handling" id="id17">POSIX-style Signal Handling</a></li>
-<li><a class="reference internal" href="#computed-goto" id="id18">Computed <code>goto</code></a></li>
+<li><a class="reference internal" href="#simd" id="id16">SIMD</a></li>
+<li><a class="reference internal" href="#inter-process-communication" id="id17">Inter-Process Communication</a></li>
+<li><a class="reference internal" href="#posix-style-signal-handling" id="id18">POSIX-style Signal Handling</a></li>
</ul>
</li>
</ul>
@@ -205,6 +205,16 @@ in the <em>pexe</em>.</li>
</ul>
</li>
</ul>
+</section><section id="computed-goto">
+<h2 id="computed-goto">Computed <code>goto</code></h2>
+<p>PNaCl supports computed <code>goto</code>, a non-standard GCC extension to C used
+by some interpreters, by lowering them to <code>switch</code> statements. The
+resulting use of <code>switch</code> might not be as fast as the original
+indirect branches. If you are compiling a program that has a
+compile-time option for using computed <code>goto</code>, it&#8217;s possible that the
+program will run faster with the option turned off (e.g., if the program
+does extra work to take advantage of computed <code>goto</code>).</p>
+<p>NaCl supports computed <code>goto</code> without any transformation.</p>
</section><section id="future-directions">
<h2 id="future-directions">Future Directions</h2>
<section id="simd">
@@ -243,11 +253,6 @@ or suspension of threads.</p>
<p>If PNaCl were to support either of these, the interaction of
<code>volatile</code> and atomics with same-thread signal handling would need
to be carefully detailed.</p>
-</section><section id="computed-goto">
-<h3 id="computed-goto">Computed <code>goto</code></h3>
-<p>PNaCl currently doesn&#8217;t support computed <code>goto</code>, a non-standard
-extension to C used by some interpreters.</p>
-<p>NaCl supports computed <code>goto</code>.</p>
</section></section></section>
{{/partials.standard_nacl_article}}
« no previous file with comments | « no previous file | native_client_sdk/doc_generated/sitemap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698