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

Issue 23850014: - Use simplified token location call where appropriate. (Closed)

Created:
7 years, 3 months ago by Ivan Posva
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Use simplified token location call where appropriate. R=asiva@google.com, hausner@google.com, mlippautz@google.com Committed: https://code.google.com/p/dart/source/detail?r=27833

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -24 lines) Patch
M pkg/stack_trace/lib/src/frame.dart View 1 2 2 chunks +11 lines, -3 lines 7 comments Download
M pkg/stack_trace/test/frame_test.dart View 1 1 chunk +0 lines, -2 lines 2 comments Download
M runtime/vm/debugger.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 2 chunks +27 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Ivan Posva
7 years, 3 months ago (2013-09-23 23:59:33 UTC) #1
siva
lgtm
7 years, 3 months ago (2013-09-24 00:09:29 UTC) #2
hausner
LGTM
7 years, 3 months ago (2013-09-24 00:11:56 UTC) #3
Michael Lippautz (Google)
lgtm :)
7 years, 3 months ago (2013-09-24 00:16:16 UTC) #4
Ivan Posva
Bob: FYI -Ivan
7 years, 3 months ago (2013-09-24 17:28:01 UTC) #5
Ivan Posva
Committed patchset #3 manually as r27833 (presubmit successful).
7 years, 3 months ago (2013-09-24 17:32:44 UTC) #6
Bob Nystrom
Adding Nathan to review it. https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart File pkg/stack_trace/lib/src/frame.dart (right): https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart#newcode117 pkg/stack_trace/lib/src/frame.dart:117: var col = null; ...
7 years, 3 months ago (2013-09-24 17:53:56 UTC) #7
nweiz
Please don't commit CLs that modify code you don't own without getting an LGTM from ...
7 years, 3 months ago (2013-09-24 20:16:03 UTC) #8
Ivan Posva
Fixed in r27852. -Ivan https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart File pkg/stack_trace/lib/src/frame.dart (right): https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart#newcode117 pkg/stack_trace/lib/src/frame.dart:117: var col = null; On ...
7 years, 2 months ago (2013-09-24 20:55:11 UTC) #9
nweiz
https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart File pkg/stack_trace/lib/src/frame.dart (right): https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/frame.dart#newcode118 pkg/stack_trace/lib/src/frame.dart:118: var col_match = match[4]; On 2013/09/24 20:55:11, Ivan Posva ...
7 years, 2 months ago (2013-09-24 20:57:11 UTC) #10
Ivan Posva
7 years, 2 months ago (2013-09-24 21:11:57 UTC) #11
Message was sent while issue was closed.
On 2013/09/24 20:57:11, nweiz wrote:
>
https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/f...
> File pkg/stack_trace/lib/src/frame.dart (right):
> 
>
https://codereview.chromium.org/23850014/diff/12001/pkg/stack_trace/lib/src/f...
> pkg/stack_trace/lib/src/frame.dart:118: var col_match = match[4];
> On 2013/09/24 20:55:11, Ivan Posva wrote:
> > On 2013/09/24 20:16:03, nweiz wrote:
> > > On 2013/09/24 17:53:56, Bob Nystrom wrote:
> > > > "col_match" -> "columnMatch".
> > > 
> > > This variable seems superfluous. Just use match[4] instead.
> > 
> > Every time you access that same array element, you duplicate more strings
for
> no
> > reason.
> 
> I care about that a couple orders of magnitude less than I care about code
> cleanliness.

I can definitely see that repeated uses of "match[4]" are more descriptive and
cleaner than "columnMatch".

-Ivan

Powered by Google App Engine
This is Rietveld 408576698