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

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed)

Created:
8 years, 1 month ago by Anders Johnsen
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, Alan Knight, Bob Nystrom
Visibility:
Public.

Description

Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. After this cleanup, RegExp no longer have a const constructor. Use 'new RegExp(...)' from now on. BUG= Committed: https://code.google.com/p/dart/source/detail?r=14838

Patch Set 1 #

Patch Set 2 : Make VM's JSSyntaxRegExp private. #

Total comments: 2

Patch Set 3 : Change arrow-syntax factory into brace-syntax, due to multiline content. #

Total comments: 16

Patch Set 4 : Make it depend on https://codereview.chromium.org/11410033/ #

Patch Set 5 : Review update #

Patch Set 6 : Rebase to bleeding. #

Patch Set 7 : Fix two pending TODO's. #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -532 lines) Patch
M compiler/api.dart View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/CommandLineOptions.java View 2 chunks +0 lines, -10 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 chunk +0 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 1 chunk +1 line, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/PackageLibraryManagerTest.java View 2 chunks +0 lines, -29 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/SystemLibrariesReaderTest.java View 1 chunk +0 lines, -13 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartLibraryImplTest.java View 1 2 3 4 5 4 chunks +2 lines, -34 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/PackageLibraryManagerProviderAnyTest.java View 1 chunk +0 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/PackageLibraryManagerProviderDartCTest.java View 1 chunk +0 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/PackageLibraryManagerProviderTest.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/samples/SamplesTest.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmConnection.java View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/dartutils.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/io.dart View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/lib/array.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/byte_array.dart View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D runtime/lib/lib_impl_sources.gypi View 1 chunk +0 lines, -17 lines 0 comments Download
M runtime/lib/lib_sources.gypi View 1 chunk +7 lines, -0 lines 3 comments Download
M runtime/lib/regexp_patch.dart View 1 2 3 4 5 6 5 chunks +21 lines, -13 lines 0 comments Download
M runtime/vm/bootstrap.h View 2 chunks +0 lines, -3 lines 0 comments Download
M runtime/vm/bootstrap.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/bootstrap_natives.cc View 1 chunk +0 lines, -4 lines 2 comments Download
M runtime/vm/bootstrap_nocorelib.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 3 chunks +2 lines, -9 lines 2 comments Download
M runtime/vm/object.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 8 chunks +2 lines, -39 lines 2 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 2 chunks +1 line, -9 lines 2 comments Download
M runtime/vm/snapshot_test.cc View 1 chunk +0 lines, -5 lines 2 comments Download
M runtime/vm/symbols.h View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/vm.gypi View 6 chunks +0 lines, -84 lines 0 comments Download
M samples/swarm/swarm_ui_lib/observable/observable.dart View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M samples/swarm/swarm_ui_lib/touch/touch.dart View 1 chunk +0 lines, -1 line 0 comments Download
M samples/swarm/swarmlib.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 4 chunks +5 lines, -13 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 chunk +9 lines, -0 lines 0 comments Download
D sdk/lib/_internal/compiler/implementation/lib/coreimpl_patch.dart View 1 2 3 1 chunk +0 lines, -131 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart View 1 2 3 4 5 1 chunk +123 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M sdk/lib/core/core.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/core/regexp.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/core/sort.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D sdk/lib/coreimpl/coreimpl.dart View 1 chunk +0 lines, -9 lines 0 comments Download
D sdk/lib/coreimpl/corelib_impl_sources.gypi View 1 chunk +0 lines, -9 lines 0 comments Download
D sdk/lib/coreimpl/regexp.dart View 1 2 3 1 chunk +0 lines, -16 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/benchmark_smoke/benchmark_lib.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M tests/corelib/queue_test.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M tests/corelib/sort_test.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/black_listed_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tools/create_sdk.py View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M tools/testing/legpad/legpad.py View 1 chunk +0 lines, -1 line 0 comments Download
M utils/apidoc/html_diff.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Anders Johnsen
Peter, can you look at the Dart2JS changes? Konstantin, can you look at the Editor ...
8 years, 1 month ago (2012-11-12 12:16:59 UTC) #1
Anders Johnsen
8 years, 1 month ago (2012-11-12 12:17:17 UTC) #2
Mads Ager (google)
VM changes look good to me. https://codereview.chromium.org/11365196/diff/2001/runtime/lib/regexp_patch.dart File runtime/lib/regexp_patch.dart (right): https://codereview.chromium.org/11365196/diff/2001/runtime/lib/regexp_patch.dart#newcode9 runtime/lib/regexp_patch.dart:9: => new _JSSyntaxRegExp(pattern, ...
8 years, 1 month ago (2012-11-12 12:28:10 UTC) #3
Anders Johnsen
https://codereview.chromium.org/11365196/diff/2001/runtime/lib/regexp_patch.dart File runtime/lib/regexp_patch.dart (right): https://codereview.chromium.org/11365196/diff/2001/runtime/lib/regexp_patch.dart#newcode9 runtime/lib/regexp_patch.dart:9: => new _JSSyntaxRegExp(pattern, On 2012/11/12 12:28:10, Mads Ager wrote: ...
8 years, 1 month ago (2012-11-12 12:30:31 UTC) #4
ahe
I would be awesome if you could separate the changes from 'const RegExp' -> 'new ...
8 years, 1 month ago (2012-11-12 12:55:23 UTC) #5
floitsch
LGTM. Adding Alan and Bob as CC since most of the const->new changes are in ...
8 years, 1 month ago (2012-11-12 16:31:56 UTC) #6
Anders Johnsen
Thank you! https://codereview.chromium.org/11365196/diff/6001/pkg/intl/lib/date_format.dart File pkg/intl/lib/date_format.dart (right): https://codereview.chromium.org/11365196/diff/6001/pkg/intl/lib/date_format.dart#newcode448 pkg/intl/lib/date_format.dart:448: static var _matchers = [ On 2012/11/12 ...
8 years, 1 month ago (2012-11-12 16:58:38 UTC) #7
Anders Johnsen
Alan, Bob, check out https://codereview.chromium.org/11410033/ for the changes. I've isolated the const->new changes over here.
8 years, 1 month ago (2012-11-12 17:09:16 UTC) #8
scheglov
lgtm
8 years, 1 month ago (2012-11-12 23:09:22 UTC) #9
Ivan Posva
Does not LGTM, there are too many inconsistencies in the VM related code. Please make ...
8 years, 1 month ago (2012-11-13 18:26:27 UTC) #10
Anders Johnsen
As the log will show, Ager did review the VM changes, and many of the ...
8 years, 1 month ago (2012-11-13 18:40:26 UTC) #11
Mads Ager (google)
https://codereview.chromium.org/11365196/diff/11067/runtime/lib/lib_sources.gypi File runtime/lib/lib_sources.gypi (right): https://codereview.chromium.org/11365196/diff/11067/runtime/lib/lib_sources.gypi#newcode31 runtime/lib/lib_sources.gypi:31: 'math.dart', On 2012/11/13 18:40:26, ajohnsen wrote: > On 2012/11/13 ...
8 years, 1 month ago (2012-11-14 10:32:31 UTC) #12
Ivan Posva
8 years, 1 month ago (2012-11-15 09:14:46 UTC) #13
On 2012/11/14 10:32:31, Mads Ager wrote:
>
https://codereview.chromium.org/11365196/diff/11067/runtime/lib/lib_sources.gypi
> File runtime/lib/lib_sources.gypi (right):
> 
>
https://codereview.chromium.org/11365196/diff/11067/runtime/lib/lib_sources.g...
> runtime/lib/lib_sources.gypi:31: 'math.dart',
> On 2012/11/13 18:40:26, ajohnsen wrote:
> > On 2012/11/13 18:26:28, Ivan Posva wrote:
> > > Why was this moved here? The functions in this file should definitely not
> end
> > up
> > > in dart:core.
> > 
> > It lived in coreimpl before, so that's why it was moved here. Let me know
> where
> > you would like this to end.
> 
> The problem is not the move. The problem is that MathNatives now becomes a
part
> of the VM core library. It shouldn't be. We need to make MathNatives a private
> class in dart:core so we do not extend core. I should have caught this in the
> review. Sorry.

Actually since MathNatives is only used from within dart:math it should move
there instead. I do have a change locally which deals with this and other
related cleanup.

-Ivan

Powered by Google App Engine
This is Rietveld 408576698