OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7799 DECL_ACCESSORS(tag, Object) | 7799 DECL_ACCESSORS(tag, Object) |
7800 DECL_ACCESSORS(property_list, Object) | 7800 DECL_ACCESSORS(property_list, Object) |
7801 | 7801 |
7802 #ifdef DEBUG | 7802 #ifdef DEBUG |
7803 void TemplateInfoVerify(); | 7803 void TemplateInfoVerify(); |
7804 #endif | 7804 #endif |
7805 | 7805 |
7806 static const int kTagOffset = HeapObject::kHeaderSize; | 7806 static const int kTagOffset = HeapObject::kHeaderSize; |
7807 static const int kPropertyListOffset = kTagOffset + kPointerSize; | 7807 static const int kPropertyListOffset = kTagOffset + kPointerSize; |
7808 static const int kHeaderSize = kPropertyListOffset + kPointerSize; | 7808 static const int kHeaderSize = kPropertyListOffset + kPointerSize; |
7809 protected: | 7809 |
| 7810 private: |
7810 DISALLOW_IMPLICIT_CONSTRUCTORS(TemplateInfo); | 7811 DISALLOW_IMPLICIT_CONSTRUCTORS(TemplateInfo); |
7811 }; | 7812 }; |
7812 | 7813 |
7813 | 7814 |
7814 class FunctionTemplateInfo: public TemplateInfo { | 7815 class FunctionTemplateInfo: public TemplateInfo { |
7815 public: | 7816 public: |
7816 DECL_ACCESSORS(serial_number, Object) | 7817 DECL_ACCESSORS(serial_number, Object) |
7817 DECL_ACCESSORS(call_code, Object) | 7818 DECL_ACCESSORS(call_code, Object) |
7818 DECL_ACCESSORS(property_accessors, Object) | 7819 DECL_ACCESSORS(property_accessors, Object) |
7819 DECL_ACCESSORS(prototype_template, Object) | 7820 DECL_ACCESSORS(prototype_template, Object) |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8193 } else { | 8194 } else { |
8194 value &= ~(1 << bit_position); | 8195 value &= ~(1 << bit_position); |
8195 } | 8196 } |
8196 return value; | 8197 return value; |
8197 } | 8198 } |
8198 }; | 8199 }; |
8199 | 8200 |
8200 } } // namespace v8::internal | 8201 } } // namespace v8::internal |
8201 | 8202 |
8202 #endif // V8_OBJECTS_H_ | 8203 #endif // V8_OBJECTS_H_ |
OLD | NEW |