| Index: test/cctest/test-dictionary.cc
|
| diff --git a/test/cctest/test-dictionary.cc b/test/cctest/test-dictionary.cc
|
| index b9e8b1ec061c94a896663bba07db901463cc46e5..2abefae930edb463a1bf31b895e7e4680f51dbd9 100644
|
| --- a/test/cctest/test-dictionary.cc
|
| +++ b/test/cctest/test-dictionary.cc
|
| @@ -41,7 +41,7 @@ using namespace v8::internal;
|
|
|
| TEST(ObjectHashTable) {
|
| LocalContext context;
|
| - Isolate* isolate = Isolate::Current();
|
| + Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| v8::HandleScope scope(context->GetIsolate());
|
| Handle<ObjectHashTable> table = factory->NewObjectHashTable(23);
|
| @@ -120,7 +120,7 @@ class ObjectHashTableTest: public ObjectHashTable {
|
|
|
| TEST(HashTableRehash) {
|
| LocalContext context;
|
| - Isolate* isolate = Isolate::Current();
|
| + Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| v8::HandleScope scope(context->GetIsolate());
|
| // Test almost filled table.
|
| @@ -156,7 +156,7 @@ TEST(HashTableRehash) {
|
| TEST(ObjectHashSetCausesGC) {
|
| i::FLAG_stress_compaction = false;
|
| LocalContext context;
|
| - Isolate* isolate = Isolate::Current();
|
| + Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| v8::HandleScope scope(context->GetIsolate());
|
| Handle<ObjectHashSet> table = factory->NewObjectHashSet(1);
|
| @@ -189,7 +189,7 @@ TEST(ObjectHashSetCausesGC) {
|
| TEST(ObjectHashTableCausesGC) {
|
| i::FLAG_stress_compaction = false;
|
| LocalContext context;
|
| - Isolate* isolate = Isolate::Current();
|
| + Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| v8::HandleScope scope(context->GetIsolate());
|
| Handle<ObjectHashTable> table = factory->NewObjectHashTable(1);
|
|
|