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

Side by Side Diff: frog/server/frog_server.dart

Issue 9462001: Unify most of our utf8 implementations. This takes the implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « frog/leg/tools/mini_parser.dart ('k') | frog/server/utf8.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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('frog_server'); 5 #library('frog_server');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('../../lib/json/json.dart'); 8 #import('../../lib/json/json.dart');
9 #import('../lang.dart'); 9 #import('../lang.dart');
10 #import('../file_system_vm.dart'); 10 #import('../file_system_vm.dart');
11 #source('utf8.dart'); 11 #import('../../lib/utf/utf.dart');
12 12
13 /// The server socket used to listen for incoming connections. 13 /// The server socket used to listen for incoming connections.
14 ServerSocket serverSocket; 14 ServerSocket serverSocket;
15 15
16 initializeCompiler(String homedir) { 16 initializeCompiler(String homedir) {
17 final filesystem = new VMFileSystem(); 17 final filesystem = new VMFileSystem();
18 parseOptions(homedir, [null, null], filesystem); 18 parseOptions(homedir, [null, null], filesystem);
19 initializeWorld(filesystem); 19 initializeWorld(filesystem);
20 } 20 }
21 21
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 main() { 163 main() {
164 // TODO(jmesserly): until we have a way of getting the executable's path, 164 // TODO(jmesserly): until we have a way of getting the executable's path,
165 // we'll run from current working directory. 165 // we'll run from current working directory.
166 var homedir = new File('.').fullPathSync(); 166 var homedir = new File('.').fullPathSync();
167 167
168 var argv = new Options().arguments; 168 var argv = new Options().arguments;
169 var host = argv.length > 0 ? argv[0] : '127.0.0.1'; 169 var host = argv.length > 0 ? argv[0] : '127.0.0.1';
170 var port = argv.length > 1 ? Math.parseInt(argv[1]) : 1236; 170 var port = argv.length > 1 ? Math.parseInt(argv[1]) : 1236;
171 startServer(homedir, host, port); 171 startServer(homedir, host, port);
172 } 172 }
OLDNEW
« no previous file with comments | « frog/leg/tools/mini_parser.dart ('k') | frog/server/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698