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

Side by Side Diff: src/objects.h

Issue 414213002: Add a new api in ObjectTemplate to prohibit interceptor for V8DOM binding (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: rework the patch by adding new kind of interceptor Created 6 years, 3 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/lookup-inl.h ('k') | src/objects-inl.h » ('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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 10685 matching lines...) Expand 10 before | Expand all | Expand 10 after
10696 10696
10697 10697
10698 class InterceptorInfo: public Struct { 10698 class InterceptorInfo: public Struct {
10699 public: 10699 public:
10700 DECL_ACCESSORS(getter, Object) 10700 DECL_ACCESSORS(getter, Object)
10701 DECL_ACCESSORS(setter, Object) 10701 DECL_ACCESSORS(setter, Object)
10702 DECL_ACCESSORS(query, Object) 10702 DECL_ACCESSORS(query, Object)
10703 DECL_ACCESSORS(deleter, Object) 10703 DECL_ACCESSORS(deleter, Object)
10704 DECL_ACCESSORS(enumerator, Object) 10704 DECL_ACCESSORS(enumerator, Object)
10705 DECL_ACCESSORS(data, Object) 10705 DECL_ACCESSORS(data, Object)
10706 DECL_ACCESSORS(flag, Smi)
10707 DECL_BOOLEAN_ACCESSORS(do_not_interceptor_real_name)
10706 10708
10707 DECLARE_CAST(InterceptorInfo) 10709 DECLARE_CAST(InterceptorInfo)
10708 10710
10709 // Dispatched behavior. 10711 // Dispatched behavior.
10710 DECLARE_PRINTER(InterceptorInfo) 10712 DECLARE_PRINTER(InterceptorInfo)
10711 DECLARE_VERIFIER(InterceptorInfo) 10713 DECLARE_VERIFIER(InterceptorInfo)
10712 10714
10713 static const int kGetterOffset = HeapObject::kHeaderSize; 10715 static const int kGetterOffset = HeapObject::kHeaderSize;
10714 static const int kSetterOffset = kGetterOffset + kPointerSize; 10716 static const int kSetterOffset = kGetterOffset + kPointerSize;
10715 static const int kQueryOffset = kSetterOffset + kPointerSize; 10717 static const int kQueryOffset = kSetterOffset + kPointerSize;
10716 static const int kDeleterOffset = kQueryOffset + kPointerSize; 10718 static const int kDeleterOffset = kQueryOffset + kPointerSize;
10717 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; 10719 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize;
10718 static const int kDataOffset = kEnumeratorOffset + kPointerSize; 10720 static const int kDataOffset = kEnumeratorOffset + kPointerSize;
10719 static const int kSize = kDataOffset + kPointerSize; 10721 static const int kFlagOffset = kDataOffset + kPointerSize;
10722 static const int kSize = kFlagOffset + kPointerSize;
10720 10723
10721 private: 10724 private:
10725 static const int kNotInterceptorRealName = 0;
10722 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); 10726 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo);
10723 }; 10727 };
10724 10728
10725 10729
10726 class CallHandlerInfo: public Struct { 10730 class CallHandlerInfo: public Struct {
10727 public: 10731 public:
10728 DECL_ACCESSORS(callback, Object) 10732 DECL_ACCESSORS(callback, Object)
10729 DECL_ACCESSORS(data, Object) 10733 DECL_ACCESSORS(data, Object)
10730 10734
10731 DECLARE_CAST(CallHandlerInfo) 10735 DECLARE_CAST(CallHandlerInfo)
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
11124 } else { 11128 } else {
11125 value &= ~(1 << bit_position); 11129 value &= ~(1 << bit_position);
11126 } 11130 }
11127 return value; 11131 return value;
11128 } 11132 }
11129 }; 11133 };
11130 11134
11131 } } // namespace v8::internal 11135 } } // namespace v8::internal
11132 11136
11133 #endif // V8_OBJECTS_H_ 11137 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lookup-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698