This repository was archived by the owner on Jan 26, 2022. It is now read-only.
Add a thisSIMDValue() abstract operation.#339
Open
stoklund wants to merge 1 commit intotc39:masterfrom
stoklund:thisSimdValue
Open
Add a thisSIMDValue() abstract operation.#339stoklund wants to merge 1 commit intotc39:masterfrom stoklund:thisSimdValue
thisSIMDValue() abstract operation.#339stoklund wants to merge 1 commit intotc39:masterfrom
stoklund:thisSimdValue
Conversation
Modelled after the existing `thisNumberValue()`, `thisBooleanValue()`, ... abstract operations, accept either a primitive SIMD value or a SIMD object wrapping a value. In either case, return the primitive SIMD value. Use this function in the SIMD constructor prototype methods such that they accept both SIMD objects and primitive values as callees. - Use [[SIMDData]] everywhere instead of [[SIMDWrapperData]]. - Fix a few pasto's in verbiage copied from the `Symbol` specification. This fixes #338.
| <emu-clause id="simd-proto"> | ||
| <h1>The _SIMD_Constructor.prototype</h1> | ||
|
|
||
| <emu-clause id="this-simd-value" aoid="thisSIMDValue"> |
Contributor
There was a problem hiding this comment.
Perhaps useful to add something like this here ? Similar to Number prototype.
Unless explicitly stated otherwise, the methods of the SIMD prototype object defined below are not generic and the this value passed to them must be either a SIMD value or an object that has a [[SIMDData]] internal slot that has been initialized to a SIMD value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modelled after the existing
thisNumberValue(),thisBooleanValue(), ...abstract operations, accept either a primitive SIMD value or a SIMD object
wrapping a value. In either case, return the primitive SIMD value.
Use this function in the SIMD constructor prototype methods such that they
accept both SIMD objects and primitive values as callees.
Symbolspecification.This fixes #338.