OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 // Defined when linking against shared lib on Windows. | 6 // Defined when linking against shared lib on Windows. |
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |
8 #define V8_SHARED | 8 #define V8_SHARED |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "src/ostreams.h" | 34 #include "src/ostreams.h" |
35 | 35 |
36 #include "include/libplatform/libplatform.h" | 36 #include "include/libplatform/libplatform.h" |
37 #ifndef V8_SHARED | 37 #ifndef V8_SHARED |
38 #include "src/api.h" | 38 #include "src/api.h" |
39 #include "src/base/cpu.h" | 39 #include "src/base/cpu.h" |
40 #include "src/base/logging.h" | 40 #include "src/base/logging.h" |
41 #include "src/base/platform/platform.h" | 41 #include "src/base/platform/platform.h" |
42 #include "src/base/sys-info.h" | 42 #include "src/base/sys-info.h" |
43 #include "src/basic-block-profiler.h" | 43 #include "src/basic-block-profiler.h" |
| 44 #include "src/interpreter/interpreter.h" |
44 #include "src/snapshot/natives.h" | 45 #include "src/snapshot/natives.h" |
45 #include "src/utils.h" | 46 #include "src/utils.h" |
46 #include "src/v8.h" | 47 #include "src/v8.h" |
47 #endif // !V8_SHARED | 48 #endif // !V8_SHARED |
48 | 49 |
49 #if !defined(_WIN32) && !defined(_WIN64) | 50 #if !defined(_WIN32) && !defined(_WIN64) |
50 #include <unistd.h> // NOLINT | 51 #include <unistd.h> // NOLINT |
51 #else | 52 #else |
52 #include <windows.h> // NOLINT | 53 #include <windows.h> // NOLINT |
53 #if defined(_MSC_VER) | 54 #if defined(_MSC_VER) |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 printf("| c:%-60s | %11i |\n", key, counter->count()); | 1306 printf("| c:%-60s | %11i |\n", key, counter->count()); |
1306 printf("| t:%-60s | %11i |\n", key, counter->sample_total()); | 1307 printf("| t:%-60s | %11i |\n", key, counter->sample_total()); |
1307 } else { | 1308 } else { |
1308 printf("| %-62s | %11i |\n", key, counter->count()); | 1309 printf("| %-62s | %11i |\n", key, counter->count()); |
1309 } | 1310 } |
1310 } | 1311 } |
1311 printf("+----------------------------------------------------------------+" | 1312 printf("+----------------------------------------------------------------+" |
1312 "-------------+\n"); | 1313 "-------------+\n"); |
1313 delete [] counters; | 1314 delete [] counters; |
1314 } | 1315 } |
| 1316 |
| 1317 if (i::FLAG_trace_ignition_dispatches) { |
| 1318 reinterpret_cast<i::Isolate*>(isolate) |
| 1319 ->interpreter() |
| 1320 ->WriteDispatchCounters(); |
| 1321 } |
| 1322 |
1315 delete counters_file_; | 1323 delete counters_file_; |
1316 delete counter_map_; | 1324 delete counter_map_; |
1317 #endif // !V8_SHARED | 1325 #endif // !V8_SHARED |
1318 } | 1326 } |
1319 | 1327 |
1320 | 1328 |
1321 | 1329 |
1322 static FILE* FOpen(const char* path, const char* mode) { | 1330 static FILE* FOpen(const char* path, const char* mode) { |
1323 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) | 1331 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) |
1324 FILE* result; | 1332 FILE* result; |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2498 } | 2506 } |
2499 | 2507 |
2500 } // namespace v8 | 2508 } // namespace v8 |
2501 | 2509 |
2502 | 2510 |
2503 #ifndef GOOGLE3 | 2511 #ifndef GOOGLE3 |
2504 int main(int argc, char* argv[]) { | 2512 int main(int argc, char* argv[]) { |
2505 return v8::Shell::Main(argc, argv); | 2513 return v8::Shell::Main(argc, argv); |
2506 } | 2514 } |
2507 #endif | 2515 #endif |
OLD | NEW |