| Index: include/v8-export.h
|
| diff --git a/include/v8-testing.h b/include/v8-export.h
|
| similarity index 64%
|
| copy from include/v8-testing.h
|
| copy to include/v8-export.h
|
| index 59eebf9db47774b5a83b208f91badcf282b80f90..955a8474ad23150c5a3e83b92be5b7dc901e91e0 100644
|
| --- a/include/v8-testing.h
|
| +++ b/include/v8-export.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2013 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,14 +25,16 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_V8_TEST_H_
|
| -#define V8_V8_TEST_H_
|
| -
|
| -#include "v8.h"
|
| +#ifndef V8_EXPORT_H_
|
| +#define V8_EXPORT_H_
|
|
|
| #ifdef _WIN32
|
| -// Setup for Windows DLL export/import. See v8.h in this directory for
|
| -// information on how to build/use V8 as a DLL.
|
| +
|
| +// Setup for Windows DLL export/import. When building the V8 DLL the
|
| +// BUILDING_V8_SHARED needs to be defined. When building a program which uses
|
| +// 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 neither
|
| +// BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
|
| #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
|
| #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the\
|
| build configuration to ensure that at most one of these is set
|
| @@ -44,62 +46,22 @@
|
| #define V8EXPORT __declspec(dllimport)
|
| #else
|
| #define V8EXPORT
|
| -#endif
|
| +#endif // BUILDING_V8_SHARED
|
|
|
| #else // _WIN32
|
|
|
| -// Setup for Linux shared library export. See v8.h in this directory for
|
| -// information on how to build/use V8 as shared library.
|
| +// Setup for Linux shared library export.
|
| #if defined(__GNUC__) && ((__GNUC__ >= 4) || \
|
| (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED)
|
| +#ifdef BUILDING_V8_SHARED
|
| #define V8EXPORT __attribute__ ((visibility("default")))
|
| #else
|
| #define V8EXPORT
|
| #endif
|
| +#else
|
| +#define V8EXPORT
|
| +#endif
|
|
|
| #endif // _WIN32
|
|
|
| -
|
| -/**
|
| - * Testing support for the V8 JavaScript engine.
|
| - */
|
| -namespace v8 {
|
| -
|
| -class V8EXPORT Testing {
|
| - public:
|
| - enum StressType {
|
| - kStressTypeOpt,
|
| - kStressTypeDeopt
|
| - };
|
| -
|
| - /**
|
| - * Set the type of stressing to do. The default if not set is kStressTypeOpt.
|
| - */
|
| - static void SetStressRunType(StressType type);
|
| -
|
| - /**
|
| - * Get the number of runs of a given test that is required to get the full
|
| - * stress coverage.
|
| - */
|
| - static int GetStressRuns();
|
| -
|
| - /**
|
| - * Indicate the number of the run which is about to start. The value of run
|
| - * should be between 0 and one less than the result from GetStressRuns()
|
| - */
|
| - static void PrepareStressRun(int run);
|
| -
|
| - /**
|
| - * Force deoptimization of all functions.
|
| - */
|
| - static void DeoptimizeAll();
|
| -};
|
| -
|
| -
|
| -} // namespace v8
|
| -
|
| -
|
| -#undef V8EXPORT
|
| -
|
| -
|
| -#endif // V8_V8_TEST_H_
|
| +#endif // V8_EXPORT_H_
|
|
|