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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h

Issue 165433003: PnaclCoordinator: Use llc's module-splitting for pexe compilation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make modules_used explicit Created 6 years, 10 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: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
index e38cbc07869b3c8ff197bb37a8875edb478758c1..33c7ad30aa7b4900d4633a5170a070008dd660d0 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
@@ -77,6 +77,9 @@ class TempFile;
// Complete when NexeReadDidOpen is invoked.
class PnaclCoordinator: public CallbackSource<FileStreamData> {
public:
+ // Maximum number of object files passable to the translator. Cannot be
+ // changed without changing the RPC signatures.
+ const static size_t kMaxTranslatorObjectFiles = 16;
virtual ~PnaclCoordinator();
// The factory method for translations.
@@ -202,7 +205,11 @@ class PnaclCoordinator: public CallbackSource<FileStreamData> {
PnaclOptions pnacl_options_;
// Object file, produced by the translator and consumed by the linker.
- nacl::scoped_ptr<TempFile> obj_file_;
+ std::vector<TempFile*> obj_files_;
+ // Number of split modules (threads) for llc
+ int split_module_count_;
+ int num_object_files_opened_;
+
// Translated nexe file, produced by the linker.
nacl::scoped_ptr<TempFile> temp_nexe_file_;
// Passed to the browser, which sets it to true if there is a translation

Powered by Google App Engine
This is Rietveld 408576698