Reviewers: Mads Ager,

Description:
Track ascii-ness of data in externalized strings.

If a two-byte string only contains ascii characters, then we can save
memory when flattening a cons string containing it. Similarly we can
use this in Array.prototype.join implementation. To track this a new
bit is added to instance type. This bit is used as a hint in generated
code and in runtime functions.

To enable testing a new V8 extension is added controlled by
--expose-externalize-string flag.

Please review this at http://codereview.chromium.org/2762008/show

Affected files:
  M src/arm/codegen-arm.cc
  M src/bootstrapper.cc
  M src/execution.h
  M src/execution.cc
  M src/flag-definitions.h
  M src/heap.h
  M src/heap.cc
  M src/ia32/codegen-ia32.cc
  M src/objects-debug.cc
  M src/objects-inl.h
  M src/objects.h
  M src/objects.cc
  M src/runtime.cc
  M src/x64/codegen-x64.cc
  A test/mjsunit/string-externalize.js


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

Reply via email to