v8/include
bmeurer 0abba43524 [stubs] Improve code generation for ToBoolean.
Introduce a proper CodeStubAssembler::BranchIfToBooleanIsTrue helper
method, that branches to if_true/if_false labels depending on whether
the value that is passed would yield true or false when fed to
ToBoolean. Use this helper to implement the bytecode handlers w/o having
to materialize the temporary booleans and essentially branching twice.
The CodeStubAssembler::BranchIfToBooleanIsTrue helper favors the most
likely case of a Boolean constant now.

Also migrate the ToBooleanStub to a ToBoolean TurboFan builtin, that
also uses the helper method under the hood.

Remove the now obsolete Oddball::to_boolean field.

R=hpayer@chromium.org, rmcilroy@chromium.org, yangguo@chromium.org

Review-Url: https://codereview.chromium.org/2151163002
Cr-Commit-Position: refs/heads/master@{#37849}
2016-07-19 06:16:14 +00:00
..
libplatform [api] Assume that v8/include is in the include path for all public headers 2016-02-29 11:03:02 +00:00
OWNERS Add myself to include/OWNERS 2015-04-21 10:05:59 +00:00
v8-debug.h Add a convenience method to get the debugged context 2016-06-06 14:12:10 +00:00
v8-experimental.h [api] Assume that v8/include is in the include path for all public headers 2016-02-29 11:03:02 +00:00
v8-platform.h [Tracing] Remove deprecated AddTraceEvent 2016-03-01 21:20:48 +00:00
v8-profiler.h Introduce v8::CpuProfiler::New and v8::CpuProfiler::Dispose API. 2016-07-08 15:01:10 +00:00
v8-testing.h Remove easy to remove calls to Isolate::Current() from api.cc 2015-11-30 08:16:59 +00:00
v8-util.h [API] Remove deprecated WeakCallbackData and related functions. 2016-05-06 13:18:07 +00:00
v8-version.h Update version to 5.4 2016-06-30 14:03:34 +00:00
v8.h [stubs] Improve code generation for ToBoolean. 2016-07-19 06:16:14 +00:00
v8config.h Use C++11 / gnu++11, not 0x 2016-03-22 15:24:43 +00:00