| Index: runtime/vm/unit_test.h
|
| diff --git a/runtime/vm/unit_test.h b/runtime/vm/unit_test.h
|
| index bb275c231e0227c24dbdbeb23a1280c78f42d9f4..ab2d1fecc1b975f36654c88484675da14302ad5d 100644
|
| --- a/runtime/vm/unit_test.h
|
| +++ b/runtime/vm/unit_test.h
|
| @@ -104,7 +104,6 @@
|
| static void CodeGenTestGenerate##name(const Function& function, \
|
| CodeGenTest* test)
|
|
|
| -
|
| // Pass the name of test and the expected results as RawObject.
|
| #define CODEGEN_TEST_RUN(name, expected) \
|
| static void CodeGenTestRun##name(const Function& function); \
|
| @@ -123,7 +122,6 @@
|
| EXPECT(actual.CanonicalizeEquals(Instance::Handle(expected))); \
|
| }
|
|
|
| -
|
| // Pass the name of test, and use the generated function to call it
|
| // and evaluate its result.
|
| #define CODEGEN_TEST_RAW_RUN(name, function) \
|
| @@ -136,7 +134,6 @@
|
| } \
|
| static void CodeGenTestRun##name(const Function& function)
|
|
|
| -
|
| // Generate code for two sequences of AST nodes and execute the first one.
|
| // The first one may reference the Function object generated by the second one.
|
| #define CODEGEN_TEST2_RUN(name1, name2, expected) \
|
| @@ -161,7 +158,6 @@
|
| EXPECT(actual.CanonicalizeEquals(Instance::Handle(expected))); \
|
| }
|
|
|
| -
|
| #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_ARM64)
|
| #if defined(HOST_ARCH_ARM) || defined(HOST_ARCH_ARM64)
|
| // Running on actual ARM hardware, execute code natively.
|
| @@ -233,12 +229,10 @@
|
| #endif // defined(HOST_ARCH_ARM)
|
| #endif // defined(TARGET_ARCH_{ARM, ARM64})
|
|
|
| -
|
| inline Dart_Handle NewString(const char* str) {
|
| return Dart_NewStringFromCString(str);
|
| }
|
|
|
| -
|
| namespace dart {
|
|
|
| // Forward declarations.
|
| @@ -246,15 +240,13 @@ class Assembler;
|
| class CodeGenerator;
|
| class VirtualMemory;
|
|
|
| -
|
| namespace bin {
|
| // Snapshot pieces if we link in a snapshot, otherwise initialized to NULL.
|
| extern const uint8_t* vm_snapshot_data;
|
| extern const uint8_t* vm_snapshot_instructions;
|
| extern const uint8_t* core_isolate_snapshot_data;
|
| extern const uint8_t* core_isolate_snapshot_instructions;
|
| -}
|
| -
|
| +} // namespace bin
|
|
|
| class TestCaseBase {
|
| public:
|
| @@ -332,7 +324,6 @@ class TestCase : TestCaseBase {
|
| RunEntry* const run_;
|
| };
|
|
|
| -
|
| class RawTestCase : TestCaseBase {
|
| public:
|
| typedef void(RunEntry)();
|
| @@ -346,7 +337,6 @@ class RawTestCase : TestCaseBase {
|
| RunEntry* const run_;
|
| };
|
|
|
| -
|
| class TestIsolateScope {
|
| public:
|
| TestIsolateScope() {
|
| @@ -367,31 +357,26 @@ class TestIsolateScope {
|
| DISALLOW_COPY_AND_ASSIGN(TestIsolateScope);
|
| };
|
|
|
| -
|
| template <typename T>
|
| struct is_void {
|
| static const bool value = false;
|
| };
|
|
|
| -
|
| template <>
|
| struct is_void<void> {
|
| static const bool value = true;
|
| };
|
|
|
| -
|
| template <typename T>
|
| struct is_double {
|
| static const bool value = false;
|
| };
|
|
|
| -
|
| template <>
|
| struct is_double<double> {
|
| static const bool value = true;
|
| };
|
|
|
| -
|
| class AssemblerTest {
|
| public:
|
| AssemblerTest(const char* name, Assembler* assembler)
|
| @@ -524,7 +509,6 @@ class AssemblerTest {
|
| DISALLOW_COPY_AND_ASSIGN(AssemblerTest);
|
| };
|
|
|
| -
|
| class CodeGenTest {
|
| public:
|
| explicit CodeGenTest(const char* name);
|
| @@ -550,7 +534,6 @@ class CodeGenTest {
|
| DISALLOW_COPY_AND_ASSIGN(CodeGenTest);
|
| };
|
|
|
| -
|
| class CompilerTest : public AllStatic {
|
| public:
|
| // Test the Compiler::CompileScript functionality by checking the return
|
| @@ -613,7 +596,6 @@ class CompilerTest : public AllStatic {
|
| } \
|
| } while (0)
|
|
|
| -
|
| // Elide a substring which starts with some prefix and ends with a ".
|
| //
|
| // This is used to remove non-deterministic or fragile substrings from
|
| @@ -630,7 +612,6 @@ class CompilerTest : public AllStatic {
|
| //
|
| void ElideJSONSubstring(const char* prefix, const char* in, char* out);
|
|
|
| -
|
| template <typename T>
|
| class SetFlagScope : public ValueObject {
|
| public:
|
|
|