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 |
11 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 11 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
12 #include <bzlib.h> | 12 #include <bzlib.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include <errno.h> | 15 #include <errno.h> |
16 #include <stdlib.h> | 16 #include <stdlib.h> |
17 #include <string.h> | 17 #include <string.h> |
18 #include <sys/stat.h> | 18 #include <sys/stat.h> |
19 | 19 |
20 #ifdef V8_SHARED | 20 #ifdef V8_SHARED |
21 #include <assert.h> | 21 #include <assert.h> |
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_VTUNE_JIT_INTERFACE | 32 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
33 #include "third_party/vtune/v8-vtune.h" | 33 #include "src/third_party/vtune/v8-vtune.h" |
34 #endif | 34 #endif |
35 | 35 |
36 #include "d8.h" | 36 #include "src/d8.h" |
37 | 37 |
38 #ifndef V8_SHARED | 38 #ifndef V8_SHARED |
39 #include "api.h" | 39 #include "src/api.h" |
40 #include "checks.h" | 40 #include "src/checks.h" |
41 #include "cpu.h" | 41 #include "src/cpu.h" |
42 #include "d8-debug.h" | 42 #include "src/d8-debug.h" |
43 #include "debug.h" | 43 #include "src/debug.h" |
44 #include "natives.h" | 44 #include "src/natives.h" |
45 #include "platform.h" | 45 #include "src/platform.h" |
46 #include "v8.h" | 46 #include "src/v8.h" |
47 #endif // !V8_SHARED | 47 #endif // !V8_SHARED |
48 | 48 |
49 #if !defined(_WIN32) && !defined(_WIN64) | 49 #if !defined(_WIN32) && !defined(_WIN64) |
50 #include <unistd.h> // NOLINT | 50 #include <unistd.h> // NOLINT |
51 #endif | 51 #endif |
52 | 52 |
53 #ifndef ASSERT | 53 #ifndef ASSERT |
54 #define ASSERT(condition) assert(condition) | 54 #define ASSERT(condition) assert(condition) |
55 #endif | 55 #endif |
56 | 56 |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 } | 1561 } |
1562 | 1562 |
1563 } // namespace v8 | 1563 } // namespace v8 |
1564 | 1564 |
1565 | 1565 |
1566 #ifndef GOOGLE3 | 1566 #ifndef GOOGLE3 |
1567 int main(int argc, char* argv[]) { | 1567 int main(int argc, char* argv[]) { |
1568 return v8::Shell::Main(argc, argv); | 1568 return v8::Shell::Main(argc, argv); |
1569 } | 1569 } |
1570 #endif | 1570 #endif |
OLD | NEW |