Reviewers: Hannes Payer,

Message:
Hi Hannes, as discussed, here is a snippet of work from the already-reviewed
pretenure-call-new support (https://codereview.chromium.org/132963012/).

The one piece of new code is in CallConstructStub::Generate(), where just after the call to GenerateRecordCallTarget(), we need to conditionally put either the
AllocationSite or undefined value in the feedback register.

Pretenure call new doesn't need to do that because it is guaranteed to always
have an allocation site in this case.

Description:
Array constructor expects AllocationSite or undefined as feedback.

Redefine Array constructor to expect an AllocationSite in the feedback
register or undefined. This will make code simpler as we support
pretenuring feedback for all constructed objects.

[email protected]

Please review this at https://codereview.chromium.org/203173003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+97, -156 lines):
  M src/a64/builtins-a64.cc
  M src/a64/code-stubs-a64.cc
  M src/a64/lithium-codegen-a64.cc
  M src/arm/builtins-arm.cc
  M src/arm/code-stubs-arm.cc
  M src/arm/lithium-codegen-arm.cc
  M src/ia32/builtins-ia32.cc
  M src/ia32/code-stubs-ia32.cc
  M src/ia32/lithium-codegen-ia32.cc
  M src/runtime.cc
  M src/x64/builtins-x64.cc
  M src/x64/code-stubs-x64.cc
  M src/x64/lithium-codegen-x64.cc


--
--
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/d/optout.

Reply via email to