[code-reflection] RFR: Float4 arrayView support [v3]

Ruby Chen duke at openjdk.org
Fri Nov 7 19:03:29 UTC 2025


> Preliminary `Float4` support for arrayViews. Currently only supported for `F32ArrayPadded` buffers, which can be accessed like a `Float4[]` as shown below:
> 
> Float4[] arr = buffer.float4ArrayView(); // for a F32ArrayPadded buffer
> 
> At the moment, to use an element in the array, the `Float4` must be loaded into a separate variable first, i.e.
> 
> Float4 a = arr[index * 4];
> 
> A value can be stored into the array through the following syntax:
> 
> arr[index * 4] = ...

Ruby Chen has updated the pull request incrementally with one additional commit since the last revision:

  Taking out vector arrayview tests for now

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/646/files
  - new: https://git.openjdk.org/babylon/pull/646/files/a1d4fdca..1ab7a3a2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=646&range=02
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=646&range=01-02

  Stats: 702 lines in 1 file changed: 0 ins; 0 del; 702 mod
  Patch: https://git.openjdk.org/babylon/pull/646.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/646/head:pull/646

PR: https://git.openjdk.org/babylon/pull/646


More information about the babylon-dev mailing list