Skip to content
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

Implement a Trace trait for types that can be traced. #314

Merged
merged 5 commits into from Nov 14, 2016

Conversation

@ejpbruel
Copy link
Contributor

ejpbruel commented Nov 10, 2016

We expose several JSAPI functions that are used for tracing. By abstracting these functions behind
a trait we can overload them on the type to be traced.


This change is Reviewable

ejpbruel added 5 commits Nov 10, 2016
We should be able to create a default value for any Heap<*mut T> where *mut T implements
GCMethods<*mut T> and Copy, not just for Heap<*mut JSObject>.
Currently, to create a Heap<T>, one first has to create a Heap<T>::default, and then call
Heap<T>::set. This is a common pattern and therefore should be abstracted behind a method.
We expose several JSAPI functions that are used for tracing. By abstracting these functions behind
a trait we can overload them on the type to be traced.
@ejpbruel ejpbruel force-pushed the ejpbruel:trace branch from fc34b08 to 2e6d70b Nov 11, 2016
@Ms2ger
Copy link
Collaborator

Ms2ger commented Nov 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 14, 2016

📌 Commit 2e6d70b has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Nov 14, 2016

Testing commit 2e6d70b with merge 28871ca...

bors-servo added a commit that referenced this pull request Nov 14, 2016
Implement a Trace trait for types that can be traced.

We expose several JSAPI functions that are used for tracing. By abstracting these functions behind
a trait we can overload them on the type to be traced.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/314)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 14, 2016

💔 Test failed - status-travis

@Ms2ger
Copy link
Collaborator

Ms2ger commented Nov 14, 2016

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Nov 14, 2016

Testing commit 2e6d70b with merge a24d3b6...

bors-servo added a commit that referenced this pull request Nov 14, 2016
Implement a Trace trait for types that can be traced.

We expose several JSAPI functions that are used for tracing. By abstracting these functions behind
a trait we can overload them on the type to be traced.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/314)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 14, 2016

☀️ Test successful - status-appveyor, status-travis

@bors-servo bors-servo merged commit 2e6d70b into servo:master Nov 14, 2016
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@ejpbruel
Copy link
Contributor Author

ejpbruel commented Nov 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.