Chromium Code Reviews| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 #ifdef BUILDING_V8_SHARED | 55 #ifdef BUILDING_V8_SHARED |
| 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. There is no need to distinguish | 65 // Setup for Linux shared library export. There is no need to distinguish |
|
Mads Ager (chromium)
2012/05/16 07:55:36
Please update the comment as well. :)
Nico
2012/05/16 16:16:04
Done.
| |
| 66 // between building or using the V8 shared library, but we should not | 66 // between building or using the V8 shared library, but we should not |
| 67 // export symbols when we are building a static library. | 67 // export symbols when we are building a static library. |
| 68 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) | 68 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
| 69 #ifdef BUILDING_V8_SHARED | |
| 69 #define V8EXPORT __attribute__ ((visibility("default"))) | 70 #define V8EXPORT __attribute__ ((visibility("default"))) |
| 71 #else | |
| 72 #define V8EXPORT | |
| 73 #endif | |
| 70 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 74 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
| 71 #define V8EXPORT | 75 #define V8EXPORT |
| 72 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 76 #endif // defined(__GNUC__) && (__GNUC__ >= 4) |
| 73 | 77 |
| 74 #endif // _WIN32 | 78 #endif // _WIN32 |
| 75 | 79 |
| 76 /** | 80 /** |
| 77 * The v8 JavaScript engine. | 81 * The v8 JavaScript engine. |
| 78 */ | 82 */ |
| 79 namespace v8 { | 83 namespace v8 { |
| (...skipping 4392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4472 | 4476 |
| 4473 | 4477 |
| 4474 } // namespace v8 | 4478 } // namespace v8 |
| 4475 | 4479 |
| 4476 | 4480 |
| 4477 #undef V8EXPORT | 4481 #undef V8EXPORT |
| 4478 #undef TYPE_CHECK | 4482 #undef TYPE_CHECK |
| 4479 | 4483 |
| 4480 | 4484 |
| 4481 #endif // V8_H_ | 4485 #endif // V8_H_ |
| OLD | NEW |