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

Side by Side Diff: src/IceCompileServer.cpp

Issue 1768173002: Subzero: Count lookups of each constant value in the constant pool. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 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 unified diff | Download patch
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceDefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===// 1 //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===//
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 std::thread CompileThread([this, &ExtraFlags, &InputStream]() { 233 std::thread CompileThread([this, &ExtraFlags, &InputStream]() {
234 Ctx->initParserThread(); 234 Ctx->initParserThread();
235 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); 235 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream));
236 }); 236 });
237 CompileThread.join(); 237 CompileThread.join();
238 } else { 238 } else {
239 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); 239 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream));
240 } 240 }
241 transferErrorCode(getReturnValue( 241 transferErrorCode(getReturnValue(
242 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); 242 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value())));
243 Ctx->dumpConstantLookupCounts();
243 } 244 }
244 245
245 } // end of namespace Ice 246 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698