| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |