| 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 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2644 public: | 2644 public: |
| 2645 static inline int SizeOf(Map* map, HeapObject* object); | 2645 static inline int SizeOf(Map* map, HeapObject* object); |
| 2646 }; | 2646 }; |
| 2647 | 2647 |
| 2648 // Enqueue change record for Object.observe. May cause GC. | 2648 // Enqueue change record for Object.observe. May cause GC. |
| 2649 static void EnqueueChangeRecord(Handle<JSObject> object, | 2649 static void EnqueueChangeRecord(Handle<JSObject> object, |
| 2650 const char* type, | 2650 const char* type, |
| 2651 Handle<Name> name, | 2651 Handle<Name> name, |
| 2652 Handle<Object> old_value); | 2652 Handle<Object> old_value); |
| 2653 | 2653 |
| 2654 // Deliver change records to observers. May cause GC. | |
| 2655 static void DeliverChangeRecords(Isolate* isolate); | |
| 2656 | |
| 2657 private: | 2654 private: |
| 2658 friend class DictionaryElementsAccessor; | 2655 friend class DictionaryElementsAccessor; |
| 2659 friend class JSReceiver; | 2656 friend class JSReceiver; |
| 2660 friend class Object; | 2657 friend class Object; |
| 2661 | 2658 |
| 2662 // Used from Object::GetProperty(). | 2659 // Used from Object::GetProperty(). |
| 2663 static Handle<Object> GetPropertyWithFailedAccessCheck( | 2660 static Handle<Object> GetPropertyWithFailedAccessCheck( |
| 2664 Handle<JSObject> object, | 2661 Handle<JSObject> object, |
| 2665 Handle<Object> receiver, | 2662 Handle<Object> receiver, |
| 2666 LookupResult* result, | 2663 LookupResult* result, |
| (...skipping 7821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10488 } else { | 10485 } else { |
| 10489 value &= ~(1 << bit_position); | 10486 value &= ~(1 << bit_position); |
| 10490 } | 10487 } |
| 10491 return value; | 10488 return value; |
| 10492 } | 10489 } |
| 10493 }; | 10490 }; |
| 10494 | 10491 |
| 10495 } } // namespace v8::internal | 10492 } } // namespace v8::internal |
| 10496 | 10493 |
| 10497 #endif // V8_OBJECTS_H_ | 10494 #endif // V8_OBJECTS_H_ |
| OLD | NEW |