Commit 7f6839d6 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[test] Remove uses of runtime zone from tests.

R=mvstanton@chromium.org

Review-Url: https://codereview.chromium.org/2190623002
Cr-Commit-Position: refs/heads/master@{#38115}
parent 3ca98851
......@@ -36,7 +36,7 @@ TEST(VectorStructure) {
v8::HandleScope scope(context->GetIsolate());
Isolate* isolate = CcTest::i_isolate();
Factory* factory = isolate->factory();
Zone* zone = isolate->runtime_zone();
Zone zone(isolate->allocator());
// Empty vectors are the empty fixed array.
StaticFeedbackVectorSpec empty;
......@@ -47,7 +47,7 @@ TEST(VectorStructure) {
CHECK(vector->is_empty());
{
FeedbackVectorSpec one_slot(zone);
FeedbackVectorSpec one_slot(&zone);
one_slot.AddGeneralSlot();
vector = NewTypeFeedbackVector(isolate, &one_slot);
FeedbackVectorHelper helper(vector);
......@@ -55,7 +55,7 @@ TEST(VectorStructure) {
}
{
FeedbackVectorSpec one_icslot(zone);
FeedbackVectorSpec one_icslot(&zone);
one_icslot.AddCallICSlot();
vector = NewTypeFeedbackVector(isolate, &one_icslot);
FeedbackVectorHelper helper(vector);
......@@ -63,7 +63,7 @@ TEST(VectorStructure) {
}
{
FeedbackVectorSpec spec(zone);
FeedbackVectorSpec spec(&zone);
for (int i = 0; i < 3; i++) {
spec.AddGeneralSlot();
}
......@@ -103,9 +103,9 @@ TEST(VectorICMetadata) {
LocalContext context;
v8::HandleScope scope(context->GetIsolate());
Isolate* isolate = CcTest::i_isolate();
Zone* zone = isolate->runtime_zone();
Zone zone(isolate->allocator());
FeedbackVectorSpec spec(zone);
FeedbackVectorSpec spec(&zone);
// Set metadata.
for (int i = 0; i < 40; i++) {
switch (i % 4) {
......@@ -158,12 +158,12 @@ TEST(VectorSlotClearing) {
v8::HandleScope scope(context->GetIsolate());
Isolate* isolate = CcTest::i_isolate();
Factory* factory = isolate->factory();
Zone* zone = isolate->runtime_zone();
Zone zone(isolate->allocator());
// We only test clearing FeedbackVectorSlots, not FeedbackVectorSlots.
// The reason is that FeedbackVectorSlots need a full code environment
// to fully test (See VectorICProfilerStatistics test below).
FeedbackVectorSpec spec(zone);
FeedbackVectorSpec spec(&zone);
for (int i = 0; i < 5; i++) {
spec.AddGeneralSlot();
}
......
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