Index: src/func-name-inferrer.cc |
=================================================================== |
--- src/func-name-inferrer.cc (revision 5319) |
+++ src/func-name-inferrer.cc (working copy) |
@@ -44,6 +44,20 @@ |
} |
+void FuncNameInferrer::PushLiteralName(Handle<String> name) { |
+ if (IsOpen() && !Heap::prototype_symbol()->Equals(*name)) { |
+ names_stack_.Add(name); |
+ } |
+} |
+ |
+ |
+void FuncNameInferrer::PushVariableName(Handle<String> name) { |
+ if (IsOpen() && !Heap::result_symbol()->Equals(*name)) { |
+ names_stack_.Add(name); |
+ } |
+} |
+ |
+ |
Handle<String> FuncNameInferrer::MakeNameFromStack() { |
if (names_stack_.is_empty()) { |
return Factory::empty_string(); |