v8.h   v8.h 
skipping to change at line 46 skipping to change at line 46
*/ */
#ifndef V8_H_ #ifndef V8_H_
#define V8_H_ #define V8_H_
#include "v8stdint.h" #include "v8stdint.h"
// We reserve the V8_* prefix for macros defined in V8 public API and // We reserve the V8_* prefix for macros defined in V8 public API and
// assume there are no name conflicts with the embedder's code. // assume there are no name conflicts with the embedder's code.
#ifdef _WIN32 #ifdef V8_OS_WIN
// Setup for Windows DLL export/import. When building the V8 DLL the // Setup for Windows DLL export/import. When building the V8 DLL the
// BUILDING_V8_SHARED needs to be defined. When building a program which us es // BUILDING_V8_SHARED needs to be defined. When building a program which us es
// the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
// static library or building a program which uses the V8 static library ne ither // static library or building a program which uses the V8 static library ne ither
// BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
#if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED) #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
#error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check t he\ #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check t he\
build configuration to ensure that at most one of these is set build configuration to ensure that at most one of these is set
#endif #endif
#ifdef BUILDING_V8_SHARED #ifdef BUILDING_V8_SHARED
#define V8_EXPORT __declspec(dllexport) # define V8_EXPORT __declspec(dllexport)
#elif USING_V8_SHARED #elif USING_V8_SHARED
#define V8_EXPORT __declspec(dllimport) # define V8_EXPORT __declspec(dllimport)
#else #else
#define V8_EXPORT # define V8_EXPORT
#endif // BUILDING_V8_SHARED #endif // BUILDING_V8_SHARED
#else // _WIN32 #else // V8_OS_WIN
// Setup for Linux shared library export. // Setup for Linux shared library export.
#if defined(__GNUC__) && ((__GNUC__ >= 4) || \ #if V8_HAS_ATTRIBUTE_VISIBILITY && defined(V8_SHARED)
(__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) # ifdef BUILDING_V8_SHARED
#ifdef BUILDING_V8_SHARED # define V8_EXPORT __attribute__ ((visibility("default")))
#define V8_EXPORT __attribute__ ((visibility("default"))) # else
#else # define V8_EXPORT
#define V8_EXPORT # endif
#endif
#else
#define V8_EXPORT
#endif
#endif // _WIN32
#if defined(__GNUC__) && !defined(DEBUG)
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declara
tor
#elif defined(_MSC_VER) && !defined(DEBUG)
#define V8_INLINE(declarator) __forceinline declarator
#else
#define V8_INLINE(declarator) inline declarator
#endif
#if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
#elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS
#define V8_DEPRECATED(declarator) __declspec(deprecated) declarator
#else #else
#define V8_DEPRECATED(declarator) declarator # define V8_EXPORT
#endif #endif
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) #endif // V8_OS_WIN
#define V8_UNLIKELY(condition) __builtin_expect((condition), 0)
#define V8_LIKELY(condition) __builtin_expect((condition), 1)
#else
#define V8_UNLIKELY(condition) (condition)
#define V8_LIKELY(condition) (condition)
#endif
/** /**
* The v8 JavaScript engine. * The v8 JavaScript engine.
*/ */
namespace v8 { namespace v8 {
class AccessorInfo; class AccessorInfo;
class AccessorSignature; class AccessorSignature;
class Array; class Array;
class Boolean; class Boolean;
 End of changes. 8 change blocks. 
39 lines changed or deleted 13 lines changed or added


 v8stdint.h   v8stdint.h 
skipping to change at line 36 skipping to change at line 36
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Load definitions of standard types. // Load definitions of standard types.
#ifndef V8STDINT_H_ #ifndef V8STDINT_H_
#define V8STDINT_H_ #define V8STDINT_H_
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#if defined(_WIN32) && !defined(__MINGW32__) #include "v8config.h"
#if V8_OS_WIN && !V8_CC_MINGW
typedef signed char int8_t; typedef signed char int8_t;
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
typedef short int16_t; // NOLINT typedef short int16_t; // NOLINT
typedef unsigned short uint16_t; // NOLINT typedef unsigned short uint16_t; // NOLINT
typedef int int32_t; typedef int int32_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
typedef __int64 int64_t; typedef __int64 int64_t;
typedef unsigned __int64 uint64_t; typedef unsigned __int64 uint64_t;
// intptr_t and friends are defined in crtdefs.h through stdio.h. // intptr_t and friends are defined in crtdefs.h through stdio.h.
#else #else
#include <stdint.h> #include <stdint.h> // NOLINT
#endif #endif
#endif // V8STDINT_H_ #endif // V8STDINT_H_
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/