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

Unified Diff: src/elements.cc

Issue 2087823002: Optionally invoke an interceptor on failed access checks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 6 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
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | src/keys.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/elements.cc
diff --git a/src/elements.cc b/src/elements.cc
index d7e49cdcb9350b6f17c28882fc6c0aa6f57d12b4..4104fd09562968ca5cc4137ccb4f073c9e05c9f3 100644
--- a/src/elements.cc
+++ b/src/elements.cc
@@ -927,6 +927,7 @@ class ElementsAccessorBase : public ElementsAccessor {
Handle<FixedArrayBase> backing_store,
KeyAccumulator* keys) final {
if (keys->filter() & ONLY_ALL_CAN_READ) return;
+ if (keys->filter() & USE_ACCESS_CHECK_INTERCEPTOR) return;
Subclass::CollectElementIndicesImpl(object, backing_store, keys);
}
@@ -1342,6 +1343,7 @@ class DictionaryElementsAccessor
uint32_t insertion_index = 0) {
if (filter & SKIP_STRINGS) return list;
if (filter & ONLY_ALL_CAN_READ) return list;
+ if (filter & USE_ACCESS_CHECK_INTERCEPTOR) return list;
Handle<SeededNumberDictionary> dictionary =
Handle<SeededNumberDictionary>::cast(backing_store);
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | src/keys.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698