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

Issue 2732793002: Add NativeDataResolver (Closed)

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

Description

Add NativeDataResolver - to further align the NativeData computation towards separating builders from data. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/69b47ea0104d510689baaf3a63bec90325a0ebd3

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 3

Patch Set 3 : Fix. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -336 lines) Patch
M pkg/compiler/lib/src/common/backend_api.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/common/resolution.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 9 chunks +9 lines, -57 lines 2 comments Download
M pkg/compiler/lib/src/js_backend/js_interop_analysis.dart View 1 4 chunks +7 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/native_data.dart View 8 chunks +55 lines, -21 lines 2 comments Download
M pkg/compiler/lib/src/js_backend/patch_resolver.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/native_emitter.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/native/behavior.dart View 3 chunks +6 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/native/enqueue.dart View 6 chunks +2 lines, -124 lines 0 comments Download
A pkg/compiler/lib/src/native/resolver.dart View 1 2 1 chunk +325 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/patch_parser.dart View 6 chunks +15 lines, -97 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 8 chunks +8 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/ssa/optimize.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 6 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
https://codereview.chromium.org/2732793002/diff/20001/pkg/compiler/lib/src/js_backend/patch_resolver.dart File pkg/compiler/lib/src/js_backend/patch_resolver.dart (left): https://codereview.chromium.org/2732793002/diff/20001/pkg/compiler/lib/src/js_backend/patch_resolver.dart#oldcode36 pkg/compiler/lib/src/js_backend/patch_resolver.dart:36: } else if (!compiler.backend.nativeData.isJsInterop(element)) { We don't end up ...
3 years, 9 months ago (2017-03-04 16:34:29 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2732793002/diff/20001/pkg/compiler/lib/src/patch_parser.dart File pkg/compiler/lib/src/patch_parser.dart (left): https://codereview.chromium.org/2732793002/diff/20001/pkg/compiler/lib/src/patch_parser.dart#oldcode336 pkg/compiler/lib/src/patch_parser.dart:336: checkNativeAnnotation(compiler, patch); On 2017/03/04 16:34:29, Johnni Winther wrote: ...
3 years, 9 months ago (2017-03-14 04:09:15 UTC) #3
Johnni Winther
Committed patchset #3 (id:40001) manually as 69b47ea0104d510689baaf3a63bec90325a0ebd3 (presubmit successful).
3 years, 9 months ago (2017-03-15 10:54:55 UTC) #5
Johnni Winther
3 years, 9 months ago (2017-03-15 10:55:13 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2732793002/diff/40001/pkg/compiler/lib/src/js...
File pkg/compiler/lib/src/js_backend/backend.dart (right):

https://codereview.chromium.org/2732793002/diff/40001/pkg/compiler/lib/src/js...
pkg/compiler/lib/src/js_backend/backend.dart:667: if
(_nativeDataResolver.isJsInteropMember(element)) {
On 2017/03/14 04:09:15, Siggi Cherem (dart-lang) wrote:
> was the jsinterop check within patchResolver.resolveExternalFunction
unreachable
> because of this check here?

Yes.

https://codereview.chromium.org/2732793002/diff/40001/pkg/compiler/lib/src/js...
File pkg/compiler/lib/src/js_backend/native_data.dart (right):

https://codereview.chromium.org/2732793002/diff/40001/pkg/compiler/lib/src/js...
pkg/compiler/lib/src/js_backend/native_data.dart:36: bool
isJsInteropLibrary(LibraryElement element);
On 2017/03/14 04:09:15, Siggi Cherem (dart-lang) wrote:
> couple random thoughts here: 
> - maybe this means we need to rename NativeClassData to something else?
> NativeDeclarationData? NativeBasicData?
> - isJsInteropLibrary could also mean is this the "dart:js" library or is this
> the "package:js" library... The dartdoc clarifies this, so I don't think we
need
> to change it, but might be good to have this ambiguity in mind.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698