Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 7b95735b597c1304fb8d6d13e0810f2e07b9d65c..ae56f8ad040ebf67410eddd9e2e81796764349f9 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -587,10 +587,13 @@ |
loop_depth_(0), |
home_object_symbol_(info->isolate()->factory()->home_object_symbol()), |
iterator_symbol_(info->isolate()->factory()->iterator_symbol()), |
- prototype_string_(info->isolate()->factory()->prototype_string()), |
- empty_fixed_array_(info->isolate()->factory()->empty_fixed_array()), |
- undefined_string_( |
- info->isolate()->ast_string_constants()->undefined_string()) {} |
+ empty_fixed_array_(info->isolate()->factory()->empty_fixed_array()) { |
+ AstValueFactory* ast_value_factory = info->parse_info()->ast_value_factory(); |
+ const AstRawString* prototype_string = ast_value_factory->prototype_string(); |
+ ast_value_factory->Internalize(info->isolate()); |
+ prototype_string_ = prototype_string->string(); |
+ undefined_string_ = ast_value_factory->undefined_string(); |
+} |
Handle<BytecodeArray> BytecodeGenerator::FinalizeBytecode(Isolate* isolate) { |
AllocateDeferredConstants(isolate); |