diff options
author | isaacs <i@izs.me> | 2012-09-18 15:20:38 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-09-21 01:52:24 +0200 |
commit | 3411a03dd114d635800cc50749d2351cd734eb2a (patch) | |
tree | 0ba1e52ab2236286894b33400302181ece91b63a /deps/v8/src/compilation-cache.h | |
parent | cc1b09d6b7c3cc6b8729804cbf644634ba5d0815 (diff) | |
download | android-node-v8-3411a03dd114d635800cc50749d2351cd734eb2a.tar.gz android-node-v8-3411a03dd114d635800cc50749d2351cd734eb2a.tar.bz2 android-node-v8-3411a03dd114d635800cc50749d2351cd734eb2a.zip |
V8: Upgrade to 3.13.7.1
Diffstat (limited to 'deps/v8/src/compilation-cache.h')
-rw-r--r-- | deps/v8/src/compilation-cache.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/deps/v8/src/compilation-cache.h b/deps/v8/src/compilation-cache.h index 2f2fbadb2e..7a236e8fbf 100644 --- a/deps/v8/src/compilation-cache.h +++ b/deps/v8/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, @@ -122,7 +129,7 @@ class CompilationCacheScript : public CompilationSubCache { // Sub-cache for eval scripts. Two caches for eval are used. One for eval calls -// in global contexts and one for eval calls in other contexts. The cache +// in native contexts and one for eval calls in other contexts. The cache // considers the following pieces of information when checking for matching // entries: // 1. The source string. @@ -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 |