diff options
Diffstat (limited to 'deps/v8/test/cctest/test-code-stubs.cc')
-rw-r--r-- | deps/v8/test/cctest/test-code-stubs.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/deps/v8/test/cctest/test-code-stubs.cc b/deps/v8/test/cctest/test-code-stubs.cc index 0784aac78e..95035aab0b 100644 --- a/deps/v8/test/cctest/test-code-stubs.cc +++ b/deps/v8/test/cctest/test-code-stubs.cc @@ -62,7 +62,7 @@ int STDCALL ConvertDToICVersion(double d) { } } else { uint64_t big_result = - (BitCast<uint64_t>(d) & Double::kSignificandMask) | Double::kHiddenBit; + (bit_cast<uint64_t>(d) & Double::kSignificandMask) | Double::kHiddenBit; big_result = big_result >> (Double::kPhysicalSignificandSize - exponent); result = static_cast<uint32_t>(big_result); } @@ -172,3 +172,19 @@ void RunAllTruncationTests(ConvertDToICallWrapper callWrapper, #undef NaN #undef Infinity #undef RunOneTruncationTest + + +TEST(CodeStubMajorKeys) { + CcTest::InitializeVM(); + LocalContext context; + Isolate* isolate = CcTest::i_isolate(); + +#define CHECK_STUB(NAME) \ + { \ + HandleScope scope(isolate); \ + NAME##Stub stub_impl(0xabcd, isolate); \ + CodeStub* stub = &stub_impl; \ + CHECK_EQ(stub->MajorKey(), CodeStub::NAME); \ + } + CODE_STUB_LIST(CHECK_STUB); +} |