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

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

Issue 2531653002: [api] Support sharing prototypes between FunctionTemplates (Closed)
Patch Set: fixing test Created 4 years 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/objects.h ('k') | test/cctest/test-api.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 5832 matching lines...) Expand 10 before | Expand all | Expand 10 after
5843 5843
5844 ACCESSORS(TemplateInfo, tag, Object, kTagOffset) 5844 ACCESSORS(TemplateInfo, tag, Object, kTagOffset)
5845 ACCESSORS(TemplateInfo, serial_number, Object, kSerialNumberOffset) 5845 ACCESSORS(TemplateInfo, serial_number, Object, kSerialNumberOffset)
5846 SMI_ACCESSORS(TemplateInfo, number_of_properties, kNumberOfProperties) 5846 SMI_ACCESSORS(TemplateInfo, number_of_properties, kNumberOfProperties)
5847 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset) 5847 ACCESSORS(TemplateInfo, property_list, Object, kPropertyListOffset)
5848 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset) 5848 ACCESSORS(TemplateInfo, property_accessors, Object, kPropertyAccessorsOffset)
5849 5849
5850 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset) 5850 ACCESSORS(FunctionTemplateInfo, call_code, Object, kCallCodeOffset)
5851 ACCESSORS(FunctionTemplateInfo, prototype_template, Object, 5851 ACCESSORS(FunctionTemplateInfo, prototype_template, Object,
5852 kPrototypeTemplateOffset) 5852 kPrototypeTemplateOffset)
5853 ACCESSORS(FunctionTemplateInfo, prototype_provider_template, Object,
5854 kPrototypeProviderTemplateOffset)
5855
5853 ACCESSORS(FunctionTemplateInfo, parent_template, Object, kParentTemplateOffset) 5856 ACCESSORS(FunctionTemplateInfo, parent_template, Object, kParentTemplateOffset)
5854 ACCESSORS(FunctionTemplateInfo, named_property_handler, Object, 5857 ACCESSORS(FunctionTemplateInfo, named_property_handler, Object,
5855 kNamedPropertyHandlerOffset) 5858 kNamedPropertyHandlerOffset)
5856 ACCESSORS(FunctionTemplateInfo, indexed_property_handler, Object, 5859 ACCESSORS(FunctionTemplateInfo, indexed_property_handler, Object,
5857 kIndexedPropertyHandlerOffset) 5860 kIndexedPropertyHandlerOffset)
5858 ACCESSORS(FunctionTemplateInfo, instance_template, Object, 5861 ACCESSORS(FunctionTemplateInfo, instance_template, Object,
5859 kInstanceTemplateOffset) 5862 kInstanceTemplateOffset)
5860 ACCESSORS(FunctionTemplateInfo, class_name, Object, kClassNameOffset) 5863 ACCESSORS(FunctionTemplateInfo, class_name, Object, kClassNameOffset)
5861 ACCESSORS(FunctionTemplateInfo, signature, Object, kSignatureOffset) 5864 ACCESSORS(FunctionTemplateInfo, signature, Object, kSignatureOffset)
5862 ACCESSORS(FunctionTemplateInfo, instance_call_handler, Object, 5865 ACCESSORS(FunctionTemplateInfo, instance_call_handler, Object,
(...skipping 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after
8441 #undef WRITE_INT64_FIELD 8444 #undef WRITE_INT64_FIELD
8442 #undef READ_BYTE_FIELD 8445 #undef READ_BYTE_FIELD
8443 #undef WRITE_BYTE_FIELD 8446 #undef WRITE_BYTE_FIELD
8444 #undef NOBARRIER_READ_BYTE_FIELD 8447 #undef NOBARRIER_READ_BYTE_FIELD
8445 #undef NOBARRIER_WRITE_BYTE_FIELD 8448 #undef NOBARRIER_WRITE_BYTE_FIELD
8446 8449
8447 } // namespace internal 8450 } // namespace internal
8448 } // namespace v8 8451 } // namespace v8
8449 8452
8450 #endif // V8_OBJECTS_INL_H_ 8453 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698