summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/doc_generated
diff options
context:
space:
mode:
authorjfb@chromium.org <jfb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 21:45:31 +0000
committerjfb@chromium.org <jfb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 21:45:31 +0000
commitaeeab0a46b2cbb43923e720d4c500129ed0ea1ff (patch)
tree1abcc53a6bd85b34aad87fc4cf1b7b23efcd8c15 /native_client_sdk/doc_generated
parenta571de61eecb9e99e6adf4a79dca161b52ecf8db (diff)
downloadchromium_src-aeeab0a46b2cbb43923e720d4c500129ed0ea1ff.zip
chromium_src-aeeab0a46b2cbb43923e720d4c500129ed0ea1ff.tar.gz
chromium_src-aeeab0a46b2cbb43923e720d4c500129ed0ea1ff.tar.bz2
NaCl docs: update computed goto support
mseaborn added computed goto lowering in: https://codereview.chromium.org/120773002 R= binji@chromium.org, sbc@chromium.org, mseaborn@chromium.org TEST=none BUG= https://code.google.com/p/nativeclient/issues/detail?id=3695 NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/185653007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/doc_generated')
-rw-r--r--native_client_sdk/doc_generated/reference/pnacl-c-cpp-language-support.html25
-rw-r--r--native_client_sdk/doc_generated/sitemap.html1
2 files changed, 16 insertions, 10 deletions
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 8d09b4a..f6f463e 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}}
diff --git a/native_client_sdk/doc_generated/sitemap.html b/native_client_sdk/doc_generated/sitemap.html
index a029249..8295f4b 100644
--- a/native_client_sdk/doc_generated/sitemap.html
+++ b/native_client_sdk/doc_generated/sitemap.html
@@ -340,6 +340,7 @@
<li class="toctree-l2"><a class="reference internal" href="/native-client/reference/pnacl-c-cpp-language-support.html#inline-assembly">Inline Assembly</a></li>
<li class="toctree-l2"><a class="reference internal" href="/native-client/reference/pnacl-c-cpp-language-support.html#undefined-behavior">Undefined Behavior</a></li>
<li class="toctree-l2"><a class="reference internal" href="/native-client/reference/pnacl-c-cpp-language-support.html#floating-point">Floating-Point</a></li>
+<li class="toctree-l2"><a class="reference internal" href="/native-client/reference/pnacl-c-cpp-language-support.html#computed-goto">Computed <code>goto</code></a></li>
<li class="toctree-l2"><a class="reference internal" href="/native-client/reference/pnacl-c-cpp-language-support.html#future-directions">Future Directions</a></li>
</ul>
</li>