| Index: src/compilation-cache.h
|
| diff --git a/src/compilation-cache.h b/src/compilation-cache.h
|
| index efa1a5922cf7056b23e589b5d47ffdb083259dcb..7a236e8fbf09ceab1f07701371fd1a893823f441 100644
|
| --- a/src/compilation-cache.h
|
| +++ b/src/compilation-cache.h
|
| @@ -98,16 +98,23 @@ class CompilationCacheScript : public CompilationSubCache {
|
| Handle<SharedFunctionInfo> Lookup(Handle<String> source,
|
| Handle<Object> name,
|
| int line_offset,
|
| - int column_offset);
|
| - void Put(Handle<String> source, Handle<SharedFunctionInfo> function_info);
|
| + int column_offset,
|
| + Handle<Context> context);
|
| + void Put(Handle<String> source,
|
| + Handle<Context> context,
|
| + Handle<SharedFunctionInfo> function_info);
|
|
|
| private:
|
| MUST_USE_RESULT MaybeObject* TryTablePut(
|
| - Handle<String> source, Handle<SharedFunctionInfo> function_info);
|
| + Handle<String> source,
|
| + Handle<Context> context,
|
| + Handle<SharedFunctionInfo> function_info);
|
|
|
| // Note: Returns a new hash table if operation results in expansion.
|
| Handle<CompilationCacheTable> TablePut(
|
| - Handle<String> source, Handle<SharedFunctionInfo> function_info);
|
| + Handle<String> source,
|
| + Handle<Context> context,
|
| + Handle<SharedFunctionInfo> function_info);
|
|
|
| bool HasOrigin(Handle<SharedFunctionInfo> function_info,
|
| Handle<Object> name,
|
| @@ -204,7 +211,8 @@ class CompilationCache {
|
| Handle<SharedFunctionInfo> LookupScript(Handle<String> source,
|
| Handle<Object> name,
|
| int line_offset,
|
| - int column_offset);
|
| + int column_offset,
|
| + Handle<Context> context);
|
|
|
| // Finds the shared function info for a source string for eval in a
|
| // given context. Returns an empty handle if the cache doesn't
|
| @@ -223,6 +231,7 @@ class CompilationCache {
|
| // Associate the (source, kind) pair to the shared function
|
| // info. This may overwrite an existing mapping.
|
| void PutScript(Handle<String> source,
|
| + Handle<Context> context,
|
| Handle<SharedFunctionInfo> function_info);
|
|
|
| // Associate the (source, context->closure()->shared(), kind) triple
|
|
|