Index: test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc |
diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc |
index 8c250e61e2f8dd9f61d1c4c8e1f3e2bce46d9abe..a35033e652de62a73b81ebea160e1537871b497d 100644 |
--- a/test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc |
+++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc |
@@ -14,7 +14,6 @@ |
#include "src/objects-inl.h" |
#include "src/parsing/parse-info.h" |
#include "src/v8.h" |
-#include "src/zone/zone.h" |
#include "test/unittests/compiler-dispatcher/compiler-dispatcher-helper.h" |
#include "test/unittests/test-utils.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -815,8 +814,7 @@ TEST_F(CompilerDispatcherTest, EnqueueParsed) { |
Handle<JSFunction> f = Handle<JSFunction>::cast(RunJS(isolate(), script)); |
Handle<SharedFunctionInfo> shared(f->shared(), i_isolate()); |
- Zone zone(i_isolate()->allocator(), ZONE_NAME); |
- ParseInfo parse_info(&zone, shared); |
+ ParseInfo parse_info(shared); |
ASSERT_TRUE(Compiler::ParseAndAnalyze(&parse_info)); |
ASSERT_FALSE(dispatcher.IsEnqueued(shared)); |
@@ -841,8 +839,7 @@ TEST_F(CompilerDispatcherTest, EnqueueAndStepParsed) { |
Handle<JSFunction> f = Handle<JSFunction>::cast(RunJS(isolate(), script)); |
Handle<SharedFunctionInfo> shared(f->shared(), i_isolate()); |
- Zone zone(i_isolate()->allocator(), ZONE_NAME); |
- ParseInfo parse_info(&zone, shared); |
+ ParseInfo parse_info(shared); |
ASSERT_TRUE(Compiler::ParseAndAnalyze(&parse_info)); |
ASSERT_FALSE(dispatcher.IsEnqueued(shared)); |
@@ -878,8 +875,7 @@ TEST_F(CompilerDispatcherTest, FinishAllNow) { |
ASSERT_FALSE(shared2->is_compiled()); |
// Enqueue shared1 as already parsed. |
- Zone zone(i_isolate()->allocator(), ZONE_NAME); |
- ParseInfo parse_info(&zone, shared1); |
+ ParseInfo parse_info(shared1); |
ASSERT_TRUE(Compiler::ParseAndAnalyze(&parse_info)); |
ASSERT_TRUE(dispatcher.Enqueue(shared1, parse_info.literal())); |