| Index: src/compilation-cache.cc
|
| diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc
|
| index a69ef4c7659320ac1db3a4239f92bd91275ea63b..54d4565e2dcd884bc1446ace8173a7225d153823 100644
|
| --- a/src/compilation-cache.cc
|
| +++ b/src/compilation-cache.cc
|
| @@ -269,7 +269,7 @@ void CompilationCacheScript::Put(Handle<String> source,
|
| Handle<SharedFunctionInfo> CompilationCacheEval::Lookup(
|
| Handle<String> source,
|
| Handle<Context> context,
|
| - LanguageMode language_mode,
|
| + StrictMode strict_mode,
|
| int scope_position) {
|
| // Make sure not to leak the table into the surrounding handle
|
| // scope. Otherwise, we risk keeping old tables around even after
|
| @@ -280,7 +280,7 @@ Handle<SharedFunctionInfo> CompilationCacheEval::Lookup(
|
| for (generation = 0; generation < generations(); generation++) {
|
| Handle<CompilationCacheTable> table = GetTable(generation);
|
| result = table->LookupEval(
|
| - *source, *context, language_mode, scope_position);
|
| + *source, *context, strict_mode, scope_position);
|
| if (result->IsSharedFunctionInfo()) {
|
| break;
|
| }
|
| @@ -421,7 +421,7 @@ Handle<SharedFunctionInfo> CompilationCache::LookupScript(
|
| Handle<SharedFunctionInfo> CompilationCache::LookupEval(
|
| Handle<String> source,
|
| Handle<Context> context,
|
| - LanguageMode language_mode,
|
| + StrictMode strict_mode,
|
| int scope_position) {
|
| if (!IsEnabled()) {
|
| return Handle<SharedFunctionInfo>::null();
|
| @@ -430,11 +430,11 @@ Handle<SharedFunctionInfo> CompilationCache::LookupEval(
|
| Handle<SharedFunctionInfo> result;
|
| if (context->IsNativeContext()) {
|
| result = eval_global_.Lookup(
|
| - source, context, language_mode, scope_position);
|
| + source, context, strict_mode, scope_position);
|
| } else {
|
| ASSERT(scope_position != RelocInfo::kNoPosition);
|
| result = eval_contextual_.Lookup(
|
| - source, context, language_mode, scope_position);
|
| + source, context, strict_mode, scope_position);
|
| }
|
| return result;
|
| }
|
|
|