Reviewers: Jakob,

Message:
PTAL.

Reviewer guidance:

Main changes are: 1) the transitioned ElementsKind for the default Array() are
cached in the global context and used in stubs in the Array constructor. 2)
Array construction in the runtime is bottlenecked through new common routines in heap.cc to make sure that the ElementsKind transition policy for new Arrays is
handled consistently for all allocations.

Description:
Store transitioned JSArray maps in global context


BUG=
TEST=


Please review this at http://codereview.chromium.org/9073007/

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

Affected files:
  M src/accessors.cc
  M src/arm/builtins-arm.cc
  M src/arm/macro-assembler-arm.h
  M src/arm/macro-assembler-arm.cc
  M src/bootstrapper.cc
  M src/builtins.cc
  M src/contexts.h
  M src/factory.h
  M src/factory.cc
  M src/heap.h
  M src/heap.cc
  M src/ia32/builtins-ia32.cc
  M src/ia32/macro-assembler-ia32.h
  M src/ia32/macro-assembler-ia32.cc
  M src/objects-inl.h
  M src/objects.h
  M src/objects.cc
  M src/parser.cc
  M src/runtime.cc
  M src/x64/builtins-x64.cc
  M src/x64/macro-assembler-x64.h
  M src/x64/macro-assembler-x64.cc
  M test/cctest/test-heap.cc
  M test/mjsunit/array-construct-transition.js
  M test/mjsunit/elements-kind.js
  M test/mjsunit/elements-transition.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to