Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index fa7dc155ee747fcf4ff204a779e707e84f8b3f73..3ab80e2e5f74cddf9316fdfe4baed3fea85b0cb3 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -649,7 +649,7 @@ int GetFunctionLineNumber(LocalContext* env, const char* name) { |
->Get(v8::Isolate::GetCurrent()->GetCurrentContext(), |
v8_str(name)) |
.ToLocalChecked()))); |
- CodeEntry* func_entry = code_map->FindEntry(func->code()->address()); |
+ CodeEntry* func_entry = code_map->FindEntry(func->abstract_code()->address()); |
if (!func_entry) |
FATAL(name); |
return func_entry->line_number(); |