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

Issue 10905305: Patch refactoring. (Closed)

Created:
8 years, 3 months ago by Johnni Winther
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org, karlklose, ngeoffray, floitsch, kasperl, Anton Muhin
Visibility:
Public.

Description

Patch refactoring. This is the third and main part of the patch refactoring. Patch libraries, classes, and functions now have there separate element chain, which is doubly-linked to their origin counterparts. See the library comment in lib/compiler/patch_parser.dart for a detailed description of the new patch system, the terminology and the invariants. Committed: https://code.google.com/p/dart/source/detail?r=13163

Patch Set 1 #

Patch Set 2 : Minor clean-up #

Patch Set 3 : Rebased #

Total comments: 20

Patch Set 4 : Replaced includeInjectedMembers by implementation #

Total comments: 48

Patch Set 5 : Rebase #

Patch Set 6 : Rebased. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -206 lines) Patch
M lib/compiler/implementation/compile_time_constants.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/compiler.dart View 1 2 3 4 5 4 chunks +6 lines, -17 lines 0 comments Download
M lib/compiler/implementation/dart_backend/backend.dart View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/dart_backend/renamer.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 2 3 4 5 33 chunks +178 lines, -46 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/js_backend/constant_emitter.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/js_backend/namer.dart View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M lib/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 1 comment Download
M lib/compiler/implementation/lib/core_patch.dart View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/lib/isolate_patch.dart View 1 2 3 4 1 chunk +1 line, -1 line 1 comment Download
M lib/compiler/implementation/native_handler.dart View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M lib/compiler/implementation/patch_parser.dart View 1 2 3 4 10 chunks +23 lines, -22 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 4 16 chunks +215 lines, -47 lines 0 comments Download
M lib/compiler/implementation/scanner/listener.dart View 1 2 3 4 3 chunks +6 lines, -9 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 7 chunks +19 lines, -8 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M lib/compiler/implementation/world.dart View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M lib/core/errors.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart View 1 2 3 4 3 chunks +2 lines, -7 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 5 chunks +136 lines, -18 lines 0 comments Download
M tests/isolate/isolate.status View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Johnni Winther
8 years, 3 months ago (2012-09-16 22:50:39 UTC) #1
Johnni Winther
PTAL
8 years, 3 months ago (2012-09-17 10:57:43 UTC) #2
Johnni Winther
PTAL
8 years, 3 months ago (2012-09-21 14:50:15 UTC) #3
ahe
https://codereview.chromium.org/10905305/diff/6001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/10905305/diff/6001/lib/compiler/implementation/elements/elements.dart#newcode312 lib/compiler/implementation/elements/elements.dart:312: Scope buildScope([bool patchScope = false]) => I don't like ...
8 years, 3 months ago (2012-09-24 12:30:18 UTC) #4
Johnni Winther
PTAL https://codereview.chromium.org/10905305/diff/6001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/10905305/diff/6001/lib/compiler/implementation/elements/elements.dart#newcode312 lib/compiler/implementation/elements/elements.dart:312: Scope buildScope([bool patchScope = false]) => On 2012/09/24 ...
8 years, 2 months ago (2012-09-25 09:01:07 UTC) #5
ahe
LGTM (ship it with TODOs please :-) https://chromiumcodereview.appspot.com/10905305/diff/12001/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10905305/diff/12001/lib/compiler/implementation/dart_backend/backend.dart#newcode204 lib/compiler/implementation/dart_backend/backend.dart:204: // include ...
8 years, 2 months ago (2012-10-02 13:27:04 UTC) #6
ahe
https://chromiumcodereview.appspot.com/10905305/diff/12001/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10905305/diff/12001/lib/compiler/implementation/resolver.dart#newcode338 lib/compiler/implementation/resolver.dart:338: element.interfaces = element.origin.interfaces; On 2012/10/02 13:27:04, ahe wrote: > ...
8 years, 2 months ago (2012-10-02 14:33:26 UTC) #7
Johnni Winther
https://codereview.chromium.org/10905305/diff/12001/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/10905305/diff/12001/lib/compiler/implementation/dart_backend/backend.dart#newcode204 lib/compiler/implementation/dart_backend/backend.dart:204: // include injected members? On 2012/10/02 13:27:04, ahe wrote: ...
8 years, 2 months ago (2012-10-03 09:22:59 UTC) #8
Lasse Reichstein Nielsen
8 years, 2 months ago (2012-10-09 11:04:35 UTC) #9
lgtm

https://chromiumcodereview.appspot.com/10905305/diff/23001/lib/compiler/imple...
File lib/compiler/implementation/js_backend/native_emitter.dart (right):

https://chromiumcodereview.appspot.com/10905305/diff/23001/lib/compiler/imple...
lib/compiler/implementation/js_backend/native_emitter.dart:122:
classElement.implementation.forEachMember((_, Element member) {
Drop the first parameter to the function and just pass the actual member. The
key comes from a map somewhere, I guess, and that's an implementation detail.

https://chromiumcodereview.appspot.com/10905305/diff/23001/lib/compiler/imple...
File lib/compiler/implementation/lib/isolate_patch.dart (right):

https://chromiumcodereview.appspot.com/10905305/diff/23001/lib/compiler/imple...
lib/compiler/implementation/lib/isolate_patch.dart:97: patch ReceivePort get
port() {
Wut? There should not be parentheses after getters. If it's in the original,
remove them there.

Powered by Google App Engine
This is Rietveld 408576698