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

Issue 623493002: Subzero: Allow builds with assertions disabled. (Closed)

Created:
6 years, 2 months ago by Jim Stichnoth
Modified:
6 years, 2 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Allow builds with assertions disabled. 1. Setting command-line make variable NOASSERT=1 adds -DNDEBUG and builds in a separate directory. By default, we still get Release+Asserts. 2. Add "(void)foo;" as necessary when foo is only used in an assert(), to remove warnings. 3. Minimize inclusion of llvm/Support/Timer.h because it adds warnings. 4. Call validateLiveness() only when asserts are enabled, because it's relatively expensive. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=9c234e2a5ab681825bb92de3c7f3c74b38cd2f8a

Patch Set 1 #

Patch Set 2 : Remove commented-out include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M Makefile.standalone View 2 chunks +8 lines, -1 line 0 comments Download
M src/IceConverter.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/IceDefs.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 chunk +3 lines, -5 lines 0 comments Download
M src/IceTimerTree.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/IceTimerTree.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M src/assembler_ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler_ia32.cpp View 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Jim Stichnoth
6 years, 2 months ago (2014-10-01 14:51:33 UTC) #2
jvoung (off chromium)
lgtm
6 years, 2 months ago (2014-10-01 15:30:07 UTC) #3
jvoung (off chromium)
LLVM was also changed to disable stat counters when asserts are disabled, but there it ...
6 years, 2 months ago (2014-10-01 15:38:29 UTC) #4
Jim Stichnoth
On 2014/10/01 15:38:29, jvoung wrote: > LLVM was also changed to disable stat counters when ...
6 years, 2 months ago (2014-10-01 16:20:46 UTC) #5
Jim Stichnoth
6 years, 2 months ago (2014-10-01 16:28:52 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
9c234e2a5ab681825bb92de3c7f3c74b38cd2f8a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698