| Index: src/compilation-cache.cc
|
| diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc
|
| index 82cc2231a36326a38191a95cf2c80fea3112fbff..db4ce5f2a493dbaf70a1cbf43e800742de2d4cdc 100644
|
| --- a/src/compilation-cache.cc
|
| +++ b/src/compilation-cache.cc
|
| @@ -404,8 +404,9 @@ Handle<SharedFunctionInfo> CompilationCache::LookupEval(
|
|
|
| Handle<SharedFunctionInfo> result;
|
| if (is_global) {
|
| + ASSERT(context->IsGlobalContext());
|
| result = eval_global_.Lookup(
|
| - source, context, language_mode, scope_position);
|
| + source, context, language_mode, RelocInfo::kNoPosition);
|
| } else {
|
| ASSERT(scope_position != RelocInfo::kNoPosition);
|
| result = eval_contextual_.Lookup(
|
| @@ -446,7 +447,8 @@ void CompilationCache::PutEval(Handle<String> source,
|
|
|
| HandleScope scope(isolate());
|
| if (is_global) {
|
| - eval_global_.Put(source, context, function_info, scope_position);
|
| + ASSERT(context->IsGlobalContext());
|
| + eval_global_.Put(source, context, function_info, RelocInfo::kNoPosition);
|
| } else {
|
| ASSERT(scope_position != RelocInfo::kNoPosition);
|
| eval_contextual_.Put(source, context, function_info, scope_position);
|
|
|