Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index bf6dd6bce1cf76b845d012527acbbab68b401e5e..322ee1232ab28c85851fc2b60daf3858239625a9 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2643,9 +2643,10 @@ class JSObject: public JSReceiver { |
= UPDATE_WRITE_BARRIER); |
// Set the object's prototype (only JSReceiver and null are allowed values). |
- static Handle<Object> SetPrototype(Handle<JSObject> object, |
- Handle<Object> value, |
- bool skip_hidden_prototypes = false); |
+ MUST_USE_RESULT static MaybeHandle<Object> SetPrototype( |
+ Handle<JSObject> object, |
+ Handle<Object> value, |
+ bool skip_hidden_prototypes = false); |
// Initializes the body after properties slot, properties slot is |
// initialized by set_properties. Fill the pre-allocated fields with |
@@ -2678,11 +2679,13 @@ class JSObject: public JSReceiver { |
static Handle<JSObject> Copy(Handle<JSObject> object, |
Handle<AllocationSite> site); |
static Handle<JSObject> Copy(Handle<JSObject> object); |
- static Handle<JSObject> DeepCopy(Handle<JSObject> object, |
- AllocationSiteUsageContext* site_context, |
- DeepCopyHints hints = kNoHints); |
- static Handle<JSObject> DeepWalk(Handle<JSObject> object, |
- AllocationSiteCreationContext* site_context); |
+ MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( |
+ Handle<JSObject> object, |
+ AllocationSiteUsageContext* site_context, |
+ DeepCopyHints hints = kNoHints); |
+ MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( |
+ Handle<JSObject> object, |
+ AllocationSiteCreationContext* site_context); |
static Handle<Object> GetDataProperty(Handle<JSObject> object, |
Handle<Name> key); |