Lines Matching refs:Engine
26 Engine(EngineBuilder(M).create()) { in ExecutionEngineTest()
30 ASSERT_TRUE(Engine.get() != NULL); in SetUp()
39 const OwningPtr<ExecutionEngine> Engine; member in __anondf7716a60111::ExecutionEngineTest
46 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
47 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
49 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
50 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
51 Engine->updateGlobalMapping(G1, NULL); in TEST_F()
52 EXPECT_EQ(NULL, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
53 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
54 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
58 EXPECT_EQ(NULL, Engine->getPointerToGlobalIfAvailable(G2)) in TEST_F()
62 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
63 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G2)); in TEST_F()
64 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
73 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
74 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
76 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
77 EXPECT_EQ(NULL, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
78 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
82 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
83 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
84 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
85 Engine->updateGlobalMapping(G1, NULL); in TEST_F()
86 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)) in TEST_F()
88 EXPECT_EQ(NULL, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
89 Engine->updateGlobalMapping(G2, &Mem2); in TEST_F()
90 EXPECT_EQ(NULL, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
91 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem2)) in TEST_F()
101 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
102 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
104 Engine->clearGlobalMappingsFromModule(M); in TEST_F()
106 EXPECT_EQ(NULL, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
112 Engine->addGlobalMapping(G2, &Mem1); in TEST_F()
113 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
120 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
122 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
126 EXPECT_EQ(NULL, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()