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

This reverts commit 0ee0717cc3.

BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2944073003 .
This commit is contained in:
Emily Fortuna 2017-06-19 17:39:17 -07:00
parent a4a227e375
commit d9c6ae3438

View file

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