Reviewers: Toon Verwaest, Michael Starzinger,

Message:
PTAL.

Description:
Make maps in monomorphic IC stubs weak.

Maps in monomorphic Load, KeyedLoad, Store, KeyedStore, and CompareNil IC
stubs are treated as weak references by the marking visitor.

During generation of an IC stub with a weak map, the stub is appended to the
dependent code array of the map. When the map dies, all stubs in its dependent code array are invalidated by setting embedded maps to undefined and replacing
handlers with the miss builtin.


BUG=v8:2073
TEST=cctest/test-heap/WeakMapInMonomorphic*IC

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

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

Affected files (+243, -13 lines):
  M src/code-stubs.h
  M src/code-stubs.cc
  M src/flag-definitions.h
  M src/ic.h
  M src/ic.cc
  M src/mark-compact.h
  M src/mark-compact.cc
  M src/objects.h
  M src/objects-debug.cc
  M src/objects-inl.h
  M src/stub-cache.cc
  M test/cctest/test-heap.cc


--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to