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

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

Issue 1407313004: Adds the possibility of setting a Code object as the callback of a FunctionTemplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 5 years, 1 month 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
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 5600 matching lines...) Expand 10 before | Expand all | Expand 10 after
5611 ACCESSORS(InterceptorInfo, enumerator, Object, kEnumeratorOffset) 5611 ACCESSORS(InterceptorInfo, enumerator, Object, kEnumeratorOffset)
5612 ACCESSORS(InterceptorInfo, data, Object, kDataOffset) 5612 ACCESSORS(InterceptorInfo, data, Object, kDataOffset)
5613 SMI_ACCESSORS(InterceptorInfo, flags, kFlagsOffset) 5613 SMI_ACCESSORS(InterceptorInfo, flags, kFlagsOffset)
5614 BOOL_ACCESSORS(InterceptorInfo, flags, can_intercept_symbols, 5614 BOOL_ACCESSORS(InterceptorInfo, flags, can_intercept_symbols,
5615 kCanInterceptSymbolsBit) 5615 kCanInterceptSymbolsBit)
5616 BOOL_ACCESSORS(InterceptorInfo, flags, all_can_read, kAllCanReadBit) 5616 BOOL_ACCESSORS(InterceptorInfo, flags, all_can_read, kAllCanReadBit)
5617 BOOL_ACCESSORS(InterceptorInfo, flags, non_masking, kNonMasking) 5617 BOOL_ACCESSORS(InterceptorInfo, flags, non_masking, kNonMasking)
5618 5618
5619 ACCESSORS(CallHandlerInfo, callback, Object, kCallbackOffset) 5619 ACCESSORS(CallHandlerInfo, callback, Object, kCallbackOffset)
5620 ACCESSORS(CallHandlerInfo, data, Object, kDataOffset) 5620 ACCESSORS(CallHandlerInfo, data, Object, kDataOffset)
5621 ACCESSORS(CallHandlerInfo, fast_handler, Object, kFastHandlerOffset)
5621 5622
5622 ACCESSORS(TemplateInfo, tag, Object, kTagOffset) 5623 ACCESSORS(TemplateInfo, tag, Object, kTagOffset)
5623 SMI_ACCESSORS(TemplateInfo, number_of_properties, kNumberOfProperties) 5624 SMI_ACCESSORS(TemplateInfo, number_of_properties, kNumberOfProperties)
5624 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset) 5625 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset)
5625 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset) 5626 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset)
5626 5627
5627 ACCESSORS(FunctionTemplateInfo, serial_number, Object, kSerialNumberOffset) 5628 ACCESSORS(FunctionTemplateInfo, serial_number, Object, kSerialNumberOffset)
5628 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset) 5629 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset)
5629 ACCESSORS(FunctionTemplateInfo, prototype_template, Object, 5630 ACCESSORS(FunctionTemplateInfo, prototype_template, Object,
5630 kPrototypeTemplateOffset) 5631 kPrototypeTemplateOffset)
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
7881 #undef WRITE_INT64_FIELD 7882 #undef WRITE_INT64_FIELD
7882 #undef READ_BYTE_FIELD 7883 #undef READ_BYTE_FIELD
7883 #undef WRITE_BYTE_FIELD 7884 #undef WRITE_BYTE_FIELD
7884 #undef NOBARRIER_READ_BYTE_FIELD 7885 #undef NOBARRIER_READ_BYTE_FIELD
7885 #undef NOBARRIER_WRITE_BYTE_FIELD 7886 #undef NOBARRIER_WRITE_BYTE_FIELD
7886 7887
7887 } // namespace internal 7888 } // namespace internal
7888 } // namespace v8 7889 } // namespace v8
7889 7890
7890 #endif // V8_OBJECTS_INL_H_ 7891 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/api-natives.cc ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698