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

Unified Diff: src/objects-inl.h

Issue 9050001: Ensure newly allocated empty Arrays are transitioned to FAST_ELEMENT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix existing and add new tests Created 9 years 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
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 99a0bb08d29be6f9a4f80cd244e623dea297f3c8..740c5cebd44352f9a2bee14b7d24dc62b4487c00 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1623,6 +1623,11 @@ void FixedArray::set(int index, Object* value) {
}
+bool FixedArray::is_the_hole(int index) {
+ return get(index)->IsTheHole();
+}
+
+
inline bool FixedDoubleArray::is_the_hole_nan(double value) {
return BitCast<uint64_t, double>(value) == kHoleNanInt64;
}

Powered by Google App Engine
This is Rietveld 408576698