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

Issue 2686533002: Refactor computation of NativeBehavior. (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

Refactor computation of NativeBehavior. - to prepare for kernel based implementation. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/a2837b78d51aa79e85822d701555f538084b08b6

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 8

Patch Set 3 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -184 lines) Patch
M pkg/compiler/lib/src/js_backend/backend.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/kernel/world_builder.dart View 1 1 chunk +6 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/native/behavior.dart View 1 2 8 chunks +172 lines, -139 lines 0 comments Download
M pkg/compiler/lib/src/native/enqueue.dart View 3 chunks +1 line, -33 lines 0 comments Download
M pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart View 1 2 1 chunk +12 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Johnni Winther
3 years, 10 months ago (2017-02-08 11:07:38 UTC) #3
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/native/behavior.dart File pkg/compiler/lib/src/native/behavior.dart (right): https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/native/behavior.dart#newcode830 pkg/compiler/lib/src/native/behavior.dart:830: abstract class BehaviorComputer { nit: rename as BehaviorBuilder ...
3 years, 10 months ago (2017-02-08 17:00:28 UTC) #4
Johnni Winther
Committed patchset #3 (id:40001) manually as a2837b78d51aa79e85822d701555f538084b08b6 (presubmit successful).
3 years, 10 months ago (2017-02-09 10:20:44 UTC) #6
Johnni Winther
3 years, 10 months ago (2017-02-10 09:11:46 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/na...
File pkg/compiler/lib/src/native/behavior.dart (right):

https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/na...
pkg/compiler/lib/src/native/behavior.dart:830: abstract class BehaviorComputer {
On 2017/02/08 17:00:28, Siggi Cherem (dart-lang) wrote:
> nit: rename as BehaviorBuilder or BehaviorFactory
> 
> (I prefer builder)

Done.

https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/na...
pkg/compiler/lib/src/native/behavior.dart:963: NativeBehavior
ofFieldLoad(DartType type,
On 2017/02/08 17:00:28, Siggi Cherem (dart-lang) wrote:
> Let's rename these now that they are no longer on NativeBehavior (the
> "ofFieldLoad" made sense when read in context like
> "NativeBehavior.ofFieldLoad").
> 
> Suggestions:
>  - buildFieldLoadBehavior
>  - fieldLoadBehaviorOf
> 
> I prefer the former (builderFieldLoadBehavior) since it's not expilcit in the
> arguments what is the field (what the "Of" is about). 

Done.

https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/na...
pkg/compiler/lib/src/native/behavior.dart:1021: class BehaviorComputerImpl
extends BehaviorComputer {
On 2017/02/08 17:00:28, Siggi Cherem (dart-lang) wrote:
> nit: rename to ResolverBehaviorBuilder? (so the new one can be called
> KernelBehaviorBuilder?)

Done.

https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/ss...
File pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart (right):

https://codereview.chromium.org/2686533002/diff/20001/pkg/compiler/lib/src/ss...
pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart:599: // TODO(johnniwinther):
Provide the correct value for [isJsInterop].
On 2017/02/08 17:00:28, Siggi Cherem (dart-lang) wrote:
> was this working before? (are there tests that will stop working after this
> change as a result?) - that is OK, but it would be good to know.

Same behavior as before (probably not working).

Powered by Google App Engine
This is Rietveld 408576698