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

Issue 10559031: Don't try to resolve in the builder. (Closed)

Created:
8 years, 6 months ago by floitsch
Modified:
8 years, 6 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Don't try to resolve in the builder. Resolution is already done. Fixes issue 3632. Committed: https://code.google.com/p/dart/source/detail?r=8777

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M lib/compiler/implementation/ssa/builder.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
A tests/language/resolution_test.dart View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
8 years, 6 months ago (2012-06-18 09:41:13 UTC) #1
ahe
LGTM! https://chromiumcodereview.appspot.com/10559031/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/10559031/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode2358 lib/compiler/implementation/ssa/builder.dart:2358: assert(compiler.enqueuer.resolution.getCachedElements(element) !== null); I would prefer if this ...
8 years, 6 months ago (2012-06-18 09:50:06 UTC) #2
floitsch
8 years, 6 months ago (2012-06-18 10:30:21 UTC) #3
https://chromiumcodereview.appspot.com/10559031/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/10559031/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/builder.dart:2358:
assert(compiler.enqueuer.resolution.getCachedElements(element) !== null);
On 2012/06/18 09:50:07, ahe wrote:
> I would prefer if this was an internal error:
> 
> if (compiler.enqueuer.resolution.getCachedElements(element) === null) {
>   compiler.internalError('Unresolved element: $element', node: node);
> }

Done.

Powered by Google App Engine
This is Rietveld 408576698