-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct array length access #2796
Conversation
Test262 conformance changes
|
Codecov Report
@@ Coverage Diff @@
## main #2796 +/- ##
==========================================
+ Coverage 51.90% 51.94% +0.03%
==========================================
Files 428 428
Lines 43113 43134 +21
==========================================
+ Hits 22378 22406 +28
+ Misses 20735 20728 -7
|
Benchmark for d2cb63aClick to view benchmark
|
8904e2b
to
896dc49
Compare
a406a1e
to
1f90e70
Compare
619860c
to
d9a712c
Compare
bf6681f
to
715ef73
Compare
d9a712c
to
ec570db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!!
715ef73
to
be6ad76
Compare
ec570db
to
a6bdd5f
Compare
be6ad76
to
bd062f8
Compare
a6bdd5f
to
a9f74c2
Compare
a9f74c2
to
59e9b9d
Compare
Benchmark for 6901e42Click to view benchmark
|
59e9b9d
to
de7b959
Compare
de7b959
to
f621507
Compare
Benchmark for 422ce0dClick to view benchmark
|
Benchmark for 04240d3Click to view benchmark
|
1254ba5
to
642e8c8
Compare
Benchmark for e01e1fcClick to view benchmark
|
@HalidOdat did you already check some of the increased execution benches? E.g. String concatenation, String comparison, Static Object Property Access, Object Creation... Just from the diff, I dont see how this could cause those large increases. |
Ran the benchmarks and there was no registered regression, there was a It seems like the faster boa becomes the less accurate the benchmarks becomes. |
642e8c8
to
bec37d1
Compare
Benchmark for 75d1c89Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great change! Just had a small question and a suggestion
bec37d1
to
5366f4a
Compare
5366f4a
to
464e2b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything good!
Benchmark for ff9b320Click to view benchmark
|
Benchmark for 2efc034Click to view benchmark
|
Depends on #2723
This PR utilizes the change done in #2723 on how we store properties on a continues indexed array, this makes the positions of properties such as
"length"
predefined on an array, because it is constructed from anObjectTemplate
.This can make access on such properties just an index lookup into an array, speeding up execution of common operations like
LengthOfArrayLike
.Pointing to #2723 for easier review, once #2723 is merged I will rebase and point to main :)