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

Issue 11017027: Remove slow assert from VM. (Closed)

Created:
8 years, 2 months ago by zerny-google
Modified:
8 years, 2 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove slow assert from VM. Replaced slow-asserts with verify-compiler and removed vm/assert.h R=srdjan@google.com BUG=5720 Committed: https://code.google.com/p/dart/source/detail?r=13456

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -36 lines) Patch
D runtime/vm/assert.h View 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/compiler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph.cc View 7 chunks +12 lines, -8 lines 4 comments Download
M runtime/vm/flow_graph_inliner.cc View 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
zerny-google
8 years, 2 months ago (2012-10-09 11:27:20 UTC) #1
srdjan
LGTM with comments and thanks! http://codereview.chromium.org/11017027/diff/1/runtime/vm/flow_graph.cc File runtime/vm/flow_graph.cc (right): http://codereview.chromium.org/11017027/diff/1/runtime/vm/flow_graph.cc#newcode129 runtime/vm/flow_graph.cc:129: (1 == MembershipCount(use, use->definition()->input_use_list()))); ...
8 years, 2 months ago (2012-10-09 16:28:51 UTC) #2
zerny-google
8 years, 2 months ago (2012-10-10 07:44:54 UTC) #3
http://codereview.chromium.org/11017027/diff/1/runtime/vm/flow_graph.cc
File runtime/vm/flow_graph.cc (right):

http://codereview.chromium.org/11017027/diff/1/runtime/vm/flow_graph.cc#newco...
runtime/vm/flow_graph.cc:129: (1 == MembershipCount(use,
use->definition()->input_use_list())));
On 2012/10/09 16:28:52, srdjan wrote:
> Would it make sense to do verification in release mode as well (if flag is
set)?

We could, but currently all of the verification code is wrapped in an #ifdef
DEBUG condition. Since verification is really is for development debugging I
think this is a reasonable thing to do.

http://codereview.chromium.org/11017027/diff/1/runtime/vm/flow_graph.cc#newco...
runtime/vm/flow_graph.cc:200: DEBUG_ASSERT(!FLAG_verify_compiler ||
On 2012/10/09 16:28:52, srdjan wrote:
> Why DEBUG_ASSERT instead of ASSERT? All identifiers are defined in release
mode
> as well, aren't they? (Also for some of changes below).

No, the verification code (including MembershipCount) is only inclued in debug
mode.

Powered by Google App Engine
This is Rietveld 408576698