v8torque is an actively used programming language created in 2018.

1Years Old 0Users 0Jobs
  • v8torque does not currently rank in our top 50% of languages
  • v8torque first appeared in 2018
  • I have 10 facts about v8torque. what would you like to know? email me and let me know how I can help.

Example code from the web:

 macro LoadDataViewUint32(buffer: JSArrayBuffer, offset: intptr,
                   requested_little_endian: bool,
                   signed: constexpr bool): Number {
  let data_pointer: RawPtr = buffer.backing_store;

  let b0: uint32 = LoadUint8(data_pointer, offset);
  let b1: uint32 = LoadUint8(data_pointer, offset + 1);
  let b2: uint32 = LoadUint8(data_pointer, offset + 2);
  let b3: uint32 = LoadUint8(data_pointer, offset + 3);
  let result: uint32;

  if (requested_little_endian) {
    result = (b3 << 24) | (b2 << 16) | (b1 << 8) | b0;
  } else {
    result = (b0 << 24) | (b1 << 16) | (b2 << 8) | b3;
  }

  return convert<Number>(result);
}

Last updated December 4th, 2019

Edit v8torque