Fixed bool <-> Executability confusion and improved typing a bit.
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Aug 2011 10:55:44 +0000 (10:55 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Aug 2011 10:55:44 +0000 (10:55 +0000)
commita546e4a8dd2f5585133a857512ed0c4a53ac34ca
tree5d345449b59eef021fdb575029136f607fe4758d
parent0946ce67d31237b4679994d9f74c243a8a7bd305
Fixed bool <-> Executability confusion and improved typing a bit.

Passing a value of type Executability to a function expecting a bool worked only
by accident (because of the order of values in the enum). But using boolean
parameters is often a bad idea, anyway, so we use Executability directly.

Just another example why implicit type conversions in C++ are a bad idea... :-P
Review URL: http://codereview.chromium.org/7753001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9013 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/spaces-inl.h
src/spaces.cc
src/spaces.h