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

Unified Diff: src/runtime/runtime-object.cc

Issue 649603003: Keyed stores to super with numeric keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Refactoring of GetElementAttributeWithInterceptor Created 6 years, 2 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
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index 3868011e4fa6692bf4f48ba2321f7b4b424ddc8b..2b4c731cf54ba177e90cfcfdaac5b0a1b8ec2b62 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -423,7 +423,11 @@ MUST_USE_RESULT static MaybeHandle<Object> GetOwnProperty(Isolate* isolate,
if (attrs == ABSENT) return factory->undefined_value();
// Get AccessorPair if present.
- maybe_accessors = JSObject::GetOwnElementAccessorPair(obj, index);
+ Handle<Object> structure;
+ if (JSObject::GetOwnElementStructure(obj, index).ToHandle(&structure) &&
+ structure->IsAccessorPair()) {
+ maybe_accessors = Handle<AccessorPair>::cast(structure);
+ }
// Get value if not an AccessorPair.
if (maybe_accessors.is_null()) {

Powered by Google App Engine
This is Rietveld 408576698