Index: src/compilation-cache.cc |
diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc |
index 28e833a4933e1457a5f08ac8132338aef82c7938..1c204c99997c45efb8d08c390d33166d7d5c3156 100644 |
--- a/src/compilation-cache.cc |
+++ b/src/compilation-cache.cc |
@@ -250,7 +250,7 @@ void CompilationCacheScript::Put(Handle<String> source, |
Handle<SharedFunctionInfo> CompilationCacheEval::Lookup( |
Handle<String> source, |
Handle<Context> context, |
- StrictModeFlag strict_mode) { |
+ LanguageMode language_mode) { |
// Make sure not to leak the table into the surrounding handle |
// scope. Otherwise, we risk keeping old tables around even after |
// having cleared the cache. |
@@ -259,7 +259,7 @@ Handle<SharedFunctionInfo> CompilationCacheEval::Lookup( |
{ HandleScope scope(isolate()); |
for (generation = 0; generation < generations(); generation++) { |
Handle<CompilationCacheTable> table = GetTable(generation); |
- result = table->LookupEval(*source, *context, strict_mode); |
+ result = table->LookupEval(*source, *context, language_mode); |
if (result->IsSharedFunctionInfo()) { |
break; |
} |
@@ -389,16 +389,16 @@ Handle<SharedFunctionInfo> CompilationCache::LookupEval( |
Handle<String> source, |
Handle<Context> context, |
bool is_global, |
- StrictModeFlag strict_mode) { |
+ LanguageMode language_mode) { |
if (!IsEnabled()) { |
return Handle<SharedFunctionInfo>::null(); |
} |
Handle<SharedFunctionInfo> result; |
if (is_global) { |
- result = eval_global_.Lookup(source, context, strict_mode); |
+ result = eval_global_.Lookup(source, context, language_mode); |
} else { |
- result = eval_contextual_.Lookup(source, context, strict_mode); |
+ result = eval_contextual_.Lookup(source, context, language_mode); |
} |
return result; |
} |