Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 184429b41752a713c772d05b947571621e561877..bc48e3e966c7448ed7cc4d79f5618d23013943ed 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1123,6 +1123,10 @@ void Compiler::SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
function_info->set_dont_inline(lit->flags()->Contains(kDontInline)); |
function_info->set_dont_cache(lit->flags()->Contains(kDontCache)); |
function_info->set_is_generator(lit->is_generator()); |
+ if (lit->is_generator()) { |
Michael Starzinger
2013/04/17 12:52:19
Can we move this into Factory::NewSharedFunctionIn
wingo
2013/04/17 14:23:51
Done.
|
+ String *class_name = function_info->GetHeap()->Generator_string(); |
+ function_info->set_instance_class_name(class_name); |
+ } |
} |