Speed up non-interceptor case of Object.getOwnPropertyNames
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 25 Feb 2013 18:58:47 +0000 (18:58 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 25 Feb 2013 18:58:47 +0000 (18:58 +0000)
commit30a4a798e5bb50fa950f64af9da0e6f0d19ed9a4
tree449a20ebfce7ba68fa6a8e4d4958bf7b3316beda
parentcb5c8554c02b26511f8673c359612248813be870
Speed up non-interceptor case of Object.getOwnPropertyNames

When there are interceptors on an object, it's possible to
end up with duplicate property names. But when all the names
are provided by v8, a collision is not possible, so we can
fast-path that case by not de-duping.

Also added better test coverage for interceptor API.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13725 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js
test/cctest/test-api.cc