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

Side by Side Diff: src/objects.h

Issue 341453003: Support symbol-named properties in API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/arguments.h ('k') | src/objects.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 "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 10811 matching lines...) Expand 10 before | Expand all | Expand 10 after
10822 10822
10823 10823
10824 class InterceptorInfo: public Struct { 10824 class InterceptorInfo: public Struct {
10825 public: 10825 public:
10826 DECL_ACCESSORS(getter, Object) 10826 DECL_ACCESSORS(getter, Object)
10827 DECL_ACCESSORS(setter, Object) 10827 DECL_ACCESSORS(setter, Object)
10828 DECL_ACCESSORS(query, Object) 10828 DECL_ACCESSORS(query, Object)
10829 DECL_ACCESSORS(deleter, Object) 10829 DECL_ACCESSORS(deleter, Object)
10830 DECL_ACCESSORS(enumerator, Object) 10830 DECL_ACCESSORS(enumerator, Object)
10831 DECL_ACCESSORS(data, Object) 10831 DECL_ACCESSORS(data, Object)
10832 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols)
10833
10834 inline int flags();
10835 inline void set_flags(int flags);
10832 10836
10833 static inline InterceptorInfo* cast(Object* obj); 10837 static inline InterceptorInfo* cast(Object* obj);
10834 10838
10835 // Dispatched behavior. 10839 // Dispatched behavior.
10836 DECLARE_PRINTER(InterceptorInfo) 10840 DECLARE_PRINTER(InterceptorInfo)
10837 DECLARE_VERIFIER(InterceptorInfo) 10841 DECLARE_VERIFIER(InterceptorInfo)
10838 10842
10839 static const int kGetterOffset = HeapObject::kHeaderSize; 10843 static const int kGetterOffset = HeapObject::kHeaderSize;
10840 static const int kSetterOffset = kGetterOffset + kPointerSize; 10844 static const int kSetterOffset = kGetterOffset + kPointerSize;
10841 static const int kQueryOffset = kSetterOffset + kPointerSize; 10845 static const int kQueryOffset = kSetterOffset + kPointerSize;
10842 static const int kDeleterOffset = kQueryOffset + kPointerSize; 10846 static const int kDeleterOffset = kQueryOffset + kPointerSize;
10843 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; 10847 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize;
10844 static const int kDataOffset = kEnumeratorOffset + kPointerSize; 10848 static const int kDataOffset = kEnumeratorOffset + kPointerSize;
10845 static const int kSize = kDataOffset + kPointerSize; 10849 static const int kFlagsOffset = kDataOffset + kPointerSize;
10850 static const int kSize = kFlagsOffset + kPointerSize;
10851
10852 static const int kCanInterceptSymbolsBit = 0;
10846 10853
10847 private: 10854 private:
10848 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); 10855 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo);
10849 }; 10856 };
10850 10857
10851 10858
10852 class CallHandlerInfo: public Struct { 10859 class CallHandlerInfo: public Struct {
10853 public: 10860 public:
10854 DECL_ACCESSORS(callback, Object) 10861 DECL_ACCESSORS(callback, Object)
10855 DECL_ACCESSORS(data, Object) 10862 DECL_ACCESSORS(data, Object)
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
11249 } else { 11256 } else {
11250 value &= ~(1 << bit_position); 11257 value &= ~(1 << bit_position);
11251 } 11258 }
11252 return value; 11259 return value;
11253 } 11260 }
11254 }; 11261 };
11255 11262
11256 } } // namespace v8::internal 11263 } } // namespace v8::internal
11257 11264
11258 #endif // V8_OBJECTS_H_ 11265 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/arguments.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698