Addressed feedback, waiting to land this until our bleeding_edge is open for
non-bug-fixes again...
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Can we rephrase the comment so that it doesn't use personal pronouns.
E.g. "Such
> a field must be retrieved via GetAlignedPointerFromInternalField,
everything
> else [...]"
Done here and at similar places.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Even though this pattern is safe, GCMole might report it as a false
positive.
Done.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Can we call this InternalFieldOK?
Done.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Even though this pattern is safe, GCMole might report it as a false
positive.
Done.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> You can get a ToLocal by calling it ExternalToLocal and adding the
following
> line to api.h, I would prefer that:
> MAKE_TO_LOCAL(ExternalToLocal, JSObject, External)
Ooops, forgot that TODO. Good point, one can even remove the old
incorrect conversion From Foreign to External.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> This pattern is not GC-safe and GCMole will (hopefully) complain about
it. First
> allocate the array, and then take the native_context dereference.
> Handle<FixedArray> embedder_data = factory->NewFixedArray(2);
> native_context()->set_embedder_data(embedder_data);
Done.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> This can just be "isolate->native_context()->embedder_data()" without
the
> explicit dereference.
Done. Excessive overloading FTW! :-P
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Can we move this to FixedArrayBase, right after the constant is
actually
> defined? Closer is better.
I put the check here intentionally, and I think it is actually a better
place than the one in FixedArrayBase: The user of kFixedArrayHeaderSize
only cares about the fact that the object in question is a FixedArray
and not about the implementation hierarchy. I really want to assert that
FixedArray::kHeaderSize is equal to kFixedArrayHeaderSize, so it belongs
here.
On 2012/10/25 09:41:53, Michael Starzinger wrote:
> Add second empty newline for readability.
Done.
https://codereview.chromium.org/11190050/