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

Side by Side Diff: lib/compiler/implementation/scanner/node_scanner_bench.dart

Issue 10001008: Many type fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
kasperl 2012/04/16 13:10:46 Can we get rid of this file? Maybe ask Peter.
floitsch 2012/04/16 13:57:57 Peter changed this file with me. So I expect that
ahe 2012/04/16 15:02:28 I'm not sure this works anymore. I think I should
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('node_scanner_bench'); 5 #library('node_scanner_bench');
6 #import('../../node/node.dart'); 6 #import('../util/characters.dart');
7 #import('../../../../frog/lib/node/node.dart');
7 #import('scannerlib.dart'); 8 #import('scannerlib.dart');
8 #import('scanner_implementation.dart'); 9 #import('scanner_implementation.dart');
9 #import('scanner_bench.dart'); 10 #import('scanner_bench.dart');
10 #import('../../../utf/utf.dart'); 11 #import('../../../utf/utf.dart');
11 #source('byte_strings.dart'); 12 #source('byte_strings.dart');
12 #source('byte_array_scanner.dart'); 13 #source('byte_array_scanner.dart');
13 14
14 class NodeScannerBench extends ScannerBench { 15 class NodeScannerBench extends ScannerBench {
15 int getBytes(String filename, void callback(bytes)) { 16 int getBytes(String filename, void callback(bytes)) {
16 // This actually returns a buffer, not a String. 17 // This actually returns a buffer, not a String.
(...skipping 22 matching lines...) Expand all
39 // inline. 40 // inline.
40 int index = ++byteOffset; 41 int index = ++byteOffset;
41 int next = (bytes.length > index) ? bytes[index] : $EOF; 42 int next = (bytes.length > index) ? bytes[index] : $EOF;
42 return next; 43 return next;
43 } 44 }
44 } 45 }
45 46
46 main() { 47 main() {
47 new NodeScannerBench().main(argv); 48 new NodeScannerBench().main(argv);
48 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698