| 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 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2407 inline PropertyType GetType(int descriptor_number); | 2407 inline PropertyType GetType(int descriptor_number); |
| 2408 inline int GetFieldIndex(int descriptor_number); | 2408 inline int GetFieldIndex(int descriptor_number); |
| 2409 inline JSFunction* GetConstantFunction(int descriptor_number); | 2409 inline JSFunction* GetConstantFunction(int descriptor_number); |
| 2410 inline Object* GetCallbacksObject(int descriptor_number); | 2410 inline Object* GetCallbacksObject(int descriptor_number); |
| 2411 inline AccessorDescriptor* GetCallbacks(int descriptor_number); | 2411 inline AccessorDescriptor* GetCallbacks(int descriptor_number); |
| 2412 inline bool IsProperty(int descriptor_number); | 2412 inline bool IsProperty(int descriptor_number); |
| 2413 inline bool IsTransitionOnly(int descriptor_number); | 2413 inline bool IsTransitionOnly(int descriptor_number); |
| 2414 inline bool IsNullDescriptor(int descriptor_number); | 2414 inline bool IsNullDescriptor(int descriptor_number); |
| 2415 inline bool IsDontEnum(int descriptor_number); | 2415 inline bool IsDontEnum(int descriptor_number); |
| 2416 | 2416 |
| 2417 // The return value used to signal allocation failure only. |
| 2418 MaybeObject* GetDescriptorWithoutTransitions(int descriptor_number, |
| 2419 Descriptor* desc); |
| 2420 |
| 2417 class WhitenessWitness { | 2421 class WhitenessWitness { |
| 2418 public: | 2422 public: |
| 2419 inline explicit WhitenessWitness(DescriptorArray* array); | 2423 inline explicit WhitenessWitness(DescriptorArray* array); |
| 2420 inline ~WhitenessWitness(); | 2424 inline ~WhitenessWitness(); |
| 2421 | 2425 |
| 2422 private: | 2426 private: |
| 2423 IncrementalMarking* marking_; | 2427 IncrementalMarking* marking_; |
| 2424 }; | 2428 }; |
| 2425 | 2429 |
| 2426 // Accessor for complete descriptor. | 2430 // Accessor for complete descriptor. |
| (...skipping 5321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7748 // * undefined: considered an accessor by the spec, too, strangely enough | 7752 // * undefined: considered an accessor by the spec, too, strangely enough |
| 7749 // * the hole: an accessor which has not been set | 7753 // * the hole: an accessor which has not been set |
| 7750 // * a pointer to a map: a transition used to ensure map sharing | 7754 // * a pointer to a map: a transition used to ensure map sharing |
| 7751 class AccessorPair: public Struct { | 7755 class AccessorPair: public Struct { |
| 7752 public: | 7756 public: |
| 7753 DECL_ACCESSORS(getter, Object) | 7757 DECL_ACCESSORS(getter, Object) |
| 7754 DECL_ACCESSORS(setter, Object) | 7758 DECL_ACCESSORS(setter, Object) |
| 7755 | 7759 |
| 7756 static inline AccessorPair* cast(Object* obj); | 7760 static inline AccessorPair* cast(Object* obj); |
| 7757 | 7761 |
| 7762 MaybeObject* CopyWithoutTransitions(); |
| 7763 |
| 7758 #ifdef OBJECT_PRINT | 7764 #ifdef OBJECT_PRINT |
| 7759 void AccessorPairPrint(FILE* out = stdout); | 7765 void AccessorPairPrint(FILE* out = stdout); |
| 7760 #endif | 7766 #endif |
| 7761 #ifdef DEBUG | 7767 #ifdef DEBUG |
| 7762 void AccessorPairVerify(); | 7768 void AccessorPairVerify(); |
| 7763 #endif | 7769 #endif |
| 7764 | 7770 |
| 7765 static const int kGetterOffset = HeapObject::kHeaderSize; | 7771 static const int kGetterOffset = HeapObject::kHeaderSize; |
| 7766 static const int kSetterOffset = kGetterOffset + kPointerSize; | 7772 static const int kSetterOffset = kGetterOffset + kPointerSize; |
| 7767 static const int kSize = kSetterOffset + kPointerSize; | 7773 static const int kSize = kSetterOffset + kPointerSize; |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8259 } else { | 8265 } else { |
| 8260 value &= ~(1 << bit_position); | 8266 value &= ~(1 << bit_position); |
| 8261 } | 8267 } |
| 8262 return value; | 8268 return value; |
| 8263 } | 8269 } |
| 8264 }; | 8270 }; |
| 8265 | 8271 |
| 8266 } } // namespace v8::internal | 8272 } } // namespace v8::internal |
| 8267 | 8273 |
| 8268 #endif // V8_OBJECTS_H_ | 8274 #endif // V8_OBJECTS_H_ |
| OLD | NEW |