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

Issue 10919130: Reimplement SourceFile.getLine using binary search. (Closed)

Created:
8 years, 3 months ago by podivilov
Modified:
8 years, 3 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Reimplement SourceFile.getLine using binary search. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=12102

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M lib/compiler/implementation/source_file.dart View 1 1 chunk +18 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
podivilov
8 years, 3 months ago (2012-09-06 17:46:05 UTC) #1
podivilov
ping
8 years, 3 months ago (2012-09-10 08:11:32 UTC) #2
floitsch
LGTM. https://chromiumcodereview.appspot.com/10919130/diff/1/lib/compiler/implementation/source_file.dart File lib/compiler/implementation/source_file.dart (right): https://chromiumcodereview.appspot.com/10919130/diff/1/lib/compiler/implementation/source_file.dart#newcode50 lib/compiler/implementation/source_file.dart:50: int step = count >> 1; count ~/ ...
8 years, 3 months ago (2012-09-10 09:08:20 UTC) #3
podivilov
8 years, 3 months ago (2012-09-10 09:45:45 UTC) #4
https://chromiumcodereview.appspot.com/10919130/diff/1/lib/compiler/implement...
File lib/compiler/implementation/source_file.dart (right):

https://chromiumcodereview.appspot.com/10919130/diff/1/lib/compiler/implement...
lib/compiler/implementation/source_file.dart:50: int step = count >> 1;
On 2012/09/10 09:08:20, floitsch wrote:
> count ~/ 2

Done.

Powered by Google App Engine
This is Rietveld 408576698