Sha256: 928a5d0e13905457ce7c933e92143a59cf73b68159c9288d95888c276018f700

Contents?: true

Size: 1.01 KB

Versions: 53

Compression:

Stored size: 1.01 KB

Contents

// 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"

/**
 * 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_

Version data entries

53 entries across 17 versions & 2 rubygems

Version Path
virgil-crypto-2.1.2.2 ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h
virgil-crypto-2.1.2.2 ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h
virgil-crypto-2.1.2.2 ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h
virgil-crypto-2.1.2.2 ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h
virgil-crypto-2.1.2.1 ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h
virgil-crypto-2.1.2.1 ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h
virgil-crypto-2.1.2.1 ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h
virgil-crypto-2.1.2.1 ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h
virgil-crypto-2.1.2 ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h
virgil-crypto-2.1.2 ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h
virgil-crypto-2.1.2 ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h
virgil-crypto-2.1.2 ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h
virgil-crypto-2.1.0 ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h
virgil-crypto-2.1.0 ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h
virgil-crypto-2.1.0 ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h
virgil-crypto-2.1.0 ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h
virgil-crypto-2.0.7 ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h
virgil-crypto-2.0.7 ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h
virgil-crypto-2.0.7 ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h
virgil-crypto-2.0.7 ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h