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

Issue 12310103: Small cleanups in RegExp to avoid generating lots of code just because there is a try/catch in our … (Closed)

Created:
7 years, 10 months ago by ngeoffray
Modified:
7 years, 10 months ago
Reviewers:
ahe, floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Small cleanups in RegExp to avoid generating lots of code just because there is a try/catch in our RegExp implementation. Committed: https://code.google.com/p/dart/source/detail?r=19037

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -108 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 3 chunks +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart View 1 3 chunks +53 lines, -63 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/string_helper.dart View 1 2 chunks +4 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 1 chunk +9 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/tracer.dart View 1 1 chunk +25 lines, -29 lines 0 comments Download
M sdk/lib/collection/collections.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/regexp.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/corelib/corelib.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart File sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (right): https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart#newcode97 sdk/lib/_internal/compiler/implementation/lib/string_helper.dart:97: var quoter = JS('', "new RegExp(#, 'g')", r'[-[\]{}()*+?.,\\^$|#\s]'); I ...
7 years, 10 months ago (2013-02-25 12:46:59 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart File sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart (right): https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart#newcode82 sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart:82: JSSyntaxRegExp._globalVersionOf(JSSyntaxRegExp other) move up to other constructors.
7 years, 10 months ago (2013-02-25 13:42:34 UTC) #2
ahe
LGTM! https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart File sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart (right): https://codereview.chromium.org/12310103/diff/1/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart#newcode28 sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart:28: static _makeNative( This doesn't need to be private. ...
7 years, 10 months ago (2013-02-26 10:18:21 UTC) #3
ngeoffray
Thanks Florian and Peter. Note that this change also revealed a bug in our SSA ...
7 years, 10 months ago (2013-02-26 11:40:34 UTC) #4
ngeoffray
7 years, 10 months ago (2013-02-26 11:55:06 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r19037 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698