Move extensibility check to the top of Object.isFrozen/Object.isSealed
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 25 Feb 2013 19:44:21 +0000 (19:44 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 25 Feb 2013 19:44:21 +0000 (19:44 +0000)
commit8f407c7b99d78741d8386403c098cbd7c3575baa
treeb6e644fa3fc6eaf8ff43eae8733af212c0a47a3f
parent30a4a798e5bb50fa950f64af9da0e6f0d19ed9a4
Move extensibility check to the top of Object.isFrozen/Object.isSealed

This speeds up isFrozen/isSealed checks on "normal" objects without
slowing down checks on frozen/sealed objects.

Though this ordering is not what ES5 specifies, the difference is not
observable (especially since the code bails out if the passed-in object
is a proxy).

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13726 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js