| Index: src/compilation-cache.cc
|
| ===================================================================
|
| --- src/compilation-cache.cc (revision 7006)
|
| +++ src/compilation-cache.cc (working copy)
|
| @@ -253,7 +253,9 @@
|
|
|
|
|
| Handle<SharedFunctionInfo> CompilationCacheEval::Lookup(
|
| - Handle<String> source, Handle<Context> context) {
|
| + Handle<String> source,
|
| + Handle<Context> context,
|
| + StrictModeFlag strict_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.
|
| @@ -262,7 +264,7 @@
|
| { HandleScope scope;
|
| for (generation = 0; generation < generations(); generation++) {
|
| Handle<CompilationCacheTable> table = GetTable(generation);
|
| - result = table->LookupEval(*source, *context);
|
| + result = table->LookupEval(*source, *context, strict_mode);
|
| if (result->IsSharedFunctionInfo()) {
|
| break;
|
| }
|
| @@ -390,18 +392,20 @@
|
| }
|
|
|
|
|
| -Handle<SharedFunctionInfo> CompilationCache::LookupEval(Handle<String> source,
|
| - Handle<Context> context,
|
| - bool is_global) {
|
| +Handle<SharedFunctionInfo> CompilationCache::LookupEval(
|
| + Handle<String> source,
|
| + Handle<Context> context,
|
| + bool is_global,
|
| + StrictModeFlag strict_mode) {
|
| if (!IsEnabled()) {
|
| return Handle<SharedFunctionInfo>::null();
|
| }
|
|
|
| Handle<SharedFunctionInfo> result;
|
| if (is_global) {
|
| - result = eval_global_.Lookup(source, context);
|
| + result = eval_global_.Lookup(source, context, strict_mode);
|
| } else {
|
| - result = eval_contextual_.Lookup(source, context);
|
| + result = eval_contextual_.Lookup(source, context, strict_mode);
|
| }
|
| return result;
|
| }
|
|
|