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

Side by Side Diff: src/objects-inl.h

Issue 467013003: Add interceptor support for symbols (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated to filter out non-symbol keys from for-in enumeration 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-debug.cc ('k') | test/cctest/test-accessors.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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5308 matching lines...) Expand 10 before | Expand all | Expand 10 after
5319 ACCESSORS(AccessCheckInfo, named_callback, Object, kNamedCallbackOffset) 5319 ACCESSORS(AccessCheckInfo, named_callback, Object, kNamedCallbackOffset)
5320 ACCESSORS(AccessCheckInfo, indexed_callback, Object, kIndexedCallbackOffset) 5320 ACCESSORS(AccessCheckInfo, indexed_callback, Object, kIndexedCallbackOffset)
5321 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset) 5321 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset)
5322 5322
5323 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset) 5323 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset)
5324 ACCESSORS(InterceptorInfo, setter, Object, kSetterOffset) 5324 ACCESSORS(InterceptorInfo, setter, Object, kSetterOffset)
5325 ACCESSORS(InterceptorInfo, query, Object, kQueryOffset) 5325 ACCESSORS(InterceptorInfo, query, Object, kQueryOffset)
5326 ACCESSORS(InterceptorInfo, deleter, Object, kDeleterOffset) 5326 ACCESSORS(InterceptorInfo, deleter, Object, kDeleterOffset)
5327 ACCESSORS(InterceptorInfo, enumerator, Object, kEnumeratorOffset) 5327 ACCESSORS(InterceptorInfo, enumerator, Object, kEnumeratorOffset)
5328 ACCESSORS(InterceptorInfo, data, Object, kDataOffset) 5328 ACCESSORS(InterceptorInfo, data, Object, kDataOffset)
5329 SMI_ACCESSORS(InterceptorInfo, flags, kFlagsOffset)
5330 BOOL_ACCESSORS(InterceptorInfo, flags, can_intercept_symbols,
5331 kCanInterceptSymbolsBit)
5329 5332
5330 ACCESSORS(CallHandlerInfo, callback, Object, kCallbackOffset) 5333 ACCESSORS(CallHandlerInfo, callback, Object, kCallbackOffset)
5331 ACCESSORS(CallHandlerInfo, data, Object, kDataOffset) 5334 ACCESSORS(CallHandlerInfo, data, Object, kDataOffset)
5332 5335
5333 ACCESSORS(TemplateInfo, tag, Object, kTagOffset) 5336 ACCESSORS(TemplateInfo, tag, Object, kTagOffset)
5334 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset) 5337 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset)
5335 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset) 5338 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset)
5336 5339
5337 ACCESSORS(FunctionTemplateInfo, serial_number, Object, kSerialNumberOffset) 5340 ACCESSORS(FunctionTemplateInfo, serial_number, Object, kSerialNumberOffset)
5338 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset) 5341 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset)
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
7269 #undef READ_SHORT_FIELD 7272 #undef READ_SHORT_FIELD
7270 #undef WRITE_SHORT_FIELD 7273 #undef WRITE_SHORT_FIELD
7271 #undef READ_BYTE_FIELD 7274 #undef READ_BYTE_FIELD
7272 #undef WRITE_BYTE_FIELD 7275 #undef WRITE_BYTE_FIELD
7273 #undef NOBARRIER_READ_BYTE_FIELD 7276 #undef NOBARRIER_READ_BYTE_FIELD
7274 #undef NOBARRIER_WRITE_BYTE_FIELD 7277 #undef NOBARRIER_WRITE_BYTE_FIELD
7275 7278
7276 } } // namespace v8::internal 7279 } } // namespace v8::internal
7277 7280
7278 #endif // V8_OBJECTS_INL_H_ 7281 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698