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

Issue 10332070: Call 'use' instead of 'visit' on the input when generating code for an unchecked HTypeConversion. (Closed)

Created:
8 years, 7 months ago by ngeoffray
Modified:
8 years, 7 months ago
CC:
reviews_dartlang.org, ahe, karlklose, Lasse Reichstein Nielsen, kasperl
Visibility:
Public.

Description

Call 'use' instead of 'visit' on the input when generating code for an unchecked HTypeConversion. Committed: https://code.google.com/p/dart/source/detail?r=7454

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M dart/lib/compiler/implementation/ssa/codegen.dart View 1 chunk +1 line, -1 line 2 comments Download
A dart/tests/language/type_guard_conversion_test.dart View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
This is fixing a regression I introduced with the new way we handle generate at ...
8 years, 7 months ago (2012-05-09 11:52:34 UTC) #1
floitsch
LGTM.
8 years, 7 months ago (2012-05-09 12:05:21 UTC) #2
Lasse Reichstein Nielsen
https://chromiumcodereview.appspot.com/10332070/diff/1/dart/lib/compiler/implementation/ssa/codegen.dart File dart/lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10332070/diff/1/dart/lib/compiler/implementation/ssa/codegen.dart#newcode2194 dart/lib/compiler/implementation/ssa/codegen.dart:2194: use(node.checkedInput, expectedPrecedence); I think we are getting to the ...
8 years, 7 months ago (2012-05-10 08:16:54 UTC) #3
ngeoffray
8 years, 7 months ago (2012-05-10 08:19:38 UTC) #4
https://chromiumcodereview.appspot.com/10332070/diff/1/dart/lib/compiler/impl...
File dart/lib/compiler/implementation/ssa/codegen.dart (right):

https://chromiumcodereview.appspot.com/10332070/diff/1/dart/lib/compiler/impl...
dart/lib/compiler/implementation/ssa/codegen.dart:2194: use(node.checkedInput,
expectedPrecedence);
On 2012/05/10 08:16:55, Lasse Reichstein Nielsen wrote:
> I think we are getting to the point where "visit" is too generic. There are
> several other ways to 'visit' an instruction ("use", "declare"), so perhaps we
> should rename "visit" to "generateOperation", or just "generate", to make it
> clearer that "visit" is an unconditional generation of the operation of an
> instruction.

Agree.

Powered by Google App Engine
This is Rietveld 408576698