public void PointerMethodsAreSingletons() { using (var test = MakeTest(@"PerformanceTestCases\PointerMethodsAreSingletons.cs")) { var data = new PerformanceAnalysisData(test, MakeUnsafeConfiguration); Console.WriteLine(data.Output); try { AssertIsSingleton(data, "pBuffer.getElement"); AssertIsSingleton(data, "pBuffer.setElement"); // FIXME: Fails. Something about this function makes SpiderMonkey unhappy :-( AssertIsSingleton(data, "Program.TestInlineAccess"); } catch (Exception) { data.Dump(Console.Out); throw; } } }
public void PointerMethodsAreSingletons() { using (var test = MakeTest(@"PerformanceTestCases\PointerMethodsAreSingletons.cs")) { var data = new PerformanceAnalysisData(test, MakeUnsafeConfiguration); Console.WriteLine(data.Output); try { AssertIsSingleton(data, "pBuffer.getElement"); AssertIsSingleton(data, "pBuffer.setElement"); // FIXME: Fails. Something about this function makes SpiderMonkey unhappy :-( AssertIsSingleton(data, "Program.TestInlineAccess"); } catch (Exception exc) { data.Dump(Console.Out); throw; } } }
private void AssertIsSingleton(PerformanceAnalysisData data, string expression) { Assert.IsTrue(data[expression].IsSingleton, expression + " is not a singleton"); }
private void AssertIsSingleton(PerformanceAnalysisData data, string expression) { Assert.IsTrue(data[expression].IsSingleton, expression + " is not a singleton"); }