Index: test/cctest/test-feedback-vector.cc |
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc |
index cb6e3fef393fb0439d3f788dd4c9f5a11f356893..ba4d9a9026cc654a4d4ae7d19e85b34f8c3c4cde 100644 |
--- a/test/cctest/test-feedback-vector.cc |
+++ b/test/cctest/test-feedback-vector.cc |
@@ -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(); |
} |