OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2623 | 2623 |
2624 // Called the first time an object is observed with ES7 Object.observe. | 2624 // Called the first time an object is observed with ES7 Object.observe. |
2625 static void SetObserved(Handle<JSObject> object); | 2625 static void SetObserved(Handle<JSObject> object); |
2626 | 2626 |
2627 // Copy object. | 2627 // Copy object. |
2628 enum DeepCopyHints { | 2628 enum DeepCopyHints { |
2629 kNoHints = 0, | 2629 kNoHints = 0, |
2630 kObjectIsShallowArray = 1 | 2630 kObjectIsShallowArray = 1 |
2631 }; | 2631 }; |
2632 | 2632 |
2633 static Handle<JSObject> Copy(Handle<JSObject> object, | |
2634 Handle<AllocationSite> site); | |
2635 static Handle<JSObject> Copy(Handle<JSObject> object); | 2633 static Handle<JSObject> Copy(Handle<JSObject> object); |
2636 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( | 2634 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( |
2637 Handle<JSObject> object, | 2635 Handle<JSObject> object, |
2638 AllocationSiteUsageContext* site_context, | 2636 AllocationSiteUsageContext* site_context, |
2639 DeepCopyHints hints = kNoHints); | 2637 DeepCopyHints hints = kNoHints); |
2640 MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( | 2638 MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( |
2641 Handle<JSObject> object, | 2639 Handle<JSObject> object, |
2642 AllocationSiteCreationContext* site_context); | 2640 AllocationSiteCreationContext* site_context); |
2643 | 2641 |
2644 static Handle<Object> GetDataProperty(Handle<JSObject> object, | 2642 static Handle<Object> GetDataProperty(Handle<JSObject> object, |
(...skipping 8551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11196 } else { | 11194 } else { |
11197 value &= ~(1 << bit_position); | 11195 value &= ~(1 << bit_position); |
11198 } | 11196 } |
11199 return value; | 11197 return value; |
11200 } | 11198 } |
11201 }; | 11199 }; |
11202 | 11200 |
11203 } } // namespace v8::internal | 11201 } } // namespace v8::internal |
11204 | 11202 |
11205 #endif // V8_OBJECTS_H_ | 11203 #endif // V8_OBJECTS_H_ |
OLD | NEW |