Revert "Minor adjustment to usage of the ClosureClassRepresentation interface."

This reverts commit 85f37133f9.

BUG=

Review-Url: https://codereview.chromium.org/2946843002 .
This commit is contained in:
Emily Fortuna 2017-06-19 17:11:15 -07:00
parent 85f37133f9
commit 0ee0717cc3

View file

@ -128,11 +128,12 @@ class RuntimeTypeGenerator {
if (!method.isAbstract) {
ClosureRepresentationInfo closureData =
_closureDataLookup.getClosureRepresentationInfo(method);
if (closureData != null && closureData.isClosure) {
if (closureData != null) {
ClosureFieldElement thisLocal = closureData.thisFieldEntity;
assert(thisLocal != null);
jsAst.Name thisName = _namer.instanceFieldPropertyName(thisLocal);
thisAccess = js('this.#', thisName);
if (thisLocal != null) {
jsAst.Name thisName = _namer.instanceFieldPropertyName(thisLocal);
thisAccess = js('this.#', thisName);
}
}
}