Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit d78c9e4

Browse files
committed
Add links to types and fix type table
1 parent cdf236f commit d78c9e4

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

‎tc39/spec.html‎

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ <h1>_SIMD_Constructor.lessThan(a, b)</h1>
12261226
<h1>_SIMD_Constructor.lessThanOrEqual(a, b)</h1>
12271227
<p>This definition uses `<=` to refer to the abstract operation defined by <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-abstract-relational-comparison">ES2015 7.2.11 (Abstract Relational Comparison)</a>.</p>
12281228

1229-
This operation exists only on integer and floating point SIMD types.
1229+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
12301230

12311231
<emu-alg>
12321232
1. If _a_.[[SIMDTypeDescriptor]] is not _SIMD_Descriptor or _b_.[[SIMDTypeDescriptor]] is not _SIMD_Descriptor, throw a TypeError exception.
@@ -1374,7 +1374,7 @@ <h1>_SIMD_Constructor.shiftLeftByScalar( a, bits )</h1>
13741374

13751375
<emu-clause id="simd-shift-right-by-scalar">
13761376
<h1>_SIMD_Constructor.shiftRightByScalar( a, bits )</h1>
1377-
This operation is only defined on <a href="#simd-integer-type">integer</a> SIMD types.
1377+
This operation is only defined on <a href="#simd-integer-type">integer</a> SIMD types.
13781378

13791379
On <a href="#simd-unsigned-integer-type">unsigned</a> SIMD types, the following definition is used. This definition uses `>>>` to refer to the abstract operation defined by <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-unsigned-right-shift-operator">ES2015 12.8.5 (The Unsigned Right Shift Operator ( >>> ))</a>.
13801380
<emu-alg>
@@ -1420,7 +1420,7 @@ <h1>_SIMD_Constructor.replaceLane( simd, lane, value )</h1>
14201420
<h1>_SIMD_Constructor.store( tarray, index, simd )</h1>
14211421
<p>This is defined when _SIMD_Descriptor has a [[SerializeElement]] field.</p>
14221422

1423-
This operation exists only on integer and floating point SIMD types.
1423+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14241424

14251425
<emu-alg>
14261426
1. Return SIMDStoreInTypedArray(_tarray_, _index_, _SIMD_Descriptor, _simd_).
@@ -1431,7 +1431,7 @@ <h1>_SIMD_Constructor.store( tarray, index, simd )</h1>
14311431
<h1>_SIMD_Constructor.store1( tarray, index, simd )</h1>
14321432
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4, and when _SIMD_Descriptor has a [[SerializeElement]] field.</p>
14331433

1434-
This operation exists only on integer and floating point SIMD types.
1434+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14351435

14361436
<emu-alg>
14371437
1. Return SIMDStoreInTypedArray(_tarray_, _index_, _SIMD_Descriptor, _simd_, 1).
@@ -1442,7 +1442,7 @@ <h1>_SIMD_Constructor.store1( tarray, index, simd )</h1>
14421442
<h1>_SIMD_Constructor.store2( tarray, index, simd )</h1>
14431443
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4, and when _SIMD_Descriptor has a [[SerializeElement]] field.</p>
14441444

1445-
This operation exists only on integer and floating point SIMD types.
1445+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14461446
<emu-alg>
14471447
1. Return SIMDStoreInTypedArray(_tarray_, _index_, _SIMD_Descriptor, _simd_, 2).
14481448
</emu-alg>
@@ -1452,7 +1452,7 @@ <h1>_SIMD_Constructor.store2( tarray, index, simd )</h1>
14521452
<h1>_SIMD_Constructor.store3( tarray, index, simd )</h1>
14531453
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4, and when _SIMD_Descriptor has a [[SerializeElement]] field.</p>
14541454

1455-
This operation exists only on integer and floating point SIMD types.
1455+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14561456
<emu-alg>
14571457
1. Return SIMDStoreInTypedArray(_tarray_, _index_, _SIMD_Descriptor, _simd_, 3).
14581458
</emu-alg>
@@ -1462,7 +1462,7 @@ <h1>_SIMD_Constructor.store3( tarray, index, simd )</h1>
14621462
<h1>_SIMD_Constructor.load( tarray, index )</h1>
14631463
<p>This function is defined only on SIMD types where _SIMD_Descriptor has a [[DeserializeElement]] field.</p>
14641464

1465-
This operation exists only on integer and floating point SIMD types.
1465+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14661466

14671467
<emu-note>`load` takes a TypedArray of any element type as an argument. One way to use it is to pass in a `Uint8Array` regardless of SIMD type, which is useful because it allows the compiler to eliminate the shift in going from the index to the pointer offset. Other options considered were to use an ArrayBuffer (but this is not idiomatic, to take an ArrayBuffer directly as an argument to read off of) or a DataView (but DataViews don't tend to expose platform-dependent endianness, which is important here, and they tend to use methods on `DataView.prototype`, which are harder to optimize in an asm.js context).</emu-note>
14681468
<emu-alg>
@@ -1474,7 +1474,7 @@ <h1>_SIMD_Constructor.load( tarray, index )</h1>
14741474
<h1>_SIMD_Constructor.load1(tarray, index)</h1>
14751475
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4 and _SIMD_Descriptor has a [[DeserializeElement]] field.</p>
14761476

1477-
This operation exists only on integer and floating point SIMD types.
1477+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14781478
<emu-alg>
14791479
1. Return SIMDLoadFromTypedArray(_tarray_, _index_, _SIMD_Descriptor, 1).
14801480
</emu-alg>
@@ -1484,7 +1484,7 @@ <h1>_SIMD_Constructor.load1(tarray, index)</h1>
14841484
<h1>_SIMD_Constructor.load2(tarray, index)</h1>
14851485
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4 and _SIMD_Descriptor has a [[DeserializeElement]] field.</p>
14861486

1487-
This operation exists only on integer and floating point SIMD types.
1487+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14881488
<emu-alg>
14891489
1. Return SIMDLoadFromTypedArray(_tarray_, _index_, _SIMD_Descriptor, 2).
14901490
</emu-alg>
@@ -1494,7 +1494,7 @@ <h1>_SIMD_Constructor.load2(tarray, index)</h1>
14941494
<h1>_SIMD_Constructor.load3(tarray, index)</h1>
14951495
<p>This function is defined only on SIMD types where _SIMD_Descriptor.[[VectorLength]] = 4 and _SIMD_Descriptor has a [[DeserializeElement]] field.</p>
14961496

1497-
This operation exists only on integer and floating point SIMD types.
1497+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
14981498
<emu-alg>
14991499
1. Return SIMDLoadFromTypedArray(_tarray_, _index_, _SIMD_Descriptor, 3).
15001500
</emu-alg>
@@ -1516,7 +1516,7 @@ <h1><var>SIMD</var>Constructor.from<var>TIMD</var>( value )</h1>
15161516
<emu-alg>
15171517
1. If _value_.[[SIMDTypeDescriptor]] is not _TIMD_Descriptor, throw a TypeError exception.
15181518
1. Let _list_ be a copy of _value_.[[SIMDElements]].
1519-
1. If _SIMD_ is an integer type and _TIMD_ is a floating point type,
1519+
1. If _SIMD_ is an integer type and _TIMD_ is a floating point type,
15201520
1. For _element_ in _list_,
15211521
1. if _element_ is *NaN* or _element_ `>` _SIMD_Descriptor.[[ElementMax]] or _element_ `<` _SIMD_Descriptor.[[ElementMin]], throw a *RangeError* exception.
15221522
1. Return SIMDCreate(_SIMD_Descriptor, _list_).
@@ -1528,7 +1528,7 @@ <h1><var>SIMD</var>Constructor.from<var>TIMD</var>( value )</h1>
15281528

15291529
<emu-clause id="swizzle">
15301530
<h1>_SIMD_Constructor.swizzle( a, ...lanes )</h1>
1531-
This operation exists only on integer and floating point SIMD types.
1531+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
15321532

15331533
<emu-alg>
15341534
1. If _a_.[[SIMDTypeDescriptor]] is not _SIMD_Descriptor, throw a *TypeError* exception.
@@ -1548,7 +1548,7 @@ <h1>_SIMD_Constructor.swizzle( a, ...lanes )</h1>
15481548

15491549
<emu-clause id="shuffle">
15501550
<h1>_SIMD_Constructor.shuffle( a, b, ...lanes )</h1>
1551-
This operation exists only on integer and floating point SIMD types.
1551+
This operation exists only on <a href="#simd-integer-type">integer</a> and <a href="#simd-floating-point-type">floating point</a> SIMD types.
15521552

15531553
<emu-alg>
15541554
1. If _a_.[[SIMDTypeDescriptor]] is not _SIMD_Descriptor, or if _b_.[[SIMDTypeDescriptor]] is not _SIMD_Descriptor, throw a *TypeError* exception.
@@ -1759,69 +1759,69 @@ <h1>DeserializeInt( descriptor )( block, offset, isLittleEndian )</h1>
17591759
<tr>
17601760
<td>Int16x8</td>
17611761
<td><a href="#simd-signed-integer-type">signed integer</a></td>
1762-
<td>8</li>
1763-
<td>2</li>
1764-
<td>ToInt16</li>
1762+
<td>8</td>
1763+
<td>2</td>
1764+
<td>ToInt16</td>
17651765
<td>SerializeInt(Int16x8Descriptor)</td>
17661766
<td>DeserializeInt(Int16x8Descriptor)</td>
1767-
<td>2<sup>15</sup>-1</li>
1768-
<td>-2<sup>15</sup></li>
1767+
<td>2<sup>15</sup>-1</td>
1768+
<td>-2<sup>15</sup></td>
17691769
</tr>
17701770

17711771
<tr>
17721772
<td>Int8x16</td>
17731773
<td><a href="#simd-signed-integer-type">signed integer</a></td>
1774-
<td>16</li>
1775-
<td>1</li>
1776-
<td>ToInt8</li>
1774+
<td>16</td>
1775+
<td>1</td>
1776+
<td>ToInt8</td>
17771777
<td>SerializeInt(Int8x16Descriptor)</td>
17781778
<td>DeserializeInt(Int8x16Descriptor)</td>
1779-
<td>127</li>
1780-
<td>-128</li>
1779+
<td>127</td>
1780+
<td>-128</td>
17811781
</tr>
17821782

17831783
<tr>
17841784
<td>Uint32x4</td>
17851785
<td><a href="#simd-unsigned-integer-type">unsigned integer</a></td>
1786-
<td>4</li>
1787-
<td>4</li>
1788-
<td>ToUint32</li>
1786+
<td>4</td>
1787+
<td>4</td>
1788+
<td>ToUint32</td>
17891789
<td>SerializeInt(Uint32x4Descriptor)</td>
17901790
<td>DeserializeInt(Uint32x4Descriptor)</td>
1791-
<td>2<sup>32</sup>-1</li>
1792-
<td>0</li>
1791+
<td>2<sup>32</sup>-1</td>
1792+
<td>0</td>
17931793
</tr>
17941794

17951795
<tr>
17961796
<td>Uint16x8</td>
17971797
<td><a href="#simd-unsigned-integer-type">unsigned integer</a></td>
1798-
<td>8</li>
1799-
<td>2</li>
1800-
<td>ToUint16</li>
1798+
<td>8</td>
1799+
<td>2</td>
1800+
<td>ToUint16</td>
18011801
<td>SerializeInt(Uint16x8Descriptor)</td>
18021802
<td>DeserializeInt(Uint16x8Descriptor)</td>
1803-
<td>2<sup>16</sup>-1</li>
1804-
<td>0</li>
1803+
<td>2<sup>16</sup>-1</td>
1804+
<td>0</td>
18051805
</tr>
18061806

18071807
<tr>
18081808
<td>Uint8x16</td>
18091809
<td><a href="#simd-unsigned-integer-type">unsigned integer</a></td>
1810-
<td>16</li>
1811-
<td>1</li>
1812-
<td>ToUint8</li>
1810+
<td>16</td>
1811+
<td>1</td>
1812+
<td>ToUint8</td>
18131813
<td>SerializeInt(Uint8x16Descriptor)</td>
18141814
<td>DeserializeInt(Uint8x16Descriptor)</td>
1815-
<td>255</li>
1816-
<td>0</li>
1815+
<td>255</td>
1816+
<td>0</td>
18171817
</tr>
18181818

18191819
<tr>
18201820
<td>Bool32x4</td>
18211821
<td><a href="#simd-boolean-type">boolean</a></td>
1822-
<td>4</li>
1822+
<td>4</td>
18231823
<td></td>
1824-
<td>ToBoolean</li>
1824+
<td>ToBoolean</td>
18251825
<td></td>
18261826
<td></td>
18271827
<td></td>
@@ -1831,9 +1831,9 @@ <h1>DeserializeInt( descriptor )( block, offset, isLittleEndian )</h1>
18311831
<tr>
18321832
<td>Bool16x8</td>
18331833
<td><a href="#simd-boolean-type">boolean</a></td>
1834-
<td>8</li>
1834+
<td>8</td>
18351835
<td></td>
1836-
<td>ToBoolean</li>
1836+
<td>ToBoolean</td>
18371837
<td></td>
18381838
<td></td>
18391839
<td></td>
@@ -1843,9 +1843,9 @@ <h1>DeserializeInt( descriptor )( block, offset, isLittleEndian )</h1>
18431843
<tr>
18441844
<td>Bool8x16</td>
18451845
<td><a href="#simd-boolean-type">boolean</a></td>
1846-
<td>16</li>
1846+
<td>16</td>
18471847
<td></td>
1848-
<td>ToBoolean</li>
1848+
<td>ToBoolean</td>
18491849
<td></td>
18501850
<td></td>
18511851
<td></td>

0 commit comments

Comments
 (0)