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

Issue 1312943007: Add version validation for LookupMap, also add unittest directly in LookupMap. (Closed)

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

Description

Add version validation for LookupMap, also add unittest directly in LookupMap. R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/fc582d7a3da8373a0b2d1e98e582afd2d00d6861

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -11 lines) Patch
M pkg/compiler/lib/src/common/backend_api.dart View 1 1 chunk +3 lines, -0 lines 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/diagnostics/messages.dart View 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart View 1 2 5 chunks +59 lines, -9 lines 1 comment Download
M pkg/lookup_map/lib/lookup_map.dart View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/lookup_map/pubspec.yaml View 1 chunk +5 lines, -0 lines 0 comments Download
A pkg/lookup_map/test/lookup_map_test.dart View 1 chunk +74 lines, -0 lines 0 comments Download
A pkg/lookup_map/test/version_check_test.dart View 1 chunk +21 lines, -0 lines 3 comments Download
M pkg/pkg.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Siggi Cherem (dart-lang)
5 years, 3 months ago (2015-09-04 02:01:53 UTC) #5
Siggi Cherem (dart-lang)
just added a second patch to respect the abstraction between the compiler and the backend. ...
5 years, 3 months ago (2015-09-04 17:49:17 UTC) #7
Siggi Cherem (dart-lang)
+floitsch - What do you think of this approach to validate that we have the ...
5 years, 3 months ago (2015-09-04 17:51:16 UTC) #8
sra1
lgtm https://codereview.chromium.org/1312943007/diff/100001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/1312943007/diff/100001/pkg/compiler/lib/src/js_backend/backend.dart#newcode2610 pkg/compiler/lib/src/js_backend/backend.dart:2610: void onCodegenStart() => lookupMapAnalysis.onCodegenStart(); nit: I'd prefer these ...
5 years, 3 months ago (2015-09-04 20:48:48 UTC) #9
Siggi Cherem (dart-lang)
thanks! https://codereview.chromium.org/1312943007/diff/100001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/1312943007/diff/100001/pkg/compiler/lib/src/js_backend/backend.dart#newcode2610 pkg/compiler/lib/src/js_backend/backend.dart:2610: void onCodegenStart() => lookupMapAnalysis.onCodegenStart(); On 2015/09/04 20:48:47, sra1 ...
5 years, 3 months ago (2015-09-04 20:57:00 UTC) #10
Siggi Cherem (dart-lang)
Committed patchset #3 (id:120001) manually as fc582d7a3da8373a0b2d1e98e582afd2d00d6861 (presubmit successful).
5 years, 3 months ago (2015-09-04 20:59:56 UTC) #11
floitsch
LGTM. https://codereview.chromium.org/1312943007/diff/120001/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/1312943007/diff/120001/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart#newcode136 pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart:136: lookupMapVersionVariable = library.implementation.findLocal('_version'); I think I would have ...
5 years, 3 months ago (2015-09-07 10:48:02 UTC) #13
Bill Hesse
https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/version_check_test.dart File pkg/lookup_map/test/version_check_test.dart (right): https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/version_check_test.dart#newcode14 pkg/lookup_map/test/version_check_test.dart:14: var pubspecPath = Platform.script.resolve('../pubspec.yaml').path; This is failing on windows ...
5 years, 3 months ago (2015-09-11 14:10:29 UTC) #15
Bill Hesse
https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/version_check_test.dart File pkg/lookup_map/test/version_check_test.dart (right): https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/version_check_test.dart#newcode14 pkg/lookup_map/test/version_check_test.dart:14: var pubspecPath = Platform.script.resolve('../pubspec.yaml').path; On 2015/09/11 14:10:29, Bill Hesse ...
5 years, 3 months ago (2015-09-11 14:17:56 UTC) #16
Siggi Cherem (dart-lang)
5 years, 3 months ago (2015-09-11 16:29:17 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/ve...
File pkg/lookup_map/test/version_check_test.dart (right):

https://codereview.chromium.org/1312943007/diff/120001/pkg/lookup_map/test/ve...
pkg/lookup_map/test/version_check_test.dart:14: var pubspecPath =
Platform.script.resolve('../pubspec.yaml').path;
On 2015/09/11 14:17:55, Bill Hesse wrote:
> On 2015/09/11 14:10:29, Bill Hesse wrote:
> > This is failing on windows because it uses .path instead of .toFilePath.
> > 
> > https://api.dartlang.org/1.12.1/dart-core/Uri/toFilePath.html
> 
> There is also new File.fromUri().

Oh - sorry about this, I didn't notice this failure. Thanks for sending the fix!

Powered by Google App Engine
This is Rietveld 408576698