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

Issue 1642483002: Improve 'length' instance property reference encoding. (Closed)

Created:
4 years, 11 months ago by scheglov
Modified:
4 years, 11 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve 'length' instance property reference encoding. UnlinkedConstOperation.length is used not only if we can prove that the target is a StringLiteral (and actually we cannot encode it as a reference). The new ReferenceKind.length was added - it is used to encode reference to the the only instance property we support - 'length'. R=paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/e4ab45aa65d9d73185828d00dcfb216b184afad1

Patch Set 1 #

Total comments: 3

Patch Set 2 : Improve using 'UnlinkedConstOperation.length'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -12 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/prelink.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_const_expr.dart View 1 3 chunks +7 lines, -8 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 4 chunks +38 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 1 3 chunks +166 lines, -4 lines 0 comments Download
M pkg/analyzer/tool/summary/idl.dart View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
4 years, 11 months ago (2016-01-27 06:24:20 UTC) #1
Paul Berry
lgtm https://codereview.chromium.org/1642483002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart File pkg/analyzer/lib/src/summary/summarize_const_expr.dart (right): https://codereview.chromium.org/1642483002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart#newcode96 pkg/analyzer/lib/src/summary/summarize_const_expr.dart:96: if (expr.target is StringLiteral && expr.propertyName.name == 'length') ...
4 years, 11 months ago (2016-01-27 16:48:59 UTC) #2
scheglov
https://codereview.chromium.org/1642483002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart File pkg/analyzer/lib/src/summary/summarize_const_expr.dart (right): https://codereview.chromium.org/1642483002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart#newcode96 pkg/analyzer/lib/src/summary/summarize_const_expr.dart:96: if (expr.target is StringLiteral && expr.propertyName.name == 'length') { ...
4 years, 11 months ago (2016-01-27 17:55:10 UTC) #3
scheglov
4 years, 11 months ago (2016-01-27 17:55:41 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e4ab45aa65d9d73185828d00dcfb216b184afad1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698