| Index: src/compilation-cache.h
|
| diff --git a/src/compilation-cache.h b/src/compilation-cache.h
|
| index 31f290968068ceb0610c383417808f109e07be7f..4ea8f203a3454d6f63dc64f2e537613085bc58a8 100644
|
| --- a/src/compilation-cache.h
|
| +++ b/src/compilation-cache.h
|
| @@ -128,14 +128,19 @@ class CompilationCacheScript : public CompilationSubCache {
|
| // considers the following pieces of information when checking for matching
|
| // entries:
|
| // 1. The source string.
|
| -// 2. The shared function info of the calling function.
|
| +// 2. The script of the calling function.
|
| // 3. Whether the source should be compiled as strict code or as non-strict
|
| // code.
|
| // Note: Currently there are clients of CompileEval that always compile
|
| // non-strict code even if the calling function is a strict mode function.
|
| // More specifically these are the CompileString, DebugEvaluate and
|
| // DebugEvaluateGlobal runtime functions.
|
| -// 4. The start position of the calling scope.
|
| +// 4. The start position of the calling scope in the script source code.
|
| +// Note: The script plus the start position of the calling scope uniquely
|
| +// determine the shape of the outer scope of the eval call.
|
| +// Note: For eval calls in global context RelocInfo::kNoPosition is always
|
| +// used as the scope position to enable sharing between direct and indirect
|
| +// global eval calls.
|
| class CompilationCacheEval: public CompilationSubCache {
|
| public:
|
| CompilationCacheEval(Isolate* isolate, int generations)
|
|
|