Skip to content

Instantly share code, notes, and snippets.

class Helpers {
constructor() {
this.buf = new ArrayBuffer(8);
this.f64 = new Float64Array(this.buf);
this.f32 = new Float32Array(this.buf);
this.u32 = new Uint32Array(this.buf);
this.u64 = new BigUint64Array(this.buf);
this.state = {};
}
class Helpers {
constructor() {
this.buf = new ArrayBuffer(8);
this.f64 = new Float64Array(this.buf);
this.f32 = new Float32Array(this.buf);
this.u32 = new Uint32Array(this.buf);
this.state = {};
this.i = 0;
}
DebugPrint: 0x2beb08215ee9: [JSArray] in OldSpace
- map: 0x2beb08247399 <Map(HOLEY_DOUBLE_ELEMENTS)> [FastProperties]
- prototype: 0x2beb0820b899 <JSArray[1]>
- elements: 0x2beb08215ed9 <FixedDoubleArray[1]> [HOLEY_DOUBLE_ELEMENTS]
- length: 1
- properties: 0x2beb082166d9 <PropertyArray[3]>
- All own properties (excluding elements): {
0x2beb080446d1: [String] in ReadOnlySpace: #length: 0x2beb0818215d <AccessorInfo> (const accessor descriptor), location: descriptor
0x2beb08044115: [String] in ReadOnlySpace: #constructor: 0x2beb0821661d <JSFunction (sfi = 0x2beb08213349)> (const data field 0), location: properties[0]
}
class Helpers {
constructor() {
this.buf = new ArrayBuffer(8);
this.f64 = new Float64Array(this.buf);
this.u32 = new Uint32Array(this.buf);
}
ftoil(f) {
this.f64[0] = f;
return this.u32[0]
}
#!/bin/bash
gn gen out/x64.release --args='is_debug=false target_cpu="x64" symbol_level=2 v8_enable_object_print=true v8_enable_backtrace=true'
ninja -C out/x64.release d8
class Helpers {
constructor() {
this.addrof_LO = new Array(1048577);
this.buf = new ArrayBuffer(8);
this.f64 = new Float64Array(this.buf);
this.f32 = new Float32Array(this.buf);
this.u32 = new Uint32Array(this.buf);
this.u64 = new BigUint64Array(this.buf);
this.state = {};