Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: src/objects-inl.h

Issue 1703513002: [runtime] More LookupIterator / Transition related performance tweaks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 8c0035efecfbae4afb13a6651fc7cbded1fcfb9a..d4bd52c364274a208c2a07da9ddc6b84aa430516 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6608,9 +6608,8 @@ bool JSObject::HasSlowStringWrapperElements() {
}
bool JSObject::HasFixedTypedArrayElements() {
- HeapObject* array = elements();
- DCHECK(array != NULL);
- return array->IsFixedTypedArrayBase();
+ DCHECK_NOT_NULL(elements());
+ return map()->has_fixed_typed_array_elements();
}
#define FIXED_TYPED_ELEMENTS_CHECK(Type, type, TYPE, ctype, size) \
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698