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

Issue 669073002: Cleanups to Verifier. (Closed)

Created:
6 years, 2 months ago by titzer
Modified:
6 years, 2 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Cleanups to Verifier. This CL broadens the checks done by the verifier in untyped mode and introduces some subroutines to shorten the code a bit. Introduce routines CheckUpperIs() CheckUpperMaybe() and CheckValueInputIs() that are called unconditionally by the verifier. If the typing mode is untyped, then don't check anything. Also added a couple checks for Merge and Loop nodes that catch bugs where the operator and the node disagree on input counts (a bug encountered today). R=mstarzinger@chromium.org, rossberg@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=24809

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -519 lines) Patch
M src/compiler/verifier.cc View 3 chunks +532 lines, -519 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
titzer
6 years, 2 months ago (2014-10-22 09:28:58 UTC) #1
Michael Starzinger
LGTM (rubber-stamped).
6 years, 2 months ago (2014-10-22 14:00:03 UTC) #3
rossberg
LGTM. My only concern is that the check indirections make it impossible to see the ...
6 years, 2 months ago (2014-10-22 14:07:36 UTC) #4
titzer
On 2014/10/22 14:07:36, rossberg wrote: > LGTM. My only concern is that the check indirections ...
6 years, 2 months ago (2014-10-22 14:09:05 UTC) #5
rossberg
On 2014/10/22 14:09:05, titzer wrote: > On 2014/10/22 14:07:36, rossberg wrote: > > LGTM. My ...
6 years, 2 months ago (2014-10-22 14:10:40 UTC) #6
titzer
Committed patchset #1 manually as 24809 (presubmit successful).
6 years, 2 months ago (2014-10-22 14:39:50 UTC) #7
titzer
6 years, 2 months ago (2014-10-22 14:40:35 UTC) #8
Message was sent while issue was closed.
On 2014/10/22 14:10:40, rossberg wrote:
> On 2014/10/22 14:09:05, titzer wrote:
> > On 2014/10/22 14:07:36, rossberg wrote:
> > > LGTM. My only concern is that the check indirections make it impossible to
> see
> > > the origin of the failure directly, without a (working) stack trace (at
> least
> > I
> > > have repeatedly been bitten by this annoyance in other places).
> > 
> > I could add more useful V8_Fatal() error messages like:
> > 
> > Error: node #53:Int32Add should have upper bound of Type x.
> 
> Yes, that would be great!

Done.

Powered by Google App Engine
This is Rietveld 408576698