Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: test/cctest/test-api.cc

Issue 2170743003: [api] Introduce fast instantiations cache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing uint issue under windows Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 510fc26de4ff21ee5142213afd70908990bb032e..7d9a717270341b5ff61644b5f1cabe0f47851429 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -22807,9 +22807,12 @@ THREADED_TEST(FunctionNew) {
->get_api_func_data()
->serial_number()),
i_isolate);
- auto cache = i_isolate->template_instantiations_cache();
- CHECK(cache->FindEntry(static_cast<uint32_t>(serial_number->value())) ==
+ auto slow_cache = i_isolate->slow_template_instantiations_cache();
+ CHECK(slow_cache->FindEntry(static_cast<uint32_t>(serial_number->value())) ==
i::UnseededNumberDictionary::kNotFound);
+ auto fast_cache = i_isolate->fast_template_instantiations_cache();
+ CHECK(fast_cache->get(static_cast<uint32_t>(serial_number->value()))
+ ->IsUndefined(i_isolate));
// Verify that each Function::New creates a new function instance
Local<Object> data2 = v8::Object::New(isolate);
function_new_expected_env = data2;
« src/objects.h ('K') | « test/cctest/interpreter/bytecode_expectations/CallRuntime.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698