summaryrefslogtreecommitdiff
path: root/chromium/v8/src/objects-debug.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-08-08 17:47:06 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-08-09 11:07:23 +0000
commita3ee7849e3b0ad3d5f9595fa1cfd694c22dcee2a (patch)
treedab5d7f392b3b7d1198c0584ae0a1e0e8511967b /chromium/v8/src/objects-debug.cc
parent9a05d0e4db172168e429f30bc8ed62b695006490 (diff)
downloadqtwebengine-chromium-a3ee7849e3b0ad3d5f9595fa1cfd694c22dcee2a.tar.gz
BASELINE: Update Chromium to 60.0.3112.96
Change-Id: I8fa4120b6b8153b5be2520e57cf76c8d210bc2b5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/v8/src/objects-debug.cc')
-rw-r--r--chromium/v8/src/objects-debug.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/v8/src/objects-debug.cc b/chromium/v8/src/objects-debug.cc
index 8bab9289d67..273bfa22e49 100644
--- a/chromium/v8/src/objects-debug.cc
+++ b/chromium/v8/src/objects-debug.cc
@@ -349,11 +349,14 @@ void JSObject::JSObjectVerify() {
}
DescriptorArray* descriptors = map()->instance_descriptors();
Isolate* isolate = GetIsolate();
+ bool is_transitionable_fast_elements_kind =
+ IsTransitionableFastElementsKind(map()->elements_kind());
+
for (int i = 0; i < map()->NumberOfOwnDescriptors(); i++) {
PropertyDetails details = descriptors->GetDetails(i);
if (details.location() == kField) {
DCHECK_EQ(kData, details.kind());
- Representation r = descriptors->GetDetails(i).representation();
+ Representation r = details.representation();
FieldIndex index = FieldIndex::ForDescriptor(map(), i);
if (IsUnboxedDoubleField(index)) {
DCHECK(r.IsDouble());
@@ -376,6 +379,9 @@ void JSObject::JSObjectVerify() {
CHECK(!field_type->NowStable() || field_type->NowContains(value) ||
(!FLAG_use_allocation_folding && value->IsUndefined(isolate)));
}
+ CHECK_IMPLIES(is_transitionable_fast_elements_kind,
+ !Map::IsInplaceGeneralizableField(details.constness(), r,
+ field_type));
}
}
}