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

Side by Side Diff: src/d8.cc

Issue 593563005: [turbofan] basic block profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/schedule.h ('k') | src/flag-definitions.h » ('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 28 matching lines...) Expand all
39 39
40 #include "src/d8.h" 40 #include "src/d8.h"
41 41
42 #include "include/libplatform/libplatform.h" 42 #include "include/libplatform/libplatform.h"
43 #ifndef V8_SHARED 43 #ifndef V8_SHARED
44 #include "src/api.h" 44 #include "src/api.h"
45 #include "src/base/cpu.h" 45 #include "src/base/cpu.h"
46 #include "src/base/logging.h" 46 #include "src/base/logging.h"
47 #include "src/base/platform/platform.h" 47 #include "src/base/platform/platform.h"
48 #include "src/base/sys-info.h" 48 #include "src/base/sys-info.h"
49 #include "src/basic-block-profiler.h"
49 #include "src/d8-debug.h" 50 #include "src/d8-debug.h"
50 #include "src/debug.h" 51 #include "src/debug.h"
51 #include "src/natives.h" 52 #include "src/natives.h"
52 #include "src/v8.h" 53 #include "src/v8.h"
53 #endif // !V8_SHARED 54 #endif // !V8_SHARED
54 55
55 #if !defined(_WIN32) && !defined(_WIN64) 56 #if !defined(_WIN32) && !defined(_WIN64)
56 #include <unistd.h> // NOLINT 57 #include <unistd.h> // NOLINT
57 #else 58 #else
58 #include <windows.h> // NOLINT 59 #include <windows.h> // NOLINT
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 // executed, but never on --test 1694 // executed, but never on --test
1694 if (options.use_interactive_shell()) { 1695 if (options.use_interactive_shell()) {
1695 #ifndef V8_SHARED 1696 #ifndef V8_SHARED
1696 if (!i::FLAG_debugger) { 1697 if (!i::FLAG_debugger) {
1697 InstallUtilityScript(isolate); 1698 InstallUtilityScript(isolate);
1698 } 1699 }
1699 #endif // !V8_SHARED 1700 #endif // !V8_SHARED
1700 RunShell(isolate); 1701 RunShell(isolate);
1701 } 1702 }
1702 } 1703 }
1704 #ifndef V8_SHARED
1705 // Dump basic block profiling data.
1706 if (i::BasicBlockProfiler* profiler =
1707 reinterpret_cast<i::Isolate*>(isolate)->basic_block_profiler()) {
1708 i::OFStream os(stdout);
1709 os << *profiler;
1710 }
1711 #endif // !V8_SHARED
1703 isolate->Dispose(); 1712 isolate->Dispose();
1704 V8::Dispose(); 1713 V8::Dispose();
1705 V8::ShutdownPlatform(); 1714 V8::ShutdownPlatform();
1706 delete platform; 1715 delete platform;
1707 1716
1708 OnExit(); 1717 OnExit();
1709 1718
1710 return result; 1719 return result;
1711 } 1720 }
1712 1721
1713 } // namespace v8 1722 } // namespace v8
1714 1723
1715 1724
1716 #ifndef GOOGLE3 1725 #ifndef GOOGLE3
1717 int main(int argc, char* argv[]) { 1726 int main(int argc, char* argv[]) {
1718 return v8::Shell::Main(argc, argv); 1727 return v8::Shell::Main(argc, argv);
1719 } 1728 }
1720 #endif 1729 #endif
OLDNEW
« no previous file with comments | « src/compiler/schedule.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698