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

Issue 10537051: Add type testers to all IL Computation classes. (Closed)

Created:
8 years, 6 months ago by Florian Schneider
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add type testers to all IL classes. This change does not change any functionality. Until now we only had a select number of type-testers. The CL adds Is- test predicates and As- type cast function for all computations. It is in preparation for upcoming changes where I need to test different computations for their type. Committed: https://code.google.com/p/dart/source/detail?r=8390

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -9 lines) Patch
M vm/intermediate_language.h View 5 chunks +27 lines, -9 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
8 years, 6 months ago (2012-06-07 11:57:51 UTC) #1
Vyacheslav Egorov (Google)
lgtm https://chromiumcodereview.appspot.com/10537051/diff/1/vm/intermediate_language.h File vm/intermediate_language.h (right): https://chromiumcodereview.appspot.com/10537051/diff/1/vm/intermediate_language.h#newcode158 vm/intermediate_language.h:158: return reinterpret_cast<ClassName*>(this); \ this should be static_cast.
8 years, 6 months ago (2012-06-07 12:07:16 UTC) #2
Florian Schneider
8 years, 6 months ago (2012-06-07 12:31:47 UTC) #3
https://chromiumcodereview.appspot.com/10537051/diff/1/vm/intermediate_langua...
File vm/intermediate_language.h (right):

https://chromiumcodereview.appspot.com/10537051/diff/1/vm/intermediate_langua...
vm/intermediate_language.h:158: return reinterpret_cast<ClassName*>(this);      
                       \
On 2012/06/07 12:07:16, Vyacheslav Egorov (Google) wrote:
> this should be static_cast.

Done.

Powered by Google App Engine
This is Rietveld 408576698