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

Issue 2659883002: Use entities in BackendClasses (Closed)

Created:
3 years, 10 months ago by Johnni Winther
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -237 lines) Patch
M pkg/compiler/lib/src/common/backend_api.dart View 1 2 chunks +120 lines, -30 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 3 chunks +4 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/constant_system_dart.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/core_types.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/inferrer/node_tracer.dart View 2 chunks +2 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_nodes.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 4 chunks +35 lines, -33 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_system_javascript.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/native/enqueue.dart View 1 1 chunk +7 lines, -13 lines 0 comments Download
M pkg/compiler/lib/src/ssa/interceptor_simplifier.dart View 4 chunks +19 lines, -19 lines 0 comments Download
M pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 2 chunks +35 lines, -37 lines 0 comments Download
M pkg/compiler/lib/src/ssa/optimize.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/types/flat_type_mask.dart View 4 chunks +17 lines, -17 lines 0 comments Download
M pkg/compiler/lib/src/types/map_type_mask.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/types/masks.dart View 3 chunks +46 lines, -54 lines 0 comments Download
M pkg/compiler/lib/src/universe/function_set.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/field_type_simple_inferer_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/simple_inferrer_final_field2_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/type_mask2_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
3 years, 10 months ago (2017-01-27 12:11:46 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/common/backend_api.dart File pkg/compiler/lib/src/common/backend_api.dart (right): https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/common/backend_api.dart#newcode433 pkg/compiler/lib/src/common/backend_api.dart:433: /// implementations of `List` in type masks. This ...
3 years, 10 months ago (2017-01-27 16:49:07 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as cb6d6c449ec5b9921e3251c045f7d7b6c4e12769 (presubmit successful).
3 years, 10 months ago (2017-01-30 09:28:54 UTC) #5
Johnni Winther
3 years, 10 months ago (2017-01-30 10:00:12 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/common...
File pkg/compiler/lib/src/common/backend_api.dart (right):

https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/common...
pkg/compiler/lib/src/common/backend_api.dart:433: /// implementations of `List`
in type masks. This is the `JSUnmodifiableArray` class.
On 2017/01/27 16:49:06, Siggi Cherem (dart-lang) wrote:
> long line

Done.

https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/native...
File pkg/compiler/lib/src/native/enqueue.dart (right):

https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/native...
pkg/compiler/lib/src/native/enqueue.dart:440: if (type ==
commonElements.intType) {
On 2017/01/27 16:49:06, Siggi Cherem (dart-lang) wrote:
> (optional) while we are here, minor readability nit: I'd merge many of these
> cases:
> 
> if (type == commonElements.numType) {
>   registerInstantiation(commonElements.intType);
>   registerInstantiation(commonElements.doubleType);
> } else if (type == commonElements.intType ||
>     type == commonElements.doubleType ||
>     type == commonElements.stringType ||
>     type == commonElements.nullType ||
>     type == commonElements.boolType ||
>     type.asInstanceOf(backend.backendClasses.listClass) != null) {
>   registerInstantiation(type);
> }
> 
> 
> (to make it clear that all we are doing is checking whether `type` is a native
> type we want to register, but that the action is the same).

Done.

https://codereview.chromium.org/2659883002/diff/1/pkg/compiler/lib/src/native...
pkg/compiler/lib/src/native/enqueue.dart:453: } else if
(type.asInstanceOf(backend.backendClasses.listClass) !=
On 2017/01/27 16:49:06, Siggi Cherem (dart-lang) wrote:
> any reason why use `asInstanceOf` and not keep `isSubtype`? we are still using
> isSubtype further below.

[asInstanceOf] is sufficient here but not below -- and I need to avoid a warning
about `rawType` acces on [ClassEntity].

They will be aligned in time (i.e. all such queries must go through the
ResolutionWorldBuilder).

Powered by Google App Engine
This is Rietveld 408576698