Skip to content

Commit

Permalink
Normative: Add resizable ArrayBuffer and growable SharedArrayBuffer (t…
Browse files Browse the repository at this point in the history
…c39#3116)

Major differences from the spec draft:

- The idempotent byte length getter machinery is replaced with
  Integer-Indexed Object With Buffer Witness Record and DataView With
  BufferWitness Record values instead. These records cache the byte
  length ahead of time. Because shared memory events are observable,
  there should only be a single load event of growable SAB byte length
  until the next point where user code may be called.

- IsResizableArrayBuffer is negated and renamed to
  IsFixedLengthArrayBuffer, because it covers both resizable ABs and
  growable SABs.
  • Loading branch information
syg authored and ljharb committed Oct 12, 2023
1 parent d254495 commit a9ae96e
Show file tree
Hide file tree
Showing 2 changed files with 851 additions and 191 deletions.
4 changes: 1 addition & 3 deletions esmeta-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
"Catch[0,0].CatchClauseEvaluation",
"Catch[1,0].CatchClauseEvaluation",
"ClassStaticBlockBody[0,0].EvaluateClassStaticBlockBody",
"CreateArrayIterator",
"CreateBuiltinFunction",
"CreateIterResultObject",
"ECMAScriptFunctionObject.Call",
"ECMAScriptFunctionObject.Construct",
"FindViaPredicate",
"FlattenIntoArray",
"ForIn/OfBodyEvaluation",
"FunctionBody[0,0].EvaluateFunctionBody",
Expand All @@ -36,6 +34,7 @@
"IntegerIndexedObjectCreate",
"LabelledItem[1,0].LabelledEvaluation",
"LengthOfArrayLike",
"MakeIntegerIndexedObjectWithBufferWitnessRecord",
"MethodDefinition[0,0].DefineMethod",
"ModuleNamespaceCreate",
"ModuleNamespaceExoticObject.OwnPropertyKeys",
Expand All @@ -44,7 +43,6 @@
"SerializeJSONObject",
"SetDefaultGlobalBindings",
"SetFunctionLength",
"SortIndexedProperties",
"SourceTextModuleRecord.ExecuteModule",
"SourceTextModuleRecord.ResolveExport",
"SpeciesConstructor",
Expand Down
Loading

0 comments on commit a9ae96e

Please sign in to comment.