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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/object-observe.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 8331 matching lines...) Expand 10 before | Expand all | Expand 10 after
8342 } 8342 }
8343 8343
8344 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair); 8344 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair);
8345 }; 8345 };
8346 8346
8347 8347
8348 class AccessCheckInfo: public Struct { 8348 class AccessCheckInfo: public Struct {
8349 public: 8349 public:
8350 DECL_ACCESSORS(named_callback, Object) 8350 DECL_ACCESSORS(named_callback, Object)
8351 DECL_ACCESSORS(indexed_callback, Object) 8351 DECL_ACCESSORS(indexed_callback, Object)
8352 DECL_ACCESSORS(observe_callback, Object)
8352 DECL_ACCESSORS(data, Object) 8353 DECL_ACCESSORS(data, Object)
8353 8354
8354 static inline AccessCheckInfo* cast(Object* obj); 8355 static inline AccessCheckInfo* cast(Object* obj);
8355 8356
8356 // Dispatched behavior. 8357 // Dispatched behavior.
8357 DECLARE_PRINTER(AccessCheckInfo) 8358 DECLARE_PRINTER(AccessCheckInfo)
8358 DECLARE_VERIFIER(AccessCheckInfo) 8359 DECLARE_VERIFIER(AccessCheckInfo)
8359 8360
8360 static const int kNamedCallbackOffset = HeapObject::kHeaderSize; 8361 static const int kNamedCallbackOffset = HeapObject::kHeaderSize;
8361 static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize; 8362 static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize;
8362 static const int kDataOffset = kIndexedCallbackOffset + kPointerSize; 8363 static const int kObserveCallbackOffset =
8364 kIndexedCallbackOffset + kPointerSize;
8365 static const int kDataOffset = kObserveCallbackOffset + kPointerSize;
8363 static const int kSize = kDataOffset + kPointerSize; 8366 static const int kSize = kDataOffset + kPointerSize;
8364 8367
8365 private: 8368 private:
8366 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo); 8369 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo);
8367 }; 8370 };
8368 8371
8369 8372
8370 class InterceptorInfo: public Struct { 8373 class InterceptorInfo: public Struct {
8371 public: 8374 public:
8372 DECL_ACCESSORS(getter, Object) 8375 DECL_ACCESSORS(getter, Object)
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
8786 } else { 8789 } else {
8787 value &= ~(1 << bit_position); 8790 value &= ~(1 << bit_position);
8788 } 8791 }
8789 return value; 8792 return value;
8790 } 8793 }
8791 }; 8794 };
8792 8795
8793 } } // namespace v8::internal 8796 } } // namespace v8::internal
8794 8797
8795 #endif // V8_OBJECTS_H_ 8798 #endif // V8_OBJECTS_H_
OLDNEW
« 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