Commit 8357e02f authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix GC mole warning.

R=machenbach@chromium.org

Review URL: https://codereview.chromium.org/506513002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23335 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d8295050
......@@ -1714,7 +1714,8 @@ RUNTIME_FUNCTION(Runtime_GetWeakMapEntries) {
Handle<Object> key(table->KeyAt(i), isolate);
if (table->IsKey(*key)) {
entries->set(number_of_non_hole_elements++, *key);
entries->set(number_of_non_hole_elements++, table->Lookup(key));
Object* value = table->Lookup(key);
entries->set(number_of_non_hole_elements++, value);
}
}
DCHECK_EQ(table->NumberOfElements() * 2, number_of_non_hole_elements);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment