| 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 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 Object* pre_allocated_value, | 2640 Object* pre_allocated_value, |
| 2641 Object* filler_value); | 2641 Object* filler_value); |
| 2642 | 2642 |
| 2643 // Check whether this object references another object | 2643 // Check whether this object references another object |
| 2644 bool ReferencesObject(Object* obj); | 2644 bool ReferencesObject(Object* obj); |
| 2645 | 2645 |
| 2646 // Disalow further properties to be added to the object. | 2646 // Disalow further properties to be added to the object. |
| 2647 static Handle<Object> PreventExtensions(Handle<JSObject> object); | 2647 static Handle<Object> PreventExtensions(Handle<JSObject> object); |
| 2648 | 2648 |
| 2649 // ES5 Object.freeze | 2649 // ES5 Object.freeze |
| 2650 static Handle<Object> Freeze(Handle<JSObject> object); | 2650 static MaybeHandle<Object> Freeze(Handle<JSObject> object); |
| 2651 | 2651 |
| 2652 // Called the first time an object is observed with ES7 Object.observe. | 2652 // Called the first time an object is observed with ES7 Object.observe. |
| 2653 static void SetObserved(Handle<JSObject> object); | 2653 static void SetObserved(Handle<JSObject> object); |
| 2654 | 2654 |
| 2655 // Copy object. | 2655 // Copy object. |
| 2656 enum DeepCopyHints { | 2656 enum DeepCopyHints { |
| 2657 kNoHints = 0, | 2657 kNoHints = 0, |
| 2658 kObjectIsShallowArray = 1 | 2658 kObjectIsShallowArray = 1 |
| 2659 }; | 2659 }; |
| 2660 | 2660 |
| (...skipping 8166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10827 } else { | 10827 } else { |
| 10828 value &= ~(1 << bit_position); | 10828 value &= ~(1 << bit_position); |
| 10829 } | 10829 } |
| 10830 return value; | 10830 return value; |
| 10831 } | 10831 } |
| 10832 }; | 10832 }; |
| 10833 | 10833 |
| 10834 } } // namespace v8::internal | 10834 } } // namespace v8::internal |
| 10835 | 10835 |
| 10836 #endif // V8_OBJECTS_H_ | 10836 #endif // V8_OBJECTS_H_ |
| OLD | NEW |