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

Unified Diff: frog/leg/scanner/vm_scanner_bench.dart

Issue 8883017: Split File into File and RandomAccessFile. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years 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 | « frog/file_system_vm.dart ('k') | frog/leg/tools/mini_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/scanner/vm_scanner_bench.dart
diff --git a/frog/leg/scanner/vm_scanner_bench.dart b/frog/leg/scanner/vm_scanner_bench.dart
index 7404a91223d5c4e031a585d28c3246b9ee2eb6f1..c475e10d3c210fcbcd6c32512729093d64a1f7a7 100644
--- a/frog/leg/scanner/vm_scanner_bench.dart
+++ b/frog/leg/scanner/vm_scanner_bench.dart
@@ -11,8 +11,7 @@
class VmScannerBench extends ScannerBench {
int getBytes(String filename, void callback(List<int> bytes)) {
- File file = new File(filename);
- file.openSync();
+ File file = (new File(filename)).openSync();
int size = file.lengthSync();
List<int> bytes = new List<int>(size + 1);
file.readListSync(bytes, 0, size);
« no previous file with comments | « frog/file_system_vm.dart ('k') | frog/leg/tools/mini_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698