Skip to content

Commit a99bc74

Browse files
author
Dave Herman
committed
improved heap size restrictions
1 parent bcd5d1f commit a99bc74

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

html/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
9292
</li><li>added <a href=#float-1><code>float</code></a> to legal result types for <em>ConditionalExpression</em>
9393
</li><li>added variadic <code>Math.min</code> and <code>Math.max</code>
9494
</li><li>eliminated the allowance for 1-byte views to elide their index shift (to future-proof for large heaps)
95+
</li><li>simplified and generalized link-time restrcitions on heap size
9596
</li></ul>
9697
</li><li><strong>12 December 2013</strong>
9798
<ul>
@@ -1827,9 +1828,12 @@ <h3 id=float-coercions><span class=secno>6.10 </span>Float Coercions</h3>
18271828
</p><ul>
18281829
<li>control must reach the module's <code>return</code> statement without throwing;
18291830
</li><li>the <em>heap</em> object (if provided) must be an instance of <a href=https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays/ArrayBuffer><code>ArrayBuffer</code></a>;
1830-
</li><li>the <em>heap</em> object's <code>byteLength</code> must be a multiple of 4096;
1831-
</li><li>the <em>heap</em> object's <code>byteLength</code> must be a power of 2;
1832-
</li><li>the <em>heap</em> object's <code>byteLength</code> must be no greater than 2<sup>31</sup> (assuming the engine even allows <code>ArrayBuffer</code>s that large);
1831+
</li><li>the <em>heap</em> object's <code>byteLength</code> must be either 2<sup><em>n</em></sup> for <em>n</em> in [12, 24) or 2<sup>24</sup> · <em>n</em> for <em>n</em> ≥ 1;
1832+
<!--
1833+
<li>the <em>heap</em> object's <code>byteLength</code> must be a multiple of 4096;
1834+
<li>the <em>heap</em> object's <code>byteLength</code> must be a power of 2;
1835+
<li>the <em>heap</em> object's <code>byteLength</code> must be no greater than 2<sup>31</sup> (assuming the engine even allows <code>ArrayBuffer</code>s that large);
1836+
-->
18331837
</li><li>all view objects must be true instances of their
18341838
respective <a href=https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays/ArrayBufferView>typed
18351839
array</a> types;

html/index.src.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ <h3 class="no-num no-toc">Changelog</h2>
9595
<li>added <code>float</code> to legal result types for <em>ConditionalExpression</em>
9696
<li>added variadic <code>Math.min</code> and <code>Math.max</code>
9797
<li>eliminated the allowance for 1-byte views to elide their index shift (to future-proof for large heaps)
98+
<li>simplified and generalized link-time restrcitions on heap size
9899
</ul>
99100
<li><strong>12 December 2013</strong>
100101
<ul>
@@ -1743,9 +1744,12 @@ <h2>Linking</h2>
17431744
<ul>
17441745
<li>control must reach the module's <code>return</code> statement without throwing;
17451746
<li>the <em>heap</em> object (if provided) must be an instance of <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a>;
1747+
<li>the <em>heap</em> object's <code>byteLength</code> must be either 2<sup><em>n</em></sup> for <em>n</em> in [12, 24) or 2<sup>24</sup> &middot; <em>n</em> for <em>n</em> &geq; 1;
1748+
<!--
17461749
<li>the <em>heap</em> object's <code>byteLength</code> must be a multiple of 4096;
17471750
<li>the <em>heap</em> object's <code>byteLength</code> must be a power of 2;
17481751
<li>the <em>heap</em> object's <code>byteLength</code> must be no greater than 2<sup>31</sup> (assuming the engine even allows <code>ArrayBuffer</code>s that large);
1752+
-->
17491753
<li>all view objects must be true instances of their
17501754
respective <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays/ArrayBufferView">typed
17511755
array</a> types;

0 commit comments

Comments
 (0)