#include "include/v8-function.h"
#include "include/v8-regexp.h"
#include "src/api/api-inl.h"
#include "src/execution/frames-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-utils.h"
usingnamespacev8;
namespace {
const char kOneByteSubjectString[] = …;
const uint16_t kTwoByteSubjectString[] = …;
const int kSubjectStringLength = …;
static_assert …;
class OneByteVectorResource : public String::ExternalOneByteStringResource { … };
class UC16VectorResource : public String::ExternalStringResource { … };
OneByteVectorResource one_byte_string_resource(
base::Vector<const char>(&kOneByteSubjectString[0], kSubjectStringLength));
UC16VectorResource two_byte_string_resource(base::Vector<const base::uc16>(
&kTwoByteSubjectString[0], kSubjectStringLength));
class InterruptTest { … };
void SetCommonV8FlagsForInterruptTests() { … }
}
TEST(InterruptAndInvokeMajorGC) { … }
TEST(InterruptAndMakeSubjectOneByteExternal) { … }
TEST(InterruptAndMakeSubjectTwoByteExternal) { … }
TEST(InterruptAndIterateStack) { … }
TEST(InterruptAndTransitionSubjectFromTwoByteToOneByte) { … }