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

Unified Diff: src/objects.h

Issue 11802003: Add API for access checks on observed objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/object-observe.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index f1fa27accdef209ed0e0653f6bd20b331a3b24e9..c526c161b1471d7eee0b0aba9b313452f59a1a73 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8349,6 +8349,7 @@ class AccessCheckInfo: public Struct {
public:
DECL_ACCESSORS(named_callback, Object)
DECL_ACCESSORS(indexed_callback, Object)
+ DECL_ACCESSORS(observe_callback, Object)
DECL_ACCESSORS(data, Object)
static inline AccessCheckInfo* cast(Object* obj);
@@ -8359,7 +8360,9 @@ class AccessCheckInfo: public Struct {
static const int kNamedCallbackOffset = HeapObject::kHeaderSize;
static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize;
- static const int kDataOffset = kIndexedCallbackOffset + kPointerSize;
+ static const int kObserveCallbackOffset =
+ kIndexedCallbackOffset + kPointerSize;
+ static const int kDataOffset = kObserveCallbackOffset + kPointerSize;
static const int kSize = kDataOffset + kPointerSize;
private:
« no previous file with comments | « src/object-observe.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698