node/deps/v8/test
Anna Henningsen f829660c71
deps: cherry-pick 8ed65b97 from V8's upstream
Original commit message:

    Make FieldType::None() non-nullptr value to avoid undefined behaviour

    When FieldType::None() returns a cast Smi::FromInt(0), which translates
    as nullptr, the FieldType::IsNone() check becomes equivalent to
    `this == nullptr` which is not allowed by the standard and
    therefore optimized away as a false constant by GCC 6.

    This has lead to crashes when invoking methods on FieldType::None().

    Using a different Smi constant for FieldType::None() makes the compiler
    always include a comparison against that value. The choice of these
    constants has no effect as they are effectively arbitrary.

    BUG=https://github.com/nodejs/node/issues/8310

    Review-Url: https://codereview.chromium.org/2292953002
    Cr-Commit-Position: refs/heads/master@{#39023}

Fixes: https://github.com/nodejs/node/issues/8310
PR-URL: https://github.com/nodejs/node/pull/8411
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
2016-09-08 10:27:09 +02:00
..
benchmarks
cctest deps: cherry-pick 8ed65b97 from V8's upstream 2016-09-08 10:27:09 +02:00
fuzzer deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
intl deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
js-perf-test deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
memory
message deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
mjsunit deps: cherry-pick a51f429 from V8 upstream 2016-08-25 10:33:52 -07:00
mozilla deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
preparser deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
promises-aplus deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
simdjs deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
test262 deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
unittests deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
webkit deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
bot_default.gyp
bot_default.isolate
default.gyp
default.isolate
ignition.gyp
ignition.isolate deps: update V8 to 5.1.281.75 2016-08-25 10:31:11 -07:00
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate