SIMD.%type%.prototype.toSource()

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

SIMD.js has been taken out of active development in TC39 and removed from Stage 3. It is not being pursued by web browsers for implementation anymore. SIMD operations exposed to the web are under active development within WebAssembly, with operations based on the SIMD.js operations.

The non-standard SIMD.%type%.toSource() method returns a string representing the source code of the object.

Syntax

SIMD.Float32x4.toSource()
SIMD.Float64x2.toSource()

SIMD.Int8x16.toSource()
SIMD.Int16x8.toSource()
SIMD.Int32x4.toSource()

SIMD.Uint8x16.toSource()
SIMD.Uint16x8.toSource()
SIMD.Uint32x4.toSource()

SIMD.Bool8x16.toSource() 
SIMD.Bool16x8.toSource() 
SIMD.Bool32x4.toSource()
SIMD.Bool64x2.toSource()

Return value

A String representing the source code of the object.

Examples

Using toSource() with a Float32x4

var a = SIMD.Float32x4(11, 22, 33, 44);

a.toSource(); // "SIMD.Float32x4(11, 22, 33, 44)"

Specifications

Not part of any standard or specification.

Browser compatibility

Experimental SIMD.js has been removed from browsers. It's still available in Firefox Nightly, but will be removed in favor of a SIMD implementation in WebAssembly. See also bug 1416723.

See also

Document Tags and Contributors

Contributors to this page: fscholz
Last updated by: fscholz,