Merge WebKit at r59636: Update v8 to r4660.
Will build and run with current webkit.
Change-Id: I57bae621fd894da363ba84e1757ad09eb7c502b9
diff --git a/src/objects.cc b/src/objects.cc
index 459c8aa..c8acb47 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -682,11 +682,11 @@
if (FLAG_enable_slow_asserts) {
// Assert that the resource and the string are equivalent.
ASSERT(static_cast<size_t>(this->length()) == resource->length());
- SmartPointer<uc16> smart_chars(NewArray<uc16>(this->length()));
- String::WriteToFlat(this, *smart_chars, 0, this->length());
- ASSERT(memcmp(*smart_chars,
+ ScopedVector<uc16> smart_chars(this->length());
+ String::WriteToFlat(this, smart_chars.start(), 0, this->length());
+ ASSERT(memcmp(smart_chars.start(),
resource->data(),
- resource->length() * sizeof(**smart_chars)) == 0);
+ resource->length() * sizeof(smart_chars[0])) == 0);
}
#endif // DEBUG
@@ -728,11 +728,11 @@
if (FLAG_enable_slow_asserts) {
// Assert that the resource and the string are equivalent.
ASSERT(static_cast<size_t>(this->length()) == resource->length());
- SmartPointer<char> smart_chars(NewArray<char>(this->length()));
- String::WriteToFlat(this, *smart_chars, 0, this->length());
- ASSERT(memcmp(*smart_chars,
+ ScopedVector<char> smart_chars(this->length());
+ String::WriteToFlat(this, smart_chars.start(), 0, this->length());
+ ASSERT(memcmp(smart_chars.start(),
resource->data(),
- resource->length()*sizeof(**smart_chars)) == 0);
+ resource->length() * sizeof(smart_chars[0])) == 0);
}
#endif // DEBUG
@@ -4900,6 +4900,7 @@
// prototype is put into the initial map where it belongs.
set_prototype_or_initial_map(value);
}
+ Heap::ClearInstanceofCache();
return value;
}
@@ -5601,6 +5602,8 @@
Map::cast(new_map)->set_prototype(value);
real_receiver->set_map(Map::cast(new_map));
+ Heap::ClearInstanceofCache();
+
return value;
}