DescriptionCleanup uses of X::CheckedHandle where X::Cast or X::Handle is sufficient.
The only places where CheckedHandle is appropiate is with arguments to
runtime functions and values from Dart API functions.
For other places in the VM either normal Handle and ^=, or Cast is sufficient.
T::Cast is used when the value is guaranteed to be of type T (and never Object::null()).
Otherwise, the operator^= is used for casting.
Also fix a style issue where a Raw* should be used as return type.
Committed: https://code.google.com/p/dart/source/detail?r=17013
Patch Set 1 #Patch Set 2 : updated with corrent handling of null #
Total comments: 4
Patch Set 3 : #
Messages
Total messages: 5 (0 generated)
|