-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
ConstructorBuilder
, ObjectInitializer
, cache standard objects and fix global object attributes
#722
Conversation
7087263
to
01c30a0
Compare
Codecov Report
@@ Coverage Diff @@
## master #722 +/- ##
==========================================
- Coverage 59.28% 58.85% -0.43%
==========================================
Files 156 156
Lines 9820 9822 +2
==========================================
- Hits 5822 5781 -41
- Misses 3998 4041 +43
Continue to review full report at Codecov.
|
Benchmark for 662fa96Click to view benchmark
|
ConstructorBuilder
, ObjectBuilder
, cache standard objects and fix global object attributes
feac0c4
to
df4d691
Compare
ConstructorBuilder
, ObjectBuilder
, cache standard objects and fix global object attributesConstructorBuilder
, ObjectInitializer
, cache standard objects and fix global object attributes
4639cd7
to
5804418
Compare
Benchmark for 380dfb7Click to view benchmark
|
Benchmark for 65d95aeClick to view benchmark
|
Benchmark for fd04f3dClick to view benchmark
|
This is ready for review/merge :) Created some issues to track what has been fixed/improved, and looking at how many there are... maybe I put too much in this PR 😅 |
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.
There are some typos and a few things I didn't fully understand.
Benchmark for 863c285Click to view benchmark
|
I like the switch to builders instead of calling |
58c0a5a
to
edb683b
Compare
- Add BuiltIn trait - Add ConstructorBuilder - Add ObjectInitializer - Cache core standard objects - More efficient ConstructorBuilder::build() - Allow to specify which prototype to inherit - Refactor object property insertion - Made ClassBuilder use ConstructorBuilder - Make ConstructorBuilder::build() return GcObject - Implement Debug for ClassBuilder and ConstructorBuilder - Make ClassBuilder methods return &mut Self - Make ObjectBuilder::build() return a GcObject - Fixed global objects/properies attributes - Fixed function prototype and attributes - doc cached standard objects - Set error object types to inherit from `Error.prototype` - Added FunctionBuilder - Add #[inline]
edb683b
to
79f581f
Compare
Benchmark for e1fd1e4Click to view benchmark
|
Benchmark for f720978Click to view benchmark
|
This Pull Request fixes/closes #613.
It changes the following:
ClassBuilder
retun&mut Self