Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index 240de72168395e32e224f1bc91f2778d2aff1453..13f5182ecb10f70a5a8e6affd3cd52705db28cf2 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -1088,9 +1088,21 @@ bool Literal::Match(void* literal1, void* literal2) { |
(x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); |
} |
+const char* InternalVariable::name() const { |
+ switch (type()) { |
+ case kGeneratorObject: |
+ return ".generator_object"; |
+ default: |
+ break; |
+ } |
+ UNREACHABLE(); |
+ return nullptr; |
+} |
+ |
const char* CallRuntime::debug_name() { |
#ifdef DEBUG |
- return NameForNativeContextIntrinsicIndex(context_index_); |
+ return is_jsruntime() ? NameForNativeContextIntrinsicIndex(context_index_) |
+ : function_->name; |
#else |
return is_jsruntime() ? "(context function)" : function_->name; |
#endif // DEBUG |