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

Unified Diff: components/nacl/renderer/ppb_nacl_private.h

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/renderer/ppb_nacl_private.h
diff --git a/components/nacl/renderer/ppb_nacl_private.h b/components/nacl/renderer/ppb_nacl_private.h
index f42c2d1cb31c9c37f8c3b0c58bee25dd99a61257..ad8911e1058c61eb8c2ee7acd40688ded0ed2d18 100644
--- a/components/nacl/renderer/ppb_nacl_private.h
+++ b/components/nacl/renderer/ppb_nacl_private.h
@@ -169,6 +169,7 @@ typedef enum {
struct PP_PNaClOptions {
PP_Bool translate;
PP_Bool is_debug;
+ PP_Bool use_subzero;
int32_t opt_level;
};
/**
@@ -261,6 +262,7 @@ struct PPB_NaCl_Private {
void (*ReportTranslationFinished)(PP_Instance instance,
PP_Bool success,
int32_t opt_level,
+ PP_Bool use_subzero,
int64_t pexe_size,
int64_t compile_time_us);
/* Dispatch a progress event on the DOM element where the given instance is
@@ -307,7 +309,8 @@ struct PPB_NaCl_Private {
/* Returns the filenames for the llc and ld tools. */
PP_Bool (*GetPnaclResourceInfo)(PP_Instance instance,
struct PP_Var* llc_tool_name,
- struct PP_Var* ld_tool_name);
+ struct PP_Var* ld_tool_name,
+ struct PP_Var* subzero_tool_name);
/* PP_Var string of attributes describing the CPU features supported
* by the current architecture. The string is a comma-delimited list
* of attributes supported by LLVM in its -mattr= option:
@@ -348,6 +351,7 @@ struct PPB_NaCl_Private {
void (*StreamPexe)(PP_Instance instance,
const char* pexe_url,
int32_t opt_level,
+ PP_Bool use_subzero,
const struct PPP_PexeStreamHandler_1_0* stream_handler,
void* stream_handler_user_data);
};
« no previous file with comments | « components/nacl/renderer/plugin/pnacl_translate_thread.cc ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698