mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 19:31:09 +00:00

Pick up the latest branch head for V8 4.7:
be169f8df0
Full change history for the 4.7 branch:
https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/4.7
V8 blog post about what is new on V8 4.7:
http://v8project.blogspot.de/2015/10/v8-release-47.html
PR-URL: https://github.com/nodejs/node/pull/4106
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org>
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
// Copyright 2010 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef V8_V8_TEST_H_
|
|
#define V8_V8_TEST_H_
|
|
|
|
#include "v8.h" // NOLINT(build/include)
|
|
|
|
/**
|
|
* Testing support for the V8 JavaScript engine.
|
|
*/
|
|
namespace v8 {
|
|
|
|
class V8_EXPORT 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
|
|
|
|
#endif // V8_V8_TEST_H_
|