Fix test failures in r12813. (issue 11264035)

13 views
Skip to first unread message

yan...@chromium.org

unread,
Oct 25, 2012, 9:51:40 AM10/25/12
to mstar...@chromium.org, v8-...@googlegroups.com

mstar...@chromium.org

unread,
Oct 25, 2012, 9:51:39 AM10/25/12
to yan...@chromium.org, v8-...@googlegroups.com
Reviewers: Yang,

Description:
Fix test failures in r12813.

R=yan...@chromium.org
BUG=v8:1490


Please review this at https://codereview.chromium.org/11264035/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
M src/objects-inl.h


Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index
08358cb2939280c51d6c48fb20cf7296affeed9e..4e7d8f8c08702943ef60fb3692b5ceb56482ec5d
100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2290,9 +2290,10 @@ int HashTable<Shape, Key>::FindEntry(Isolate*
isolate, Key key) {
// EnsureCapacity will guarantee the hash table is never full.
while (true) {
Object* element = KeyAt(entry);
- // Empty entry.
- if (element == isolate->heap()->undefined_value()) break;
- if (element != isolate->heap()->the_hole_value() &&
+ // Empty entry. Uses raw unchecked accessors because it is called by
the
+ // symbol table during bootstrapping.
+ if (element == isolate->heap()->raw_unchecked_undefined_value()) break;
+ if (element != isolate->heap()->raw_unchecked_the_hole_value() &&
Shape::IsMatch(key, element)) return entry;
entry = NextProbe(entry, count++, capacity);
}


Reply all
Reply to author
Forward
0 new messages