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

Issue 1320503003: dart2js: add initial support for lookup-maps (Closed)

Created:
5 years, 3 months ago by Siggi Cherem (dart-lang)
Modified:
5 years ago
CC:
reviews_dartlang.org, herhut, floitsch
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 : #

Total comments: 43

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+897 lines, -103 lines) Patch
M pkg/compiler/lib/src/common/backend_api.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/common/codegen.dart View 2 chunks +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 11 chunks +39 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
A pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart View 1 1 chunk +335 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/pubspec.yaml View 1 chunk +2 lines, -0 lines 0 comments Download
A + pkg/lookup_map/AUTHORS View 0 chunks +-1 lines, --1 lines 0 comments Download
A pkg/lookup_map/CHANGELOG.md View 1 chunk +4 lines, -0 lines 0 comments Download
A + pkg/lookup_map/LICENSE View 0 chunks +-1 lines, --1 lines 0 comments Download
A pkg/lookup_map/README.md View 1 1 chunk +29 lines, -0 lines 2 comments Download
A pkg/lookup_map/lib/lookup_map.dart View 1 1 chunk +93 lines, -0 lines 0 comments Download
A pkg/lookup_map/pubspec.yaml View 1 chunk +3 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/lookup_map_test.dart View 1 1 chunk +261 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/dead_entry_single_nested_pairs_test.dart View 1 chunk +8 lines, -12 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/dead_entry_test.dart View 1 chunk +8 lines, -12 lines 0 comments Download
A tests/compiler/dart2js_extra/lookup_map/discovered_code_test.dart View 1 chunk +23 lines, -0 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/entries_aside_test.dart View 1 chunk +9 lines, -11 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/escaping_entries_test.dart View 1 chunk +10 lines, -13 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/generic_type_test.dart View 1 chunk +7 lines, -11 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/live_entry_single_pair_test.dart View 1 chunk +4 lines, -13 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/live_entry_test.dart View 1 chunk +6 lines, -13 lines 0 comments Download
A tests/compiler/dart2js_extra/lookup_map/reachable_data_test.dart View 1 chunk +22 lines, -0 lines 0 comments Download
A + tests/compiler/dart2js_extra/lookup_map/subclass_lookup_map_test.dart View 1 chunk +11 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Siggi Cherem (dart-lang)
5 years, 3 months ago (2015-08-28 01:09:54 UTC) #3
Siggi Cherem (dart-lang)
Here is an initial implementation of lookup maps. I have implemented the tree-shaking based on ...
5 years, 3 months ago (2015-08-29 01:42:41 UTC) #7
sra1
LGTM. Please scrub debug prints and parameters. https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart File pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart (right): https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart#newcode96 pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart:96: static const ...
5 years, 3 months ago (2015-09-02 00:55:25 UTC) #8
herhut
Nice! lgtm w/ comments https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/backend.dart#newcode997 pkg/compiler/lib/src/js_backend/backend.dart:997: (constant as TypeConstantValue).representedType; Why use ...
5 years, 3 months ago (2015-09-02 12:59:57 UTC) #10
Siggi Cherem (dart-lang)
Thanks for all the comments! https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/1320503003/diff/60001/pkg/compiler/lib/src/js_backend/backend.dart#newcode997 pkg/compiler/lib/src/js_backend/backend.dart:997: (constant as TypeConstantValue).representedType; On ...
5 years, 3 months ago (2015-09-03 00:44:30 UTC) #11
Siggi Cherem (dart-lang)
Committed patchset #2 (id:100001) manually as 2c660aa2f03e6932a1ab26e9ca69168a2191b2f2 (presubmit successful).
5 years, 3 months ago (2015-09-03 00:52:04 UTC) #13
Ivan Posva
DBC -ip https://codereview.chromium.org/1320503003/diff/100001/pkg/lookup_map/README.md File pkg/lookup_map/README.md (right): https://codereview.chromium.org/1320503003/diff/100001/pkg/lookup_map/README.md#newcode5 pkg/lookup_map/README.md:5: map is to retrieve values with a ...
5 years, 3 months ago (2015-09-08 15:52:10 UTC) #15
Siggi Cherem (dart-lang)
5 years, 3 months ago (2015-09-08 16:00:01 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/1320503003/diff/100001/pkg/lookup_map/README.md
File pkg/lookup_map/README.md (right):

https://codereview.chromium.org/1320503003/diff/100001/pkg/lookup_map/README....
pkg/lookup_map/README.md:5: map is to retrieve values with a key you already
have.  Expect for lookup, any
On 2015/09/08 15:52:10, Ivan Posva wrote:
> Expect or except?

good catch, thanks!

Powered by Google App Engine
This is Rietveld 408576698