#include <stdlib.h>
#include "include/v8-function.h"
#include "src/api/api-inl.h"
#include "src/base/platform/platform.h"
#include "src/base/strings.h"
#include "src/codegen/compilation-cache.h"
#include "src/debug/debug.h"
#include "src/deoptimizer/deoptimizer.h"
#include "src/execution/isolate.h"
#include "src/init/v8.h"
#include "src/objects/objects-inl.h"
#include "test/unittests/heap/heap-utils.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
EmbeddedVector;
OS;
class DeoptimizationTest : public TestWithContext { … };
#define SMALL_STRING_BUFFER_SIZE …
class AlwaysOptimizeAllowNativesSyntaxNoInlining { … };
class AllowNativesSyntaxNoInlining { … };
namespace {
void CheckJsInt32(int expected, const char* variable_name,
v8::Local<v8::Context> context) { … }
}
TEST_F(DeoptimizationTest, DeoptimizeSimple) { … }
TEST_F(DeoptimizationTest, DeoptimizeSimpleWithArguments) { … }
TEST_F(DeoptimizationTest, DeoptimizeSimpleNested) { … }
TEST_F(DeoptimizationTest, DeoptimizeRecursive) { … }
TEST_F(DeoptimizationTest, DeoptimizeMultiple) { … }
TEST_F(DeoptimizationTest, DeoptimizeConstructor) { … }
TEST_F(DeoptimizationTest, DeoptimizeConstructorMultiple) { … }
class DeoptimizationDisableConcurrentRecompilationTest
: public DeoptimizationTest { … };
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationADDString) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationADD) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationSUB) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationMUL) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationDIV) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeBinaryOperationMOD) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest, DeoptimizeCompare) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeLoadICStoreIC) { … }
TEST_F(DeoptimizationDisableConcurrentRecompilationTest,
DeoptimizeLoadICStoreICNested) { … }
}
}