Skip to content

Commit

Permalink
1. Change JSObject.weak_ref_list to use a bit and external hash table…
Browse files Browse the repository at this point in the history
… to save memory for each object (8 bytes on 64-bit platform)

2. Add a generic hashmap implementation
3. change Error JSObject.is_uncatchable_error flag to JSObject.u.error struct, to leave room for weak ref flag bit
  • Loading branch information
LanderlYoung committed Aug 6, 2024
1 parent 8fdcfba commit 8b6bb69
Show file tree
Hide file tree
Showing 3 changed files with 524 additions and 108 deletions.
1 change: 0 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Optimization ideas:
- add implicit numeric strings for Uint32 numbers?
- optimize `s += a + b`, `s += a.b` and similar simple expressions
- ensure string canonical representation and optimise comparisons and hashes?
- remove JSObject.first_weak_ref, use bit+context based hashed array for weak references
- property access optimization on the global object, functions,
prototypes and special non extensible objects.
- create object literals with the correct length by backpatching length argument
Expand Down
Loading

0 comments on commit 8b6bb69

Please sign in to comment.