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

Side by Side Diff: src/d8.cc

Issue 655183002: Update intialization of vtune support. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | src/third_party/vtune/v8-vtune.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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); 1679 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
1680 } 1680 }
1681 int result = 0; 1681 int result = 0;
1682 Isolate::CreateParams create_params; 1682 Isolate::CreateParams create_params;
1683 #if !defined(V8_SHARED) && defined(ENABLE_GDB_JIT_INTERFACE) 1683 #if !defined(V8_SHARED) && defined(ENABLE_GDB_JIT_INTERFACE)
1684 if (i::FLAG_gdbjit) { 1684 if (i::FLAG_gdbjit) {
1685 create_params.code_event_handler = i::GDBJITInterface::EventHandler; 1685 create_params.code_event_handler = i::GDBJITInterface::EventHandler;
1686 } 1686 }
1687 #endif 1687 #endif
1688 #ifdef ENABLE_VTUNE_JIT_INTERFACE 1688 #ifdef ENABLE_VTUNE_JIT_INTERFACE
1689 vTune::InitializeVtuneForV8(create_params); 1689 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler();
1690 #endif 1690 #endif
1691 #ifndef V8_SHARED 1691 #ifndef V8_SHARED
1692 create_params.constraints.ConfigureDefaults( 1692 create_params.constraints.ConfigureDefaults(
1693 base::SysInfo::AmountOfPhysicalMemory(), 1693 base::SysInfo::AmountOfPhysicalMemory(),
1694 base::SysInfo::AmountOfVirtualMemory(), 1694 base::SysInfo::AmountOfVirtualMemory(),
1695 base::SysInfo::NumberOfProcessors()); 1695 base::SysInfo::NumberOfProcessors());
1696 #endif 1696 #endif
1697 Isolate* isolate = Isolate::New(create_params); 1697 Isolate* isolate = Isolate::New(create_params);
1698 DumbLineEditor dumb_line_editor(isolate); 1698 DumbLineEditor dumb_line_editor(isolate);
1699 { 1699 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 } 1765 }
1766 1766
1767 } // namespace v8 1767 } // namespace v8
1768 1768
1769 1769
1770 #ifndef GOOGLE3 1770 #ifndef GOOGLE3
1771 int main(int argc, char* argv[]) { 1771 int main(int argc, char* argv[]) {
1772 return v8::Shell::Main(argc, argv); 1772 return v8::Shell::Main(argc, argv);
1773 } 1773 }
1774 #endif 1774 #endif
OLDNEW
« no previous file with comments | « no previous file | src/third_party/vtune/v8-vtune.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698