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

Issue 1431983003: Canonicalize BackendImpact (Closed)

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

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -231 lines) Patch
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 1 chunk +497 lines, -231 lines 3 comments Download

Messages

Total messages: 6 (1 generated)
Johnni Winther
This prepares for using impact strategies to only computing and applying each backend impact once ...
5 years, 1 month ago (2015-11-09 17:16:34 UTC) #2
sigurdm
LGTM https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_backend/backend_impact.dart File pkg/compiler/lib/src/js_backend/backend_impact.dart (right): https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#newcode52 pkg/compiler/lib/src/js_backend/backend_impact.dart:52: _getRuntimeTypeArgument = new BackendImpact( These could be done ...
5 years, 1 month ago (2015-11-10 08:07:07 UTC) #3
Johnni Winther
Committed patchset #1 (id:1) manually as 686faebf707c8e92db41b0d766ffcedd83d168d8 (presubmit successful).
5 years, 1 month ago (2015-11-10 10:25:21 UTC) #4
Johnni Winther
https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_backend/backend_impact.dart File pkg/compiler/lib/src/js_backend/backend_impact.dart (right): https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#newcode52 pkg/compiler/lib/src/js_backend/backend_impact.dart:52: _getRuntimeTypeArgument = new BackendImpact( On 2015/11/10 08:07:07, sigurdm wrote: ...
5 years, 1 month ago (2015-11-10 10:26:37 UTC) #5
sigurdm
5 years, 1 month ago (2015-11-10 12:11:07 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_bac...
File pkg/compiler/lib/src/js_backend/backend_impact.dart (right):

https://codereview.chromium.org/1431983003/diff/1/pkg/compiler/lib/src/js_bac...
pkg/compiler/lib/src/js_backend/backend_impact.dart:52: _getRuntimeTypeArgument
= new BackendImpact(
On 2015/11/10 10:26:37, Johnni Winther wrote:
> On 2015/11/10 08:07:07, sigurdm wrote:
> > These could be done with ?= null-aware assignment. Not sure its better
though.
> 
> It looks strange:
> 
>   return _getRuntimeTypeArgument ?= new Backend(...)
> 
> Maybe me (and my editor) just need to get used to it. Not in this CL though.

I thought about two lines:
_getRuntimeTypeArgument ?= new Backend(...)
return _getRuntimeTypeArgument;

Powered by Google App Engine
This is Rietveld 408576698