| 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2473 // the caller to initialize object header. Fill the pre-allocated fields with | 2473 // the caller to initialize object header. Fill the pre-allocated fields with |
| 2474 // pre_allocated_value and the rest with filler_value. | 2474 // pre_allocated_value and the rest with filler_value. |
| 2475 // Note: this call does not update write barrier, the caller is responsible | 2475 // Note: this call does not update write barrier, the caller is responsible |
| 2476 // to ensure that |filler_value| can be collected without WB here. | 2476 // to ensure that |filler_value| can be collected without WB here. |
| 2477 inline void InitializeBody(Map* map, int start_offset, | 2477 inline void InitializeBody(Map* map, int start_offset, |
| 2478 Object* pre_allocated_value, Object* filler_value); | 2478 Object* pre_allocated_value, Object* filler_value); |
| 2479 | 2479 |
| 2480 // Check whether this object references another object | 2480 // Check whether this object references another object |
| 2481 bool ReferencesObject(Object* obj); | 2481 bool ReferencesObject(Object* obj); |
| 2482 | 2482 |
| 2483 MUST_USE_RESULT static Maybe<bool> TestIntegrityLevel(Handle<JSObject> object, |
| 2484 IntegrityLevel lvl); |
| 2485 |
| 2483 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 2486 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
| 2484 Handle<JSObject> object, ShouldThrow should_throw); | 2487 Handle<JSObject> object, ShouldThrow should_throw); |
| 2485 | 2488 |
| 2486 static bool IsExtensible(Handle<JSObject> object); | 2489 static bool IsExtensible(Handle<JSObject> object); |
| 2487 | 2490 |
| 2488 // Copy object. | 2491 // Copy object. |
| 2489 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 }; | 2492 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 }; |
| 2490 | 2493 |
| 2491 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( | 2494 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( |
| 2492 Handle<JSObject> object, | 2495 Handle<JSObject> object, |
| (...skipping 4774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7267 } | 7270 } |
| 7268 }; | 7271 }; |
| 7269 | 7272 |
| 7270 | 7273 |
| 7271 } // NOLINT, false-positive due to second-order macros. | 7274 } // NOLINT, false-positive due to second-order macros. |
| 7272 } // NOLINT, false-positive due to second-order macros. | 7275 } // NOLINT, false-positive due to second-order macros. |
| 7273 | 7276 |
| 7274 #include "src/objects/object-macros-undef.h" | 7277 #include "src/objects/object-macros-undef.h" |
| 7275 | 7278 |
| 7276 #endif // V8_OBJECTS_H_ | 7279 #endif // V8_OBJECTS_H_ |
| OLD | NEW |