OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #elif USING_V8_SHARED | 43 #elif USING_V8_SHARED |
44 #define V8EXPORT __declspec(dllimport) | 44 #define V8EXPORT __declspec(dllimport) |
45 #else | 45 #else |
46 #define V8EXPORT | 46 #define V8EXPORT |
47 #endif | 47 #endif |
48 | 48 |
49 #else // _WIN32 | 49 #else // _WIN32 |
50 | 50 |
51 // Setup for Linux shared library export. See v8.h in this directory for | 51 // Setup for Linux shared library export. See v8.h in this directory for |
52 // information on how to build/use V8 as shared library. | 52 // information on how to build/use V8 as shared library. |
53 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) | 53 #if defined(__GNUC__) && ((__GNUC__ >= 4) || \ |
| 54 (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) |
54 #define V8EXPORT __attribute__ ((visibility("default"))) | 55 #define V8EXPORT __attribute__ ((visibility("default"))) |
55 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 56 #else |
56 #define V8EXPORT | 57 #define V8EXPORT |
57 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 58 #endif |
58 | 59 |
59 #endif // _WIN32 | 60 #endif // _WIN32 |
60 | 61 |
61 | 62 |
62 /** | 63 /** |
63 * Profiler support for the V8 JavaScript engine. | 64 * Profiler support for the V8 JavaScript engine. |
64 */ | 65 */ |
65 namespace v8 { | 66 namespace v8 { |
66 | 67 |
67 typedef uint32_t SnapshotObjectId; | 68 typedef uint32_t SnapshotObjectId; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 }; | 576 }; |
576 | 577 |
577 | 578 |
578 } // namespace v8 | 579 } // namespace v8 |
579 | 580 |
580 | 581 |
581 #undef V8EXPORT | 582 #undef V8EXPORT |
582 | 583 |
583 | 584 |
584 #endif // V8_V8_PROFILER_H_ | 585 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |