| Index: src/compilation-cache.cc
|
| diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc
|
| index 6b22bf24283d305a743197701ef363a6348f8f63..94fe37bb939184531c120ce018860d5673e48cee 100644
|
| --- a/src/compilation-cache.cc
|
| +++ b/src/compilation-cache.cc
|
| @@ -331,7 +331,7 @@ MaybeHandle<SharedFunctionInfo> CompilationCache::LookupEval(
|
| if (!IsEnabled()) return MaybeHandle<SharedFunctionInfo>();
|
|
|
| MaybeHandle<SharedFunctionInfo> result;
|
| - if (context->IsNativeContext()) {
|
| + if (context->IsNativeContext() || context->IsGlobalContext()) {
|
| result = eval_global_.Lookup(
|
| source, context, strict_mode, scope_position);
|
| } else {
|
| @@ -367,7 +367,7 @@ void CompilationCache::PutEval(Handle<String> source,
|
| if (!IsEnabled()) return;
|
|
|
| HandleScope scope(isolate());
|
| - if (context->IsNativeContext()) {
|
| + if (context->IsNativeContext() || context->IsGlobalContext()) {
|
| eval_global_.Put(source, context, function_info, scope_position);
|
| } else {
|
| ASSERT(scope_position != RelocInfo::kNoPosition);
|
|
|