Revision: 22638
Author:   hpa...@chromium.org
Date:     Mon Jul 28 12:00:05 2014 UTC
Log:      Use return value of GetPropertyAttributes to make compiler happy.

BUG=
R=verwa...@chromium.org

Review URL: https://codereview.chromium.org/420443006
http://code.google.com/p/v8/source/detail?r=22638

Modified:
 /branches/bleeding_edge/src/objects.cc
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Fri Jul 25 18:32:11 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Mon Jul 28 12:00:05 2014 UTC
@@ -4093,7 +4093,8 @@
   ASSERT(!object->IsJSProxy());
   ASSERT(!name->AsArrayIndex(&index));
   LookupIterator it(object, name, LookupIterator::CHECK_OWN_REAL);
-  GetPropertyAttributes(&it);
+  Maybe<PropertyAttributes> maybe = GetPropertyAttributes(&it);
+  ASSERT(maybe.has_value);
   ASSERT(!it.IsFound());
   ASSERT(object->map()->is_extensible());
 #endif
=======================================
--- /branches/bleeding_edge/src/runtime.cc      Fri Jul 25 18:32:11 2014 UTC
+++ /branches/bleeding_edge/src/runtime.cc      Mon Jul 28 12:00:05 2014 UTC
@@ -5251,7 +5251,8 @@
   uint32_t index = 0;
   ASSERT(!key->ToArrayIndex(&index));
   LookupIterator it(object, key, LookupIterator::CHECK_OWN_REAL);
-  JSReceiver::GetPropertyAttributes(&it);
+  Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it);
+  ASSERT(maybe.has_value);
   RUNTIME_ASSERT(!it.IsFound());
 #endif

@@ -5282,7 +5283,8 @@
   if (key->IsName()) {
     LookupIterator it(object, Handle<Name>::cast(key),
                       LookupIterator::CHECK_OWN_REAL);
-    JSReceiver::GetPropertyAttributes(&it);
+ Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it);
+    ASSERT(maybe.has_value);
     duplicate = it.IsFound();
   } else {
     uint32_t index = 0;

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to