Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index af2f1f667ba4ca4f22c779cd98b5001e8817fc98..7328e4015c390612aee0cbd4fc89665769f911fc 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -178,7 +178,7 @@ bool CodeGenerator::ShouldGenerateLog(Expression* type) { |
!isolate->cpu_profiler()->is_profiling()) { |
return false; |
} |
- Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); |
+ Handle<String> name = Handle<String>::cast(type->AsLiteral()->value()); |
if (FLAG_log_regexp) { |
if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp"))) |
return true; |