OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2484 // the caller to initialize object header. Fill the pre-allocated fields with | 2484 // the caller to initialize object header. Fill the pre-allocated fields with |
2485 // pre_allocated_value and the rest with filler_value. | 2485 // pre_allocated_value and the rest with filler_value. |
2486 // Note: this call does not update write barrier, the caller is responsible | 2486 // Note: this call does not update write barrier, the caller is responsible |
2487 // to ensure that |filler_value| can be collected without WB here. | 2487 // to ensure that |filler_value| can be collected without WB here. |
2488 inline void InitializeBody(Map* map, int start_offset, | 2488 inline void InitializeBody(Map* map, int start_offset, |
2489 Object* pre_allocated_value, Object* filler_value); | 2489 Object* pre_allocated_value, Object* filler_value); |
2490 | 2490 |
2491 // Check whether this object references another object | 2491 // Check whether this object references another object |
2492 bool ReferencesObject(Object* obj); | 2492 bool ReferencesObject(Object* obj); |
2493 | 2493 |
| 2494 MUST_USE_RESULT static Maybe<bool> TestIntegrityLevel(Handle<JSObject> object, |
| 2495 IntegrityLevel lvl); |
| 2496 |
2494 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 2497 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
2495 Handle<JSObject> object, ShouldThrow should_throw); | 2498 Handle<JSObject> object, ShouldThrow should_throw); |
2496 | 2499 |
2497 static bool IsExtensible(Handle<JSObject> object); | 2500 static bool IsExtensible(Handle<JSObject> object); |
2498 | 2501 |
2499 // Copy object. | 2502 // Copy object. |
2500 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 }; | 2503 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 }; |
2501 | 2504 |
2502 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( | 2505 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( |
2503 Handle<JSObject> object, | 2506 Handle<JSObject> object, |
(...skipping 5943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8447 } | 8450 } |
8448 }; | 8451 }; |
8449 | 8452 |
8450 | 8453 |
8451 } // NOLINT, false-positive due to second-order macros. | 8454 } // NOLINT, false-positive due to second-order macros. |
8452 } // NOLINT, false-positive due to second-order macros. | 8455 } // NOLINT, false-positive due to second-order macros. |
8453 | 8456 |
8454 #include "src/objects/object-macros-undef.h" | 8457 #include "src/objects/object-macros-undef.h" |
8455 | 8458 |
8456 #endif // V8_OBJECTS_H_ | 8459 #endif // V8_OBJECTS_H_ |
OLD | NEW |