Reviewers: Sven Panne, danno,

Message:
@Danno: Could you PTAL at the API changes.
@Sven: Could you PTAL at the implementation.


https://chromiumcodereview.appspot.com/10442129/diff/1/include/v8.h
File include/v8.h (right):

https://chromiumcodereview.appspot.com/10442129/diff/1/include/v8.h#newcode2362
include/v8.h:2362: Handle<FunctionTemplate> constructor =
As discussed offline, we might want to wrap this FunctionTemplate into
some AccessorSignature, because we already have a similar concept for
invocation callbacks.

Description:
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.

[email protected]
BUG=v8:2075
TEST=cctest/test-api/InstanceCheckOn[*]


Please review this at https://chromiumcodereview.appspot.com/10442129/

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

Affected files:
  M include/v8.h
  M src/api.cc
  M src/arm/stub-cache-arm.cc
  M src/ia32/stub-cache-ia32.cc
  M src/ic.cc
  M src/mips/stub-cache-mips.cc
  M src/objects-debug.cc
  M src/objects-inl.h
  M src/objects.h
  M src/objects.cc
  M src/stub-cache.cc
  M src/x64/stub-cache-x64.cc
  M test/cctest/test-api.cc


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

Reply via email to