diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-03-01 08:58:05 -0800 |
---|---|---|
committer | Ali Sheikh <ofrobots@lemonhope.roam.corp.google.com> | 2016-03-03 20:35:20 -0800 |
commit | 069e02ab47656b3efd1b6829c65856b2e1c2d1db (patch) | |
tree | eb643e0a2e88fd64bb9fc927423458d2ae96c2db /deps/v8/test/cctest/test-dictionary.cc | |
parent | 8938355398c79f583a468284b768652d12ba9bc9 (diff) | |
download | android-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.tar.gz android-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.tar.bz2 android-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.zip |
deps: upgrade to V8 4.9.385.18
Pick up the current branch head for V8 4.9
https://github.com/v8/v8/commit/1ecba0f
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'deps/v8/test/cctest/test-dictionary.cc')
-rw-r--r-- | deps/v8/test/cctest/test-dictionary.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/test-dictionary.cc b/deps/v8/test/cctest/test-dictionary.cc index 68c35f958e..0d4edf5dd4 100644 --- a/deps/v8/test/cctest/test-dictionary.cc +++ b/deps/v8/test/cctest/test-dictionary.cc @@ -35,6 +35,7 @@ #include "src/global-handles.h" #include "src/macro-assembler.h" #include "src/objects.h" +#include "test/cctest/heap/utils-inl.h" using namespace v8::internal; @@ -227,4 +228,18 @@ TEST(ObjectHashTableCausesGC) { } #endif +TEST(SetRequiresCopyOnCapacityChange) { + LocalContext context; + v8::HandleScope scope(context->GetIsolate()); + Isolate* isolate = CcTest::i_isolate(); + Handle<NameDictionary> dict = NameDictionary::New(isolate, 0, TENURED); + dict->SetRequiresCopyOnCapacityChange(); + Handle<Name> key = isolate->factory()->InternalizeString( + v8::Utils::OpenHandle(*v8_str("key"))); + Handle<Object> value = handle(Smi::FromInt(0), isolate); + Handle<NameDictionary> new_dict = + NameDictionary::Add(dict, key, value, PropertyDetails::Empty()); + CHECK_NE(*dict, *new_dict); +} + } // namespace |