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

Unified Diff: components/nacl/browser/pnacl_translation_cache.cc

Issue 1005173006: Add a switch for using PNaCl Subzero and use it for -O0 translation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix takefileinfo Created 5 years, 9 months 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
Index: components/nacl/browser/pnacl_translation_cache.cc
diff --git a/components/nacl/browser/pnacl_translation_cache.cc b/components/nacl/browser/pnacl_translation_cache.cc
index 5f605982ee1ddd1449297f70c7d040d6c46e69f0..5ab1d38fa03d4f07063c95be3ae3927ea6f89678 100644
--- a/components/nacl/browser/pnacl_translation_cache.cc
+++ b/components/nacl/browser/pnacl_translation_cache.cc
@@ -414,7 +414,8 @@ std::string PnaclTranslationCache::GetKey(const nacl::PnaclCacheInfo& info) {
return std::string();
std::string retval("ABI:");
retval += IntToString(info.abi_version) + ";" + "opt:" +
- IntToString(info.opt_level) + ";" + "URL:";
+ IntToString(info.opt_level) +
+ (info.use_subzero ? "subzero;" : ";") + "URL:";
// Filter the username, password, and ref components from the URL
GURL::Replacements replacements;
replacements.ClearUsername();
« no previous file with comments | « components/nacl/browser/pnacl_host_unittest.cc ('k') | components/nacl/browser/pnacl_translation_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698