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

Side by Side Diff: src/mksnapshot.cc

Issue 1935: New static flags system (Closed)
Patch Set: Merge, again. Created 12 years, 3 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
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20 matching lines...) Expand all
31 #include <string> 31 #include <string>
32 #include <map> 32 #include <map>
33 33
34 #include "v8.h" 34 #include "v8.h"
35 35
36 #include "bootstrapper.h" 36 #include "bootstrapper.h"
37 #include "natives.h" 37 #include "natives.h"
38 #include "platform.h" 38 #include "platform.h"
39 #include "serialize.h" 39 #include "serialize.h"
40 40
41 DEFINE_bool(h, false, "print this message");
42
43 namespace v8 { namespace internal {
44 #ifdef ENABLE_LOGGING_AND_PROFILING
45 DECLARE_bool(log_code);
46 #endif
47 } }
48
49 // use explicit namespace to avoid clashing with types in namespace v8 41 // use explicit namespace to avoid clashing with types in namespace v8
50 namespace i = v8::internal; 42 namespace i = v8::internal;
51 using namespace v8; 43 using namespace v8;
52 44
53 static const unsigned int kMaxCounters = 256; 45 static const unsigned int kMaxCounters = 256;
54 46
55 // A single counter in a counter collection. 47 // A single counter in a counter collection.
56 class Counter { 48 class Counter {
57 public: 49 public:
58 static const int kMaxNameSize = 64; 50 static const int kMaxNameSize = 64;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 char* str; 181 char* str;
190 int len; 182 int len;
191 ser.Finalize(&str, &len); 183 ser.Finalize(&str, &len);
192 184
193 WriteInternalSnapshotToFile(argv[1], str, len); 185 WriteInternalSnapshotToFile(argv[1], str, len);
194 186
195 i::DeleteArray(str); 187 i::DeleteArray(str);
196 188
197 return 0; 189 return 0;
198 } 190 }
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698