turnidge@google.com
7177dce4e9
Make gen files more human-readable by using a string initializer
...
instead of an integer array initializer.
For example, the initializer in builtin_gen.cc now looks something like this:
const char Builtin::builtin_source_[] =
// ----- bin/builtin.dart -----
"// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file\n"
"// for details. All rights reserved. Use of this source code is governed by a\n"
"// BSD-style license that can be found in the LICENSE file.\n"
"\n"
"#library(\"builtin\");\n"
"#import(\"dart:nativewrappers\");\n"
"#import(\"dart:coreimpl\");\n"
"\n"
"void print(arg) {\n"
" _Logger._printString(arg.toString());\n" /* L10 */
"}\n"
"\n"
"void exit(int status) {\n"
" if (status is !int) {\n"
" throw new IllegalArgumentException(\"int status expected\");\n"
" }\n"
" _exit(status);\n"
"}\n"
"\n"
"_exit(int status) native \"Exit\";\n" /* L20 */
"\n"
"class _Logger {\n"
" static void _printString(String s) native \"Logger_PrintString\";\n"
"}\n"
;
Review URL: https://chromiumcodereview.appspot.com//9348112
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4280 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 19:14:03 +00:00
..
2012-01-17 19:54:02 +00:00
2012-02-01 18:53:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2012-02-02 19:44:55 +00:00
2012-02-02 19:44:55 +00:00
2012-02-02 19:44:55 +00:00
2012-01-04 08:04:04 +00:00
2011-10-05 05:20:07 +00:00
2012-01-04 08:04:04 +00:00
2011-11-30 23:55:30 +00:00
2011-11-30 23:55:30 +00:00
2011-12-17 00:56:02 +00:00
2012-01-10 00:32:51 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2012-02-06 19:52:02 +00:00
2012-02-14 00:58:56 +00:00
2011-10-05 05:20:07 +00:00
2012-02-06 19:52:02 +00:00
2012-02-02 19:05:06 +00:00
2012-01-16 12:28:10 +00:00
2012-02-08 09:22:46 +00:00
2012-01-31 20:05:24 +00:00
2011-12-09 17:25:44 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 12:28:10 +00:00
2011-12-27 23:54:30 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-12-01 00:30:25 +00:00
2012-02-03 22:25:16 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-02-06 19:52:02 +00:00
2012-02-15 00:44:16 +00:00
2012-02-06 19:52:02 +00:00
2011-12-20 21:40:28 +00:00
2012-02-06 19:52:02 +00:00
2012-02-14 00:58:56 +00:00
2012-02-11 01:02:09 +00:00
2012-02-06 19:52:02 +00:00
2012-02-14 00:58:56 +00:00
2012-02-11 01:02:09 +00:00
2012-02-02 19:05:06 +00:00
2011-12-16 23:16:00 +00:00
2012-01-16 12:28:10 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2011-11-30 17:04:45 +00:00
2012-02-06 19:52:02 +00:00
2011-11-30 17:04:45 +00:00
2012-02-06 19:52:02 +00:00
2011-12-17 00:56:02 +00:00
2011-11-30 17:04:45 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2011-12-17 00:56:02 +00:00
2012-02-15 19:14:03 +00:00
2012-02-15 19:14:03 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-01-16 12:28:10 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-01-24 19:31:01 +00:00
2012-02-15 02:51:11 +00:00
2012-02-15 02:51:11 +00:00
2012-02-09 08:47:19 +00:00
2012-02-14 15:26:01 +00:00
2012-02-09 14:09:03 +00:00
2012-02-11 04:34:44 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-02-09 08:47:19 +00:00
2012-02-02 19:05:06 +00:00
2012-01-31 18:10:08 +00:00
2012-02-02 19:05:06 +00:00
2011-12-22 00:21:41 +00:00
2011-12-22 00:17:15 +00:00
2011-12-22 00:21:41 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-01-16 13:23:40 +00:00
2012-01-13 01:39:23 +00:00
2012-01-13 01:39:23 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2012-02-06 22:16:44 +00:00
2011-11-30 23:12:46 +00:00
2012-01-16 13:23:40 +00:00
2011-11-30 23:12:46 +00:00
2011-11-30 23:12:46 +00:00
2011-12-22 22:18:21 +00:00
2011-12-22 22:03:35 +00:00
2012-01-16 13:23:40 +00:00
2012-01-17 22:52:54 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-12-03 05:39:26 +00:00
2012-01-16 12:28:10 +00:00
2012-02-11 04:34:44 +00:00
2012-01-13 01:23:42 +00:00
2011-12-19 19:29:10 +00:00
2011-12-15 22:37:35 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 12:28:10 +00:00
2012-02-09 08:47:19 +00:00
2012-01-13 01:23:42 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 13:23:40 +00:00
2012-01-13 01:23:42 +00:00
2012-01-17 22:52:54 +00:00
2012-02-02 18:22:25 +00:00
2012-01-16 12:28:10 +00:00
2011-10-27 15:19:27 +00:00
2011-12-12 17:24:47 +00:00
2011-12-12 17:24:47 +00:00
2011-10-25 18:35:49 +00:00
2011-10-25 18:35:49 +00:00
2011-10-25 18:35:49 +00:00
2011-12-09 22:46:44 +00:00
2011-12-10 00:38:09 +00:00
2011-12-09 22:46:44 +00:00
2011-12-10 00:38:09 +00:00
2011-10-05 05:20:07 +00:00
2012-02-12 07:10:09 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-18 21:46:27 +00:00
2012-02-13 14:23:10 +00:00
2012-02-07 09:18:22 +00:00
2012-01-17 19:54:02 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-01-16 12:28:10 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2012-02-02 08:59:26 +00:00
2012-02-01 18:53:40 +00:00
2012-02-01 18:53:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-10-06 22:42:24 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2011-11-12 05:55:22 +00:00
2012-02-09 08:47:19 +00:00
2012-02-01 18:53:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-10-05 05:20:07 +00:00
2012-02-02 19:05:06 +00:00
2012-02-02 19:05:06 +00:00
2012-02-11 04:34:44 +00:00
2012-01-16 12:28:10 +00:00
2012-02-13 22:50:19 +00:00
2012-02-13 22:50:19 +00:00
2011-10-05 05:20:07 +00:00
2012-02-11 01:02:09 +00:00
2011-12-22 21:41:26 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 12:28:10 +00:00
2011-10-06 10:14:49 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-12-23 00:14:05 +00:00
2011-11-10 01:39:06 +00:00
2012-02-15 00:44:16 +00:00
2012-02-15 00:44:16 +00:00
2012-02-02 08:59:26 +00:00
2012-02-01 18:53:40 +00:00
2012-02-01 18:53:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-10-05 05:20:07 +00:00
2012-02-11 04:34:44 +00:00
2012-01-26 02:42:08 +00:00
2012-02-13 22:50:19 +00:00
2012-01-17 22:52:54 +00:00
2012-02-03 22:25:16 +00:00
2012-02-03 22:25:16 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-02-06 19:52:02 +00:00
2011-12-08 00:03:08 +00:00
2011-11-12 05:55:22 +00:00
2012-01-31 20:05:24 +00:00
2012-02-07 16:40:38 +00:00
2012-02-06 19:52:02 +00:00
2012-02-11 04:34:44 +00:00
2012-01-16 13:23:40 +00:00
2012-02-06 19:52:02 +00:00
2012-02-14 00:58:56 +00:00
2012-02-14 00:58:56 +00:00
2011-11-02 16:58:25 +00:00
2012-02-14 15:26:01 +00:00
2011-12-21 17:26:02 +00:00
2012-02-09 14:09:03 +00:00
2012-02-09 14:09:03 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2011-12-17 00:56:02 +00:00
2012-02-02 19:05:06 +00:00
2011-10-05 05:20:07 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2011-12-16 18:41:20 +00:00
2011-12-08 00:03:08 +00:00
2012-01-10 00:32:51 +00:00
2011-12-08 00:03:08 +00:00
2012-01-17 22:52:54 +00:00
2012-01-16 12:28:10 +00:00
2012-01-10 00:32:51 +00:00
2012-01-18 21:46:27 +00:00
2012-01-17 10:29:24 +00:00
2011-10-05 05:20:07 +00:00
2012-01-17 18:29:54 +00:00
2011-10-05 05:20:07 +00:00
2012-01-31 20:05:24 +00:00
2011-10-21 20:33:29 +00:00
2011-10-06 22:42:24 +00:00
2011-10-06 22:42:24 +00:00
2011-10-21 20:33:29 +00:00
2012-02-13 22:50:19 +00:00
2012-02-13 22:50:19 +00:00
2012-01-18 22:00:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-13 01:23:42 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 12:28:10 +00:00
2012-01-16 13:23:40 +00:00
2012-01-16 13:23:40 +00:00
2011-10-05 05:20:07 +00:00
2012-02-09 08:47:19 +00:00
2012-01-16 12:28:10 +00:00
2012-01-18 21:46:27 +00:00
2012-01-16 13:23:40 +00:00
2012-02-09 08:47:19 +00:00