Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: include/v8-testing.h

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8-profiler.h ('k') | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_V8_TEST_H_ 28 #ifndef V8_V8_TEST_H_
29 #define V8_V8_TEST_H_ 29 #define V8_V8_TEST_H_
30 30
31 #include "v8.h" 31 #include "v8.h"
32 32
33 #ifdef _WIN32
34 // Setup for Windows DLL export/import. See v8.h in this directory for
35 // information on how to build/use V8 as a DLL.
36 #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
37 #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the\
38 build configuration to ensure that at most one of these is set
39 #endif
40
41 #ifdef BUILDING_V8_SHARED
42 #define V8EXPORT __declspec(dllexport)
43 #elif USING_V8_SHARED
44 #define V8EXPORT __declspec(dllimport)
45 #else
46 #define V8EXPORT
47 #endif
48
49 #else // _WIN32
50
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.
53 #if defined(__GNUC__) && ((__GNUC__ >= 4) || \
54 (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED)
55 #define V8EXPORT __attribute__ ((visibility("default")))
56 #else
57 #define V8EXPORT
58 #endif
59
60 #endif // _WIN32
61
62
33 /** 63 /**
34 * Testing support for the V8 JavaScript engine. 64 * Testing support for the V8 JavaScript engine.
35 */ 65 */
36 namespace v8 { 66 namespace v8 {
37 67
38 class V8_EXPORT Testing { 68 class V8EXPORT Testing {
39 public: 69 public:
40 enum StressType { 70 enum StressType {
41 kStressTypeOpt, 71 kStressTypeOpt,
42 kStressTypeDeopt 72 kStressTypeDeopt
43 }; 73 };
44 74
45 /** 75 /**
46 * Set the type of stressing to do. The default if not set is kStressTypeOpt. 76 * Set the type of stressing to do. The default if not set is kStressTypeOpt.
47 */ 77 */
48 static void SetStressRunType(StressType type); 78 static void SetStressRunType(StressType type);
(...skipping 13 matching lines...) Expand all
62 /** 92 /**
63 * Force deoptimization of all functions. 93 * Force deoptimization of all functions.
64 */ 94 */
65 static void DeoptimizeAll(); 95 static void DeoptimizeAll();
66 }; 96 };
67 97
68 98
69 } // namespace v8 99 } // namespace v8
70 100
71 101
72 #undef V8_EXPORT 102 #undef V8EXPORT
73 103
74 104
75 #endif // V8_V8_TEST_H_ 105 #endif // V8_V8_TEST_H_
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698