Change the special handling of typeof comparisons to strings for
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Nov 2009 16:08:48 +0000 (16:08 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Nov 2009 16:08:48 +0000 (16:08 +0000)
commitdebb5f8b48e2e6ee004f4e39591cf6da65d21d5e
treee5ba007205b7fb4e1fdc97efd52d0460647c88f3
parent930ab041a8d2e11ccafb140832aa2b569650a09c
Change the special handling of typeof comparisons to strings for
regular expressions to be consistent with typeof in other contexts.
Typeof regular expressions should now be 'function' in all contexts.

In the JS natives, IS_FUNCTION, IS_OBJECT, and IS_REGEXP return the
same answers as before.

Review URL: http://codereview.chromium.org/360053

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3231 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/codegen-arm.cc
src/ia32/codegen-ia32.cc
src/macros.py
src/x64/codegen-x64.cc
test/mjsunit/mjsunit.js