Implement implicit instance checks for API accessors.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Jun 2012 07:45:11 +0000 (07:45 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Jun 2012 07:45:11 +0000 (07:45 +0000)
commit81e8aa00164f17c327b9227e1cea5785704abd7c
treeee418a167c037d50d82bc04ddefd1694420c94da
parent15ecbe0f93711960c61829a0f8b7b7f58fd25ded
Implement implicit instance checks for API accessors.

This allows to specify a constructor against which an implicit instance
check is performed for API accessors. If the receiver is incompatible,
an implicit TypeError is thrown and no callback is invoked.

R=svenpanne@chromium.org
BUG=v8:2075
TEST=cctest/test-api/InstanceCheckOn[*]

Review URL: https://chromiumcodereview.appspot.com/10442129

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11734 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
14 files changed:
include/v8.h
src/api.cc
src/api.h
src/arm/stub-cache-arm.cc
src/ia32/stub-cache-ia32.cc
src/ic.cc
src/mips/stub-cache-mips.cc
src/objects-debug.cc
src/objects-inl.h
src/objects.cc
src/objects.h
src/stub-cache.cc
src/x64/stub-cache-x64.cc
test/cctest/test-api.cc