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

Issue 1955403002: Skip spurious constants in deferred computation. (Closed)

Created:
4 years, 7 months ago by Johnni Winther
Modified:
4 years, 7 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Skip spurious constants in deferred computation. BUG= R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/24c548f5bd0f91f8f53714fe189ac6a22370ca9a

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -25 lines) Patch
M pkg/compiler/lib/src/compile_time_constants.dart View 2 chunks +7 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/constants/expressions.dart View 1 15 chunks +99 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/backend.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 1 1 chunk +18 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 chunk +6 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 chunk +5 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart View 2 chunks +8 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/serialization/task.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/dart2js.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/dart2js_extra.status View 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/lib.status View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Johnni Winther
4 years, 7 months ago (2016-05-09 14:20:24 UTC) #2
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1955403002/diff/1/pkg/compiler/lib/src/constants/expressions.dart File pkg/compiler/lib/src/constants/expressions.dart (right): https://codereview.chromium.org/1955403002/diff/1/pkg/compiler/lib/src/constants/expressions.dart#newcode138 pkg/compiler/lib/src/constants/expressions.dart:138: /// if it contains positional or named references, used ...
4 years, 7 months ago (2016-05-09 20:03:04 UTC) #3
Siggi Cherem (dart-lang)
otherwise lgtm
4 years, 7 months ago (2016-05-09 20:03:12 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as 24c548f5bd0f91f8f53714fe189ac6a22370ca9a (presubmit successful).
4 years, 7 months ago (2016-05-10 07:41:41 UTC) #6
Johnni Winther
https://codereview.chromium.org/1955403002/diff/1/pkg/compiler/lib/src/constants/expressions.dart File pkg/compiler/lib/src/constants/expressions.dart (right): https://codereview.chromium.org/1955403002/diff/1/pkg/compiler/lib/src/constants/expressions.dart#newcode138 pkg/compiler/lib/src/constants/expressions.dart:138: /// if it contains positional or named references, used ...
4 years, 7 months ago (2016-05-10 09:26:16 UTC) #7
Siggi Cherem (dart-lang)
4 years, 7 months ago (2016-05-10 16:59:09 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1955403002/diff/1/tests/compiler/dart2js_extr...
File tests/compiler/dart2js_extra/dart2js_extra.status (right):

https://codereview.chromium.org/1955403002/diff/1/tests/compiler/dart2js_extr...
tests/compiler/dart2js_extra/dart2js_extra.status:56: deferred/*:
Pass,RuntimeError # Issue 17458
On 2016/05/10 09:26:16, Johnni Winther wrote:
> On 2016/05/09 20:03:04, Siggi Cherem (dart-lang) wrote:
> > Are these actually flaky? Can we just do "RuntimeError" or maybe use
> > "SkipByDesign"? Looking at the bug, it seems this is not supported at this
> time?
> 
> d8 on Windows doesn't support the properties we use to tell where the script
is
> located. For that reason, some deferred tests (the positive ones) fail at
> runtime, whereas some deferred tests (the negative ones) might not fail or are
> expected to fail.
> 
> To give better coverage on Windows we still compile the tests (checking
> invariants and such) but don't expect to much of the runtime.

I see. Two suggestions then:
 - label each test individually: that way each test is either Pass or
RuntimeError, but not both. It's my understanding that the way it is currently
written marks every test as flaky and will make our test infrastructure waste
time retrying the tests a couple times.

 - whenever we have a `RuntimeError`, write in the comment that this at least
expects no `CompileTimeError`.

https://codereview.chromium.org/1955403002/diff/1/tests/lib/lib.status
File tests/lib/lib.status (right):

https://codereview.chromium.org/1955403002/diff/1/tests/lib/lib.status#newcod...
tests/lib/lib.status:297: async/*deferred*: Pass,RuntimeError # Issue 17458
On 2016/05/10 09:26:16, Johnni Winther wrote:
> On 2016/05/09 20:03:04, Siggi Cherem (dart-lang) wrote:
> > ditto
> 
> ditto!

re-ditto :-)

Powered by Google App Engine
This is Rietveld 408576698