diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
commit | 6bcea4ff932144a5fd02affefd45164fbf471e67 (patch) | |
tree | a8e078c679b12f0daebe10ed254239cb0d79e146 /deps/v8/test/cctest/test-code-stubs.cc | |
parent | 4fae2356d105e394115188a814097c4a95ae0c5d (diff) | |
download | node-new-6bcea4ff932144a5fd02affefd45164fbf471e67.tar.gz |
deps: update v8 to 3.29.93.1
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); +} |