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

Commits on Nov 10, 2016

  1. Add an implementation of Default for Heap<*mut T>.

    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>.
    ejpbruel committed Nov 10, 2016
  2. Add a method to create a Heap<T>.

    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.
    ejpbruel committed Nov 10, 2016
  3. Add an implementation of PartialEq for Heap<T>.

    ejpbruel committed Nov 10, 2016

Commits on Nov 11, 2016

  1. 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.
    ejpbruel committed Nov 11, 2016
You can’t perform that action at this time.