Chromium Code Reviews

Unified Diff: src/messages.cc

Issue 1612413003: Reland of [runtime] Do not use the enum-cache for non-prototype objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/key-accumulator.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.cc
diff --git a/src/messages.cc b/src/messages.cc
index 0365ec88021e0149bb894e565bbf17f6d4fdd3d9..ab1a3e793cbae167caaba38468ea7d8373866431 100644
--- a/src/messages.cc
+++ b/src/messages.cc
@@ -250,7 +250,8 @@
if (!current->IsJSObject()) break;
Handle<JSObject> current_obj = Handle<JSObject>::cast(current);
if (current_obj->IsAccessCheckNeeded()) break;
- Handle<FixedArray> keys = JSObject::GetEnumPropertyKeys(current_obj, false);
+ Handle<FixedArray> keys =
+ JSObject::GetOwnEnumPropertyKeys(current_obj, false);
for (int i = 0; i < keys->length(); i++) {
HandleScope inner_scope(isolate_);
if (!keys->get(i)->IsName()) continue;
« no previous file with comments | « src/key-accumulator.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine