Index: src/compiler/basic-block-instrumentor.cc |
diff --git a/src/compiler/basic-block-instrumentor.cc b/src/compiler/basic-block-instrumentor.cc |
index 54f9d6b059ab3b50a9f0f454eaf4e096d42879af..00291bba488bf63b66b32ce8945bec232628c68a 100644 |
--- a/src/compiler/basic-block-instrumentor.cc |
+++ b/src/compiler/basic-block-instrumentor.cc |
@@ -55,8 +55,7 @@ BasicBlockProfiler::Data* BasicBlockInstrumentor::Instrument( |
BasicBlockProfiler::Data* data = |
info->isolate()->GetOrCreateBasicBlockProfiler()->NewData(n_blocks); |
// Set the function name. |
- if (!info->shared_info().is_null() && |
- info->shared_info()->name()->IsString()) { |
+ if (info->has_shared_info() && info->shared_info()->name()->IsString()) { |
std::ostringstream os; |
String::cast(info->shared_info()->name())->PrintUC16(os); |
data->SetFunctionName(&os); |