Right on thanks much,
--Michael

https://codereview.chromium.org/40063002/diff/660001/src/allocation-site-scopes.cc
File src/allocation-site-scopes.cc (right):

https://codereview.chromium.org/40063002/diff/660001/src/allocation-site-scopes.cc#newcode89
src/allocation-site-scopes.cc:89: if (FLAG_allocation_site_pretenuring)
{
On 2013/11/27 10:51:37, Hannes Payer wrote:
This method looks too complicated.
What about:

if (activated_ &&
AllocationSite::CanTrack(object->map()->instance_type())) {
   if (FLAG_allocation_site_pretenuring ||
       AllocationSite::GetMode(object->GetElementsKind()) ==
           TRACK_ALLOCATION_SITE) {
     if (FLAG_trace_creation_allocation_sites) {
       PrintF("*** Creating Memento for %s %p\n",
                object->IsJSArray() ? "JSArray" : "JSObject",
                static_cast<void*>(*object));
     }
     return true;
   }
}
return false;


great idea, thx.

https://codereview.chromium.org/40063002/diff/660001/src/objects.cc
File src/objects.cc (right):

https://codereview.chromium.org/40063002/diff/660001/src/objects.cc#newcode9213
src/objects.cc:9213: // Currently, AllocationMemento objects are only
allocated immediately
On 2013/11/27 10:51:37, Hannes Payer wrote:
Please update this comment.

Done.

https://codereview.chromium.org/40063002/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to