-
-
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
[Merged by Bors] - Extract Intrinsics
struct from Context
and cleanup names
#1890
Conversation
Test262 conformance changesVM implementation
|
Codecov Report
@@ Coverage Diff @@
## main #1890 +/- ##
==========================================
- Coverage 46.58% 46.41% -0.18%
==========================================
Files 206 206
Lines 16781 16790 +9
==========================================
- Hits 7818 7793 -25
- Misses 8963 8997 +34
Continue to review full report at Codecov.
|
Benchmark for 1e5beb4Click to view benchmark
|
1284d2a
to
8e1aa3d
Compare
Benchmark for 6995448Click to view benchmark
|
Benchmark for fea3e93Click 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.
Looks good!
check my comment on how we might improve this :)
8030e2a
to
900a14d
Compare
Benchmark for dae0362Click to view benchmark
|
bors r+ |
Building up to #186, this PR extracts an `Intrinsics` struct from `Context`, facilitating a lot the extraction of a `Realm` struct. Also, it adapts the `BuiltIn` trait to be useful for builtins that don't expose a global property on initialization (`Generator`, `TypedArray`, etc.) It changes the following: - Creates an `Intrinsics` struct and refactors `Context` to transfer its intrinsic related fields to `Intrinsics`. - Renames some methods and parameters to better describe their functionality. - Makes `BuiltIn::init` return `Option<JsValue>` to skip global property initialization if the builtin initialization returns `None`
Pull request successfully merged into main. Build succeeded: |
Intrinsics
struct from Context
and cleanup namesIntrinsics
struct from Context
and cleanup names
Building up to #186, this PR extracts an
Intrinsics
struct fromContext
, facilitating a lot the extraction of aRealm
struct.Also, it adapts the
BuiltIn
trait to be useful for builtins that don't expose a global property on initialization (Generator
,TypedArray
, etc.)It changes the following:
Intrinsics
struct and refactorsContext
to transfer its intrinsic related fields toIntrinsics
.BuiltIn::init
returnOption<JsValue>
to skip global property initialization if the builtin initialization returnsNone