From eb7c55651b5e5cb7d9dcce086676c9aee904c12b Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Mon, 28 Jul 2014 12:00:05 +0000 Subject: [PATCH] Use return value of GetPropertyAttributes to make compiler happy. BUG= R=verwaest@chromium.org Review URL: https://codereview.chromium.org/420443006 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22638 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 3 ++- src/runtime.cc | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index 4d08b7999e..01c0831b4c 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -4093,7 +4093,8 @@ void JSObject::AddProperty(Handle object, Handle name, ASSERT(!object->IsJSProxy()); ASSERT(!name->AsArrayIndex(&index)); LookupIterator it(object, name, LookupIterator::CHECK_OWN_REAL); - GetPropertyAttributes(&it); + Maybe maybe = GetPropertyAttributes(&it); + ASSERT(maybe.has_value); ASSERT(!it.IsFound()); ASSERT(object->map()->is_extensible()); #endif diff --git a/src/runtime.cc b/src/runtime.cc index c195a90271..a3ebfd34bc 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -5251,7 +5251,8 @@ RUNTIME_FUNCTION(Runtime_AddNamedProperty) { uint32_t index = 0; ASSERT(!key->ToArrayIndex(&index)); LookupIterator it(object, key, LookupIterator::CHECK_OWN_REAL); - JSReceiver::GetPropertyAttributes(&it); + Maybe maybe = JSReceiver::GetPropertyAttributes(&it); + ASSERT(maybe.has_value); RUNTIME_ASSERT(!it.IsFound()); #endif @@ -5282,7 +5283,8 @@ RUNTIME_FUNCTION(Runtime_AddPropertyForTemplate) { if (key->IsName()) { LookupIterator it(object, Handle::cast(key), LookupIterator::CHECK_OWN_REAL); - JSReceiver::GetPropertyAttributes(&it); + Maybe maybe = JSReceiver::GetPropertyAttributes(&it); + ASSERT(maybe.has_value); duplicate = it.IsFound(); } else { uint32_t index = 0;