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

Unified Diff: dart/lib/compiler/implementation/scanner/vm_scanner_bench.dart

Issue 10857005: Clean up the scanner directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/lib/compiler/implementation/scanner/source_list.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/vm_scanner_bench.dart
diff --git a/dart/lib/compiler/implementation/scanner/vm_scanner_bench.dart b/dart/lib/compiler/implementation/scanner/vm_scanner_bench.dart
deleted file mode 100644
index f02af1cd4a2e7c19cd3bf909c0bdb52be34fb2be..0000000000000000000000000000000000000000
--- a/dart/lib/compiler/implementation/scanner/vm_scanner_bench.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#library('vm_scanner_bench');
-#import('dart:io');
-#import('scannerlib.dart');
-#import('scanner_implementation.dart');
-#import('scanner_bench.dart');
-#import('../../../utf/utf.dart');
-#import('../util/characters.dart');
-#source('byte_strings.dart');
-#source('byte_array_scanner.dart');
-
-class VmScannerBench extends ScannerBench {
- int getBytes(String filename, void callback(List<int> bytes)) {
- var file = (new File(filename)).openSync(FileMode.READ);
- int size = file.lengthSync();
- List<int> bytes = new ByteArray(size + 1);
- file.readListSync(bytes, 0, size);
- bytes[size] = $EOF;
- file.closeSync();
- callback(bytes);
- return bytes.length - 1;
- }
-
- void checkExistence(String filename) {
- File file = new File(filename);
- if (!file.existsSync()) {
- print("no such file: ${filename}");
- }
- }
-
- Scanner makeScanner(bytes) => new ByteArrayScanner(bytes);
-}
-
-main() {
- new VmScannerBench().main(argv);
-}
« no previous file with comments | « dart/lib/compiler/implementation/scanner/source_list.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698