diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-03-18 13:49:34 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-20 01:11:01 +0100 |
commit | 83261e789eb903da39f279cb5a161611482e7df5 (patch) | |
tree | 4133b5ca9f53bed4365e1a94544a227d68a0cf12 /deps/v8/test/cctest/test-dictionary.cc | |
parent | a05f973f82d2be8527aad4c371d40d3c7e4c564e (diff) | |
download | android-node-v8-83261e789eb903da39f279cb5a161611482e7df5.tar.gz android-node-v8-83261e789eb903da39f279cb5a161611482e7df5.tar.bz2 android-node-v8-83261e789eb903da39f279cb5a161611482e7df5.zip |
deps: update v8 to 3.17.13
Diffstat (limited to 'deps/v8/test/cctest/test-dictionary.cc')
-rw-r--r-- | deps/v8/test/cctest/test-dictionary.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/deps/v8/test/cctest/test-dictionary.cc b/deps/v8/test/cctest/test-dictionary.cc index 00e38333fc..32fff60617 100644 --- a/deps/v8/test/cctest/test-dictionary.cc +++ b/deps/v8/test/cctest/test-dictionary.cc @@ -40,8 +40,8 @@ using namespace v8::internal; TEST(ObjectHashTable) { - v8::HandleScope scope; LocalContext context; + v8::HandleScope scope(context->GetIsolate()); Handle<ObjectHashTable> table = FACTORY->NewObjectHashTable(23); Handle<JSObject> a = FACTORY->NewJSArray(7); Handle<JSObject> b = FACTORY->NewJSArray(11); @@ -101,8 +101,8 @@ TEST(ObjectHashTable) { #ifdef DEBUG TEST(ObjectHashSetCausesGC) { - v8::HandleScope scope; LocalContext context; + v8::HandleScope scope(context->GetIsolate()); Handle<ObjectHashSet> table = FACTORY->NewObjectHashSet(1); Handle<JSObject> key = FACTORY->NewJSArray(0); v8::Handle<v8::Object> key_obj = v8::Utils::ToLocal(key); @@ -114,7 +114,8 @@ TEST(ObjectHashSetCausesGC) { // Simulate a full heap so that generating an identity hash code // in subsequent calls will request GC. - FLAG_gc_interval = 0; + SimulateFullSpace(HEAP->new_space()); + SimulateFullSpace(HEAP->old_pointer_space()); // Calling Contains() should not cause GC ever. CHECK(!table->Contains(*key)); @@ -130,8 +131,8 @@ TEST(ObjectHashSetCausesGC) { #ifdef DEBUG TEST(ObjectHashTableCausesGC) { - v8::HandleScope scope; LocalContext context; + v8::HandleScope scope(context->GetIsolate()); Handle<ObjectHashTable> table = FACTORY->NewObjectHashTable(1); Handle<JSObject> key = FACTORY->NewJSArray(0); v8::Handle<v8::Object> key_obj = v8::Utils::ToLocal(key); @@ -143,7 +144,8 @@ TEST(ObjectHashTableCausesGC) { // Simulate a full heap so that generating an identity hash code // in subsequent calls will request GC. - FLAG_gc_interval = 0; + SimulateFullSpace(HEAP->new_space()); + SimulateFullSpace(HEAP->old_pointer_space()); // Calling Lookup() should not cause GC ever. CHECK(table->Lookup(*key)->IsTheHole()); |