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

Side by Side Diff: src/d8.cc

Issue 381103002: Fix compilation with shared library. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | 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 11 matching lines...) Expand all
22 #endif // V8_SHARED 22 #endif // V8_SHARED
23 23
24 #ifndef V8_SHARED 24 #ifndef V8_SHARED
25 #include <algorithm> 25 #include <algorithm>
26 #endif // !V8_SHARED 26 #endif // !V8_SHARED
27 27
28 #ifdef V8_SHARED 28 #ifdef V8_SHARED
29 #include "include/v8-testing.h" 29 #include "include/v8-testing.h"
30 #endif // V8_SHARED 30 #endif // V8_SHARED
31 31
32 #ifdef ENABLE_GDB_JIT_INTERFACE 32 #if !defined(V8_SHARED) && defined(ENABLE_GDB_JIT_INTERFACE)
33 #include "src/gdb-jit.h" 33 #include "src/gdb-jit.h"
34 #endif 34 #endif
35 35
36 #ifdef ENABLE_VTUNE_JIT_INTERFACE 36 #ifdef ENABLE_VTUNE_JIT_INTERFACE
37 #include "src/third_party/vtune/v8-vtune.h" 37 #include "src/third_party/vtune/v8-vtune.h"
38 #endif 38 #endif
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"
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 v8::ResourceConstraints constraints; 1574 v8::ResourceConstraints constraints;
1575 constraints.ConfigureDefaults(base::OS::TotalPhysicalMemory(), 1575 constraints.ConfigureDefaults(base::OS::TotalPhysicalMemory(),
1576 base::OS::MaxVirtualMemory(), 1576 base::OS::MaxVirtualMemory(),
1577 base::OS::NumberOfProcessorsOnline()); 1577 base::OS::NumberOfProcessorsOnline());
1578 v8::SetResourceConstraints(isolate, &constraints); 1578 v8::SetResourceConstraints(isolate, &constraints);
1579 #endif 1579 #endif
1580 DumbLineEditor dumb_line_editor(isolate); 1580 DumbLineEditor dumb_line_editor(isolate);
1581 { 1581 {
1582 Isolate::Scope scope(isolate); 1582 Isolate::Scope scope(isolate);
1583 Initialize(isolate); 1583 Initialize(isolate);
1584 #ifdef ENABLE_GDB_JIT_INTERFACE 1584 #if !defined(V8_SHARED) && defined(ENABLE_GDB_JIT_INTERFACE)
1585 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, 1585 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault,
1586 i::GDBJITInterface::EventHandler); 1586 i::GDBJITInterface::EventHandler);
1587 #endif 1587 #endif
1588 #ifdef ENABLE_VTUNE_JIT_INTERFACE 1588 #ifdef ENABLE_VTUNE_JIT_INTERFACE
1589 vTune::InitializeVtuneForV8(); 1589 vTune::InitializeVtuneForV8();
1590 #endif 1590 #endif
1591 PerIsolateData data(isolate); 1591 PerIsolateData data(isolate);
1592 InitializeDebugger(isolate); 1592 InitializeDebugger(isolate);
1593 1593
1594 #ifndef V8_SHARED 1594 #ifndef V8_SHARED
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 } 1646 }
1647 1647
1648 } // namespace v8 1648 } // namespace v8
1649 1649
1650 1650
1651 #ifndef GOOGLE3 1651 #ifndef GOOGLE3
1652 int main(int argc, char* argv[]) { 1652 int main(int argc, char* argv[]) {
1653 return v8::Shell::Main(argc, argv); 1653 return v8::Shell::Main(argc, argv);
1654 } 1654 }
1655 #endif 1655 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698