Commit 7f8681c0 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Test] Remove now unecessary interpreter()->Initialize() from tests.

Review-Url: https://codereview.chromium.org/2509293002
Cr-Commit-Position: refs/heads/master@{#41086}
parent a80d4d03
...@@ -80,8 +80,6 @@ class BytecodeGraphTester { ...@@ -80,8 +80,6 @@ class BytecodeGraphTester {
i::FLAG_always_opt = false; i::FLAG_always_opt = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
i::FLAG_loop_assignment_analysis = false; i::FLAG_loop_assignment_analysis = false;
// Ensure handler table is generated.
isolate->interpreter()->Initialize();
} }
virtual ~BytecodeGraphTester() {} virtual ~BytecodeGraphTester() {}
......
...@@ -23,8 +23,6 @@ InterpreterTester::InterpreterTester( ...@@ -23,8 +23,6 @@ InterpreterTester::InterpreterTester(
feedback_vector_(feedback_vector) { feedback_vector_(feedback_vector) {
i::FLAG_ignition = true; i::FLAG_ignition = true;
i::FLAG_always_opt = false; i::FLAG_always_opt = false;
// Ensure handler table is generated.
isolate->interpreter()->Initialize();
} }
InterpreterTester::InterpreterTester( InterpreterTester::InterpreterTester(
......
...@@ -74,7 +74,6 @@ class InitializedIgnitionHandleScope : public InitializedHandleScope { ...@@ -74,7 +74,6 @@ class InitializedIgnitionHandleScope : public InitializedHandleScope {
i::FLAG_ignition = true; i::FLAG_ignition = true;
i::FLAG_always_opt = false; i::FLAG_always_opt = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
CcTest::i_isolate()->interpreter()->Initialize();
} }
}; };
......
...@@ -226,9 +226,6 @@ bool OptimizedBytecodeSourcePositionTester::SourcePositionsMatch( ...@@ -226,9 +226,6 @@ bool OptimizedBytecodeSourcePositionTester::SourcePositionsMatch(
void TestSourcePositionsEquivalent(int optimization_bitmap) { void TestSourcePositionsEquivalent(int optimization_bitmap) {
HandleAndZoneScope handles; HandleAndZoneScope handles;
// Ensure handler table is generated.
handles.main_isolate()->interpreter()->Initialize();
OptimizedBytecodeSourcePositionTester tester(handles.main_isolate()); OptimizedBytecodeSourcePositionTester tester(handles.main_isolate());
for (auto test_case_data : kTestCaseData) { for (auto test_case_data : kTestCaseData) {
CHECK(tester.SourcePositionsMatch( CHECK(tester.SourcePositionsMatch(
......
...@@ -625,7 +625,6 @@ TEST(IgnitionEntryTrampolineSelfHealing) { ...@@ -625,7 +625,6 @@ TEST(IgnitionEntryTrampolineSelfHealing) {
CcTest::InitializeVM(); CcTest::InitializeVM();
FLAG_ignition = true; FLAG_ignition = true;
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
isolate->interpreter()->Initialize();
v8::HandleScope scope(CcTest::isolate()); v8::HandleScope scope(CcTest::isolate());
CompileRun( CompileRun(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment