Add map transition for observed objects
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sat, 13 Jul 2013 00:20:40 +0000 (00:20 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sat, 13 Jul 2013 00:20:40 +0000 (00:20 +0000)
commit625a0e97594ee4e8ceb05f1c949d2625cad147c2
tree4c9d353abf82778ca6180791c3388b1fadb7f354
parentf5ab1b2a4a567bc089510e8f04a2ed6e4a2ccfc8
Add map transition for observed objects

This patch enables objects to undergo a single transition when they become observed, avoiding the need to create a new map for every observed objects.

Observed objects which become unobserved does not cause another map transition and unobserved does not clear the observed bit on the map. The unobserved object.

R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/18221006

Patch from Rafael Weinstein <rafaelw@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15650 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/heap.cc
src/heap.h
src/object-observe.js
src/objects.cc
src/objects.h
src/runtime.cc
src/runtime.h