• svenpanne@chromium.org's avatar
    Simplify and optimize ToBoolean handling. · 06bea35f
    svenpanne@chromium.org authored
    Changing our builtin JavaScript code slightly, we can make sure that we never
    see internal objects as arguments for ToBoolean at runtime. Removing that case
    from the stub generator and crankshaft makes things a lot easier.
    
    Heap numbers can never be undetectable (only strings and spec objects can), so
    we can leave out a useless test.
    
    Try to re-use a non-null register value when returning 'true' in some cases.
    
    Removed special handling of the 'handle all' case, it will very probably never
    happen in real code and only makes things more complicated.
    
    Improved naming of the ToBoolean stubs a bit, reflecting the order in which
    cases are handled in the code itself.
    Review URL: http://codereview.chromium.org/7497063
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8886 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    06bea35f
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
preparser Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
SConstruct Loading commit data...