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 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
2661 static Handle<JSObject> Copy(Handle<JSObject> object, | |
2662 Handle<AllocationSite> site); | |
2663 static Handle<JSObject> Copy(Handle<JSObject> object); | 2661 static Handle<JSObject> Copy(Handle<JSObject> object); |
2664 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( | 2662 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( |
2665 Handle<JSObject> object, | 2663 Handle<JSObject> object, |
2666 AllocationSiteUsageContext* site_context, | 2664 AllocationSiteUsageContext* site_context, |
2667 DeepCopyHints hints = kNoHints); | 2665 DeepCopyHints hints = kNoHints); |
2668 MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( | 2666 MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( |
2669 Handle<JSObject> object, | 2667 Handle<JSObject> object, |
2670 AllocationSiteCreationContext* site_context); | 2668 AllocationSiteCreationContext* site_context); |
2671 | 2669 |
2672 static Handle<Object> GetDataProperty(Handle<JSObject> object, | 2670 static Handle<Object> GetDataProperty(Handle<JSObject> object, |
(...skipping 8560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11233 } else { | 11231 } else { |
11234 value &= ~(1 << bit_position); | 11232 value &= ~(1 << bit_position); |
11235 } | 11233 } |
11236 return value; | 11234 return value; |
11237 } | 11235 } |
11238 }; | 11236 }; |
11239 | 11237 |
11240 } } // namespace v8::internal | 11238 } } // namespace v8::internal |
11241 | 11239 |
11242 #endif // V8_OBJECTS_H_ | 11240 #endif // V8_OBJECTS_H_ |
OLD | NEW |