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

Side by Side Diff: src/d8.cc

Issue 1828633003: [Interpreter] Enable tracing of bytecode handler dispatches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@count-bc
Patch Set: Second review. Created 4 years, 8 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/assembler.cc ('k') | src/external-reference-table.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 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
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
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
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
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/external-reference-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698