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

Issue 1318383002: Extract ReceiverMask interface from TypeMask. (Closed)

Created:
5 years, 3 months ago by Johnni Winther
Modified:
5 years, 3 months ago
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: 8

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -98 lines) Patch
M pkg/compiler/lib/src/enqueue.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart View 3 chunks +7 lines, -20 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart View 1 2 chunks +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/types/type_mask.dart View 1 chunk +67 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/universe/universe.dart View 1 7 chunks +73 lines, -69 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Johnni Winther
Main changes in universe.dart and types.dart
5 years, 3 months ago (2015-08-31 12:27:56 UTC) #2
Johnni Winther
Well, type_mask.dart instead of types.dart!
5 years, 3 months ago (2015-08-31 12:28:49 UTC) #3
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart File pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart (right): https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart#newcode224 pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart:224: if (callSelectors == null) callSelectors = const <Selector, ...
5 years, 3 months ago (2015-09-01 02:12:59 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as 82e96229693293f65ae3fb57d7555a8cb9f40e4f (presubmit successful).
5 years, 3 months ago (2015-09-01 07:39:28 UTC) #5
Johnni Winther
5 years, 3 months ago (2015-09-01 08:15:51 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/js_emi...
File pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart (right):

https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/js_emi...
pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart:224: if
(callSelectors == null) callSelectors = const <Selector, ReceiverMaskSet>{};
On 2015/09/01 02:12:59, Siggi Cherem (dart-lang) wrote:
> nit: wrap

Done.

https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/univer...
File pkg/compiler/lib/src/universe/universe.dart (right):

https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/universe.dart:48: /// invoked on this type mask.
[selector] is used to ensure library
On 2015/09/01 02:12:59, Siggi Cherem (dart-lang) wrote:
> type => receiver?

Done.

https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/universe.dart:63: abstract class ReceiverMaskSet {
On 2015/09/01 02:12:59, Siggi Cherem (dart-lang) wrote:
> let's keep the term for now, but I wonder if "mask" is just an implementation
> term we might want to use only for TypeMask?
> 
> ReceiverMarkSet could become ReceiverSet, I'm not sure what to call
ReceiverMask
> though.

Acknowledged.

https://codereview.chromium.org/1318383002/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/universe.dart:86: bool
addReceiverMask(ReceiverMask mask);
On 2015/09/01 02:12:59, Siggi Cherem (dart-lang) wrote:
> if this is the main API to add a possible receiver, I wonder whether we gain
> from using the ReceiverMask abstraction in this external API, or if we should
> simply specify which element may become a receiver directly here:
> 
>   bool addReceiver(ClassElement element, Selector selector);
> 
> Maybe something we can brainstorm more about on our next meeting? For now I
> think it's ok to submit as is.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698