| OLD | NEW | 
|    1 //===- subzero/src/IceBrowserCompileServer.h - Browser server ---*- C++ -*-===// |    1 //===- subzero/src/IceBrowserCompileServer.h - Browser server ---*- C++ -*-===// | 
|    2 // |    2 // | 
|    3 //                        The Subzero Code Generator |    3 //                        The Subzero Code Generator | 
|    4 // |    4 // | 
|    5 // This file is distributed under the University of Illinois Open Source |    5 // This file is distributed under the University of Illinois Open Source | 
|    6 // License. See LICENSE.TXT for details. |    6 // License. See LICENSE.TXT for details. | 
|    7 // |    7 // | 
|    8 //===----------------------------------------------------------------------===// |    8 //===----------------------------------------------------------------------===// | 
|    9 /// |    9 /// | 
|   10 /// \file |   10 /// \file | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
|   30 } // end of namespace llvm |   30 } // end of namespace llvm | 
|   31  |   31  | 
|   32 namespace Ice { |   32 namespace Ice { | 
|   33  |   33  | 
|   34 /// The browser variant of the compile server. Compared to the commandline |   34 /// The browser variant of the compile server. Compared to the commandline | 
|   35 /// version, this version gets compile requests over IPC. Each compile request |   35 /// version, this version gets compile requests over IPC. Each compile request | 
|   36 /// will have a slimmed down version of argc, argv while other flags are set to |   36 /// will have a slimmed down version of argc, argv while other flags are set to | 
|   37 /// defaults that make sense in the browser case. The output file is specified |   37 /// defaults that make sense in the browser case. The output file is specified | 
|   38 /// via a posix FD, and input bytes are pushed to the server. |   38 /// via a posix FD, and input bytes are pushed to the server. | 
|   39 class BrowserCompileServer : public CompileServer { |   39 class BrowserCompileServer : public CompileServer { | 
|   40   BrowserCompileServer() = delete; |  | 
|   41   BrowserCompileServer(const BrowserCompileServer &) = delete; |   40   BrowserCompileServer(const BrowserCompileServer &) = delete; | 
|   42   BrowserCompileServer &operator=(const BrowserCompileServer &) = delete; |   41   BrowserCompileServer &operator=(const BrowserCompileServer &) = delete; | 
|   43   class StringStream; |   42   class StringStream; | 
|   44  |   43  | 
|   45 public: |   44 public: | 
|   46   explicit BrowserCompileServer(Compiler &Comp) |   45   BrowserCompileServer() : HadError(false) {} | 
|   47       : CompileServer(Comp), InputStream(nullptr), HadError(false) {} |  | 
|   48  |   46  | 
|   49   ~BrowserCompileServer() final; |   47   ~BrowserCompileServer() final; | 
|   50  |   48  | 
|   51   void run() final; |   49   void run() final; | 
|   52  |   50  | 
|   53   ErrorCode &getErrorCode() final; |   51   ErrorCode &getErrorCode() final; | 
|   54  |   52  | 
|   55   /// Parse and set up the flags for compile jobs. |   53   /// Parse and set up the flags for compile jobs. | 
|   56   void getParsedFlags(uint32_t NumThreads, int argc, char **argv); |   54   void getParsedFlags(uint32_t NumThreads, int argc, char **argv); | 
|   57  |   55  | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  106   std::unique_ptr<ELFStreamer> ELFStream; |  104   std::unique_ptr<ELFStreamer> ELFStream; | 
|  107   ClFlags Flags; |  105   ClFlags Flags; | 
|  108   ClFlagsExtra ExtraFlags; |  106   ClFlagsExtra ExtraFlags; | 
|  109   std::thread CompileThread; |  107   std::thread CompileThread; | 
|  110   std::atomic<bool> HadError; |  108   std::atomic<bool> HadError; | 
|  111 }; |  109 }; | 
|  112  |  110  | 
|  113 } // end of namespace Ice |  111 } // end of namespace Ice | 
|  114  |  112  | 
|  115 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H |  113 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H | 
| OLD | NEW |