Go to file
svenpanne@chromium.org 06bea35f7f Simplify and optimize ToBoolean handling.
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
2011-08-11 07:22:16 +00:00
benchmarks Promote the current V8 benchmark suite candidate to version 6. 2010-10-07 07:25:22 +00:00
build Fix cross-compilation for ARM (hopefully) 2011-08-10 14:07:26 +00:00
include Fixed a known issue in D8 (read file), enabled D8 shared library build on Windows. 2011-08-08 09:34:18 +00:00
preparser Make GYP build usable for day-to-day work (second attempt) 2011-08-05 09:44:30 +00:00
samples Make GYP build usable for day-to-day work (second attempt) 2011-08-05 09:44:30 +00:00
src Simplify and optimize ToBoolean handling. 2011-08-11 07:22:16 +00:00
test Allows not API functions as inputs for CreationConext method. 2011-08-11 06:40:14 +00:00
tools Fix cross-compilation for ARM (hopefully) 2011-08-10 14:07:26 +00:00
.gitignore Make GYP build usable for day-to-day work (second attempt) 2011-08-05 09:44:30 +00:00
AUTHORS Fixes the build for the shell on illumos and Solaris. -D__C99FEATURES__ was added to mirror how the build is done on the normal platform. The changes in the platform code are a follow up to a prior review and has the Solaris implementation be more similar to the Linux version as opposed to the FreeBSD. 2011-07-01 05:50:14 +00:00
ChangeLog Prepare push to trunk. Now working on version 3.5.5. 2011-08-10 11:22:23 +00:00
LICENSE Fix the license info to correctly state Copyright "the V8 project 2011-01-19 09:20:18 +00:00
LICENSE.strongtalk Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.v8 Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.valgrind Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
Makefile Support OUTDIR variable for tests triggered by Makefile 2011-08-10 11:07:31 +00:00
SConstruct Allow snapshots to be generated without using vfp3 code on arm. 2011-08-10 11:14:32 +00:00