| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #define V8EXPORT __declspec(dllexport) | 56 #define V8EXPORT __declspec(dllexport) |
| 57 #elif USING_V8_SHARED | 57 #elif USING_V8_SHARED |
| 58 #define V8EXPORT __declspec(dllimport) | 58 #define V8EXPORT __declspec(dllimport) |
| 59 #else | 59 #else |
| 60 #define V8EXPORT | 60 #define V8EXPORT |
| 61 #endif // BUILDING_V8_SHARED | 61 #endif // BUILDING_V8_SHARED |
| 62 | 62 |
| 63 #else // _WIN32 | 63 #else // _WIN32 |
| 64 | 64 |
| 65 // Setup for Linux shared library export. | 65 // Setup for Linux shared library export. |
| 66 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) | 66 #if defined(__GNUC__) && ((__GNUC__ >= 4) || \ |
| 67 (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) |
| 67 #ifdef BUILDING_V8_SHARED | 68 #ifdef BUILDING_V8_SHARED |
| 68 #define V8EXPORT __attribute__ ((visibility("default"))) | 69 #define V8EXPORT __attribute__ ((visibility("default"))) |
| 69 #else | 70 #else |
| 70 #define V8EXPORT | 71 #define V8EXPORT |
| 71 #endif | 72 #endif |
| 72 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 73 #else |
| 73 #define V8EXPORT | 74 #define V8EXPORT |
| 74 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 75 #endif |
| 75 | 76 |
| 76 #endif // _WIN32 | 77 #endif // _WIN32 |
| 77 | 78 |
| 78 /** | 79 /** |
| 79 * The v8 JavaScript engine. | 80 * The v8 JavaScript engine. |
| 80 */ | 81 */ |
| 81 namespace v8 { | 82 namespace v8 { |
| 82 | 83 |
| 83 class Context; | 84 class Context; |
| 84 class String; | 85 class String; |
| (...skipping 4450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4535 | 4536 |
| 4536 | 4537 |
| 4537 } // namespace v8 | 4538 } // namespace v8 |
| 4538 | 4539 |
| 4539 | 4540 |
| 4540 #undef V8EXPORT | 4541 #undef V8EXPORT |
| 4541 #undef TYPE_CHECK | 4542 #undef TYPE_CHECK |
| 4542 | 4543 |
| 4543 | 4544 |
| 4544 #endif // V8_H_ | 4545 #endif // V8_H_ |
| OLD | NEW |