| Index: src/compilation-cache.h
|
| diff --git a/src/compilation-cache.h b/src/compilation-cache.h
|
| index ead52b5fa48b708e5a7455ce18ab46f45415a30c..b31de3111f13488141327914a414dd1857d01c76 100644
|
| --- a/src/compilation-cache.h
|
| +++ b/src/compilation-cache.h
|
| @@ -136,10 +136,9 @@ class CompilationCacheScript : public CompilationSubCache {
|
| // entries:
|
| // 1. The source string.
|
| // 2. The shared function info of the calling function.
|
| -// 3. Whether the source should be compiled as strict code or as non-strict
|
| -// code.
|
| +// 3. Whether the source should be compiled as strict code or as sloppy code.
|
| // Note: Currently there are clients of CompileEval that always compile
|
| -// non-strict code even if the calling function is a strict mode function.
|
| +// sloppy 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.
|
| @@ -150,7 +149,7 @@ class CompilationCacheEval: public CompilationSubCache {
|
|
|
| Handle<SharedFunctionInfo> Lookup(Handle<String> source,
|
| Handle<Context> context,
|
| - LanguageMode language_mode,
|
| + StrictMode strict_mode,
|
| int scope_position);
|
|
|
| void Put(Handle<String> source,
|
| @@ -222,7 +221,7 @@ class CompilationCache {
|
| // contain a script for the given source string.
|
| Handle<SharedFunctionInfo> LookupEval(Handle<String> source,
|
| Handle<Context> context,
|
| - LanguageMode language_mode,
|
| + StrictMode strict_mode,
|
| int scope_position);
|
|
|
| // Returns the regexp data associated with the given regexp if it
|
|
|