1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
11 * Testing support for the V8 JavaScript engine.
15 class V8_EXPORT Testing {
23 * Set the type of stressing to do. The default if not set is kStressTypeOpt.
25 static void SetStressRunType(StressType type);
28 * Get the number of runs of a given test that is required to get the full
31 static int GetStressRuns();
34 * Indicate the number of the run which is about to start. The value of run
35 * should be between 0 and one less than the result from GetStressRuns()
37 static void PrepareStressRun(int run);
40 * Force deoptimization of all functions.
42 static void DeoptimizeAll();
48 #endif // V8_V8_TEST_H_