| Index: src/api.h
|
| diff --git a/src/api.h b/src/api.h
|
| index 869267dce73f50ba676b301629e7ec319311dcbe..6d46713eff10a511e000735c625995192953c54e 100644
|
| --- a/src/api.h
|
| +++ b/src/api.h
|
| @@ -31,6 +31,8 @@
|
| #include "apiutils.h"
|
| #include "factory.h"
|
|
|
| +#include "../include/v8-testing.h"
|
| +
|
| namespace v8 {
|
|
|
| // Constants used in the implementation of the API. The most natural thing
|
| @@ -553,6 +555,18 @@ void HandleScopeImplementer::DeleteExtensions(internal::Object** prev_limit) {
|
| (!blocks_.is_empty() && prev_limit != NULL));
|
| }
|
|
|
| +
|
| +class Testing {
|
| + public:
|
| + static v8::Testing::StressType stress_type() { return stress_type_; }
|
| + static void set_stress_type(v8::Testing::StressType stress_type) {
|
| + stress_type_ = stress_type;
|
| + }
|
| +
|
| + private:
|
| + static v8::Testing::StressType stress_type_;
|
| +};
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_API_H_
|
|
|