Index: test/cctest/test-code-stub-assembler.cc |
diff --git a/test/cctest/test-code-stub-assembler.cc b/test/cctest/test-code-stub-assembler.cc |
index 80bc83071df1a578b096cc7b30c3416153703e72..0d0b5c5c498eb0478178d0c509c66eef91fd3b72 100644 |
--- a/test/cctest/test-code-stub-assembler.cc |
+++ b/test/cctest/test-code-stub-assembler.cc |
@@ -1346,14 +1346,14 @@ TEST(TryProbeStubCache) { |
int index = rand_gen.NextInt(); |
Handle<Name> name = names[index % names.size()]; |
Handle<JSObject> receiver = receivers[index % receivers.size()]; |
- Code* handler = stub_cache.Get(*name, receiver->map()); |
+ Object* handler = stub_cache.Get(*name, receiver->map()); |
if (handler == nullptr) { |
queried_non_existing = true; |
} else { |
queried_existing = true; |
} |
- Handle<Code> expected_handler(handler, isolate); |
+ Handle<Object> expected_handler(handler, isolate); |
ft.CheckTrue(receiver, name, expected_handler); |
} |
@@ -1362,14 +1362,14 @@ TEST(TryProbeStubCache) { |
int index2 = rand_gen.NextInt(); |
Handle<Name> name = names[index1 % names.size()]; |
Handle<JSObject> receiver = receivers[index2 % receivers.size()]; |
- Code* handler = stub_cache.Get(*name, receiver->map()); |
+ Object* handler = stub_cache.Get(*name, receiver->map()); |
if (handler == nullptr) { |
queried_non_existing = true; |
} else { |
queried_existing = true; |
} |
- Handle<Code> expected_handler(handler, isolate); |
+ Handle<Object> expected_handler(handler, isolate); |
ft.CheckTrue(receiver, name, expected_handler); |
} |
// Ensure we performed both kind of queries. |