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

Side by Side Diff: src/objects.h

Issue 1410883006: Plumb accessing context through to access control callbacks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « src/isolate.cc ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 10299 matching lines...) Expand 10 before | Expand all | Expand 10 after
10310 inline bool IsJSAccessor(Object* obj); 10310 inline bool IsJSAccessor(Object* obj);
10311 10311
10312 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair); 10312 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair);
10313 }; 10313 };
10314 10314
10315 10315
10316 class AccessCheckInfo: public Struct { 10316 class AccessCheckInfo: public Struct {
10317 public: 10317 public:
10318 DECL_ACCESSORS(named_callback, Object) 10318 DECL_ACCESSORS(named_callback, Object)
10319 DECL_ACCESSORS(indexed_callback, Object) 10319 DECL_ACCESSORS(indexed_callback, Object)
10320 DECL_ACCESSORS(callback, Object)
10320 DECL_ACCESSORS(data, Object) 10321 DECL_ACCESSORS(data, Object)
10321 10322
10322 DECLARE_CAST(AccessCheckInfo) 10323 DECLARE_CAST(AccessCheckInfo)
10323 10324
10324 // Dispatched behavior. 10325 // Dispatched behavior.
10325 DECLARE_PRINTER(AccessCheckInfo) 10326 DECLARE_PRINTER(AccessCheckInfo)
10326 DECLARE_VERIFIER(AccessCheckInfo) 10327 DECLARE_VERIFIER(AccessCheckInfo)
10327 10328
10328 static const int kNamedCallbackOffset = HeapObject::kHeaderSize; 10329 static const int kNamedCallbackOffset = HeapObject::kHeaderSize;
10329 static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize; 10330 static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize;
10330 static const int kDataOffset = kIndexedCallbackOffset + kPointerSize; 10331 static const int kCallbackOffset = kIndexedCallbackOffset + kPointerSize;
10332 static const int kDataOffset = kCallbackOffset + kPointerSize;
10331 static const int kSize = kDataOffset + kPointerSize; 10333 static const int kSize = kDataOffset + kPointerSize;
10332 10334
10333 private: 10335 private:
10334 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo); 10336 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo);
10335 }; 10337 };
10336 10338
10337 10339
10338 class InterceptorInfo: public Struct { 10340 class InterceptorInfo: public Struct {
10339 public: 10341 public:
10340 DECL_ACCESSORS(getter, Object) 10342 DECL_ACCESSORS(getter, Object)
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
10815 // (elements + properties) in the current level. 10817 // (elements + properties) in the current level.
10816 int levelLength_; 10818 int levelLength_;
10817 10819
10818 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10820 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10819 }; 10821 };
10820 10822
10821 } // NOLINT, false-positive due to second-order macros. 10823 } // NOLINT, false-positive due to second-order macros.
10822 } // NOLINT, false-positive due to second-order macros. 10824 } // NOLINT, false-positive due to second-order macros.
10823 10825
10824 #endif // V8_OBJECTS_H_ 10826 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698