Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: src/api.cc

Issue 718043002: Add a version tag for cached data. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/flags.h » ('j') | src/flags.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index dfb452b2a2707f1a697cc248bcff8b8a3c995b84..fddd9e82f4b286cdd49952833d81f87d300f8297 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -1846,6 +1846,12 @@ Local<Script> ScriptCompiler::Compile(Isolate* v8_isolate,
}
+uint32_t ScriptCompiler::CachedDataVersionTag() {
+ return internal::Version::Hash() ^ internal::FlagList::Hash() ^
+ internal::CpuFeatures::SupportedFeatures();
Sven Panne 2014/11/12 15:55:31 This is a very bad hash, please use the hashing fa
vogelheim 2014/11/12 18:34:30 Done. Thanks; I was looking for something like th
+}
+
+
Local<Script> Script::Compile(v8::Handle<String> source,
v8::ScriptOrigin* origin) {
i::Handle<i::String> str = Utils::OpenHandle(*source);
« no previous file with comments | « include/v8.h ('k') | src/flags.h » ('j') | src/flags.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698