summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-dictionary.cc
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2017-09-12 11:34:59 +0200
committerAnna Henningsen <anna@addaleax.net>2017-09-13 16:15:18 +0200
commitd82e1075dbc2cec2d6598ade10c1f43805f690fd (patch)
treeccd242b9b491dfc341d1099fe11b0ef528839877 /deps/v8/test/cctest/test-dictionary.cc
parentb4b7ac6ae811b2b5a3082468115dfb5a5246fe3f (diff)
downloadandroid-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.tar.gz
android-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.tar.bz2
android-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.zip
deps: update V8 to 6.1.534.36
PR-URL: https://github.com/nodejs/node/pull/14730 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/test/cctest/test-dictionary.cc')
-rw-r--r--deps/v8/test/cctest/test-dictionary.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/deps/v8/test/cctest/test-dictionary.cc b/deps/v8/test/cctest/test-dictionary.cc
index fd015639af..c66cccca06 100644
--- a/deps/v8/test/cctest/test-dictionary.cc
+++ b/deps/v8/test/cctest/test-dictionary.cc
@@ -193,7 +193,7 @@ class ObjectHashTableTest: public ObjectHashTable {
int lookup(int key) {
Handle<Object> key_obj(Smi::FromInt(key), GetIsolate());
- return Smi::cast(Lookup(key_obj))->value();
+ return Smi::ToInt(Lookup(key_obj));
}
int capacity() {
@@ -214,7 +214,7 @@ TEST(HashTableRehash) {
for (int i = 0; i < capacity - 1; i++) {
t->insert(i, i * i, i);
}
- t->Rehash(handle(Smi::kZero, isolate));
+ t->Rehash();
for (int i = 0; i < capacity - 1; i++) {
CHECK_EQ(i, t->lookup(i * i));
}
@@ -227,7 +227,7 @@ TEST(HashTableRehash) {
for (int i = 0; i < capacity / 2; i++) {
t->insert(i, i * i, i);
}
- t->Rehash(handle(Smi::kZero, isolate));
+ t->Rehash();
for (int i = 0; i < capacity / 2; i++) {
CHECK_EQ(i, t->lookup(i * i));
}
@@ -298,20 +298,6 @@ 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::kZero, isolate);
- Handle<NameDictionary> new_dict =
- NameDictionary::Add(dict, key, value, PropertyDetails::Empty());
- CHECK_NE(*dict, *new_dict);
-}
-
TEST(MaximumClonedShallowObjectProperties) {
// Assert that a NameDictionary with kMaximumClonedShallowObjectProperties is
// not in large-object space.