Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index ef21f1f46f9e65ff227bdefb703fe4132101c59e..737d0f3317b1b31e324c73bd9ad17eb1ac1e4e08 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -744,7 +744,6 @@ static bool Renumber(ParseInfo* parse_info) { |
shared_info->set_ast_node_count(lit->ast_node_count()); |
MaybeDisableOptimization(shared_info, lit->dont_optimize_reason()); |
shared_info->set_dont_crankshaft(lit->flags()->Contains(kDontCrankshaft)); |
- shared_info->set_dont_cache(lit->flags()->Contains(kDontCache)); |
} |
return true; |
} |
@@ -1172,10 +1171,8 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval( |
// If caller is strict mode, the result must be in strict mode as well. |
DCHECK(is_sloppy(language_mode) || |
is_strict(shared_info->language_mode())); |
- if (!shared_info->dont_cache()) { |
- compilation_cache->PutEval(source, outer_info, context, shared_info, |
- scope_position); |
- } |
+ compilation_cache->PutEval(source, outer_info, context, shared_info, |
+ scope_position); |
} |
} else if (shared_info->ic_age() != isolate->heap()->global_ic_age()) { |
shared_info->ResetForNewContext(isolate->heap()->global_ic_age()); |
@@ -1236,7 +1233,6 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( |
if (CodeSerializer::Deserialize(isolate, *cached_data, source) |
.ToHandle(&result)) { |
// Promote to per-isolate compilation cache. |
- DCHECK(!result->dont_cache()); |
compilation_cache->PutScript(source, context, language_mode, result); |
return result; |
} |
@@ -1291,7 +1287,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( |
parse_info.set_language_mode( |
static_cast<LanguageMode>(info.language_mode() | language_mode)); |
result = CompileToplevel(&info); |
- if (extension == NULL && !result.is_null() && !result->dont_cache()) { |
+ if (extension == NULL && !result.is_null()) { |
compilation_cache->PutScript(source, context, language_mode, result); |
if (FLAG_serialize_toplevel && |
compile_options == ScriptCompiler::kProduceCodeCache) { |