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

Side by Side Diff: src/objects.h

Issue 467013003: Add interceptor support for symbols (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
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/builtins.h" 10 #include "src/builtins.h"
(...skipping 10826 matching lines...) Expand 10 before | Expand all | Expand 10 after
10837 10837
10838 10838
10839 class InterceptorInfo: public Struct { 10839 class InterceptorInfo: public Struct {
10840 public: 10840 public:
10841 DECL_ACCESSORS(getter, Object) 10841 DECL_ACCESSORS(getter, Object)
10842 DECL_ACCESSORS(setter, Object) 10842 DECL_ACCESSORS(setter, Object)
10843 DECL_ACCESSORS(query, Object) 10843 DECL_ACCESSORS(query, Object)
10844 DECL_ACCESSORS(deleter, Object) 10844 DECL_ACCESSORS(deleter, Object)
10845 DECL_ACCESSORS(enumerator, Object) 10845 DECL_ACCESSORS(enumerator, Object)
10846 DECL_ACCESSORS(data, Object) 10846 DECL_ACCESSORS(data, Object)
10847 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols)
10848
10849 inline int flags() const;
10850 inline void set_flags(int flags);
dcarney 2014/08/13 08:25:40 can you add a TODO here to remove the flags field
wingo 2014/08/13 10:45:40 Done.
10847 10851
10848 DECLARE_CAST(InterceptorInfo) 10852 DECLARE_CAST(InterceptorInfo)
10849 10853
10850 // Dispatched behavior. 10854 // Dispatched behavior.
10851 DECLARE_PRINTER(InterceptorInfo) 10855 DECLARE_PRINTER(InterceptorInfo)
10852 DECLARE_VERIFIER(InterceptorInfo) 10856 DECLARE_VERIFIER(InterceptorInfo)
10853 10857
10854 static const int kGetterOffset = HeapObject::kHeaderSize; 10858 static const int kGetterOffset = HeapObject::kHeaderSize;
10855 static const int kSetterOffset = kGetterOffset + kPointerSize; 10859 static const int kSetterOffset = kGetterOffset + kPointerSize;
10856 static const int kQueryOffset = kSetterOffset + kPointerSize; 10860 static const int kQueryOffset = kSetterOffset + kPointerSize;
10857 static const int kDeleterOffset = kQueryOffset + kPointerSize; 10861 static const int kDeleterOffset = kQueryOffset + kPointerSize;
10858 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; 10862 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize;
10859 static const int kDataOffset = kEnumeratorOffset + kPointerSize; 10863 static const int kDataOffset = kEnumeratorOffset + kPointerSize;
10860 static const int kSize = kDataOffset + kPointerSize; 10864 static const int kFlagsOffset = kDataOffset + kPointerSize;
10865 static const int kSize = kFlagsOffset + kPointerSize;
10866
10867 static const int kCanInterceptSymbolsBit = 0;
10861 10868
10862 private: 10869 private:
10863 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); 10870 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo);
10864 }; 10871 };
10865 10872
10866 10873
10867 class CallHandlerInfo: public Struct { 10874 class CallHandlerInfo: public Struct {
10868 public: 10875 public:
10869 DECL_ACCESSORS(callback, Object) 10876 DECL_ACCESSORS(callback, Object)
10870 DECL_ACCESSORS(data, Object) 10877 DECL_ACCESSORS(data, Object)
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
11265 } else { 11272 } else {
11266 value &= ~(1 << bit_position); 11273 value &= ~(1 << bit_position);
11267 } 11274 }
11268 return value; 11275 return value;
11269 } 11276 }
11270 }; 11277 };
11271 11278
11272 } } // namespace v8::internal 11279 } } // namespace v8::internal
11273 11280
11274 #endif // V8_OBJECTS_H_ 11281 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698