Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 52a65887a3c92bd6218b2fc7bd5b442a0854042e..c5a1fddb88b413c843f7ca051a421026b035537c 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -453,13 +453,11 @@ Handle<Script> Factory::NewScript(Handle<String> source) { |
script->set_data(heap->undefined_value()); |
script->set_context_data(heap->undefined_value()); |
script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); |
- script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); |
- script->set_compilation_state( |
- Smi::FromInt(Script::COMPILATION_STATE_INITIAL)); |
script->set_wrapper(*wrapper); |
script->set_line_ends(heap->undefined_value()); |
script->set_eval_from_shared(heap->undefined_value()); |
script->set_eval_from_instructions_offset(Smi::FromInt(0)); |
+ script->set_flags(Smi::FromInt(0)); |
return script; |
} |
@@ -1221,7 +1219,6 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
shared->set_num_literals(literals_array_size); |
if (is_generator) { |
shared->set_instance_class_name(isolate()->heap()->Generator_string()); |
- shared->DisableOptimization("generator"); |
} |
return shared; |
} |