Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 71ea2d0f75cb6e51e9ea29fb079aae9600c23345..8ed9e85e1ff8ec11f38aa7b95eb7452f79a21c0f 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1809,7 +1809,7 @@ static Handle<Object> GetOwnProperty(Isolate* isolate, |
case ACCESS_ABSENT: return factory->undefined_value(); |
} |
- PropertyAttributes attrs = obj->GetLocalPropertyAttribute(*name); |
+ PropertyAttributes attrs = JSReceiver::GetLocalPropertyAttribute(obj, name); |
if (attrs == ABSENT) { |
RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object); |
return factory->undefined_value(); |
@@ -2057,8 +2057,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeclareGlobals) { |
// We found an existing property. Unless it was an interceptor |
// that claims the property is absent, skip this declaration. |
if (!lookup.IsInterceptor()) continue; |
- PropertyAttributes attributes = global->GetPropertyAttribute(*name); |
- if (attributes != ABSENT) continue; |
+ if (JSReceiver::GetPropertyAttribute(global, name) != ABSENT) continue; |
// Fall-through and introduce the absent property by using |
// SetProperty. |
} |
@@ -2249,7 +2248,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InitializeVarGlobal) { |
isolate->context()->global_object()->LocalLookup(*name, &lookup, true); |
if (lookup.IsInterceptor()) { |
PropertyAttributes intercepted = |
- lookup.holder()->GetPropertyAttribute(*name); |
+ JSReceiver::GetPropertyAttribute(handle(lookup.holder()), name); |
Igor Sheludko
2014/03/13 09:17:42
LookupResult seems to be GC-safe but we still allo
|
if (intercepted != ABSENT && (intercepted & READ_ONLY) == 0) { |
// Found an interceptor that's not read only. |
if (assign) { |
@@ -5640,13 +5639,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HasElement) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_IsPropertyEnumerable) { |
- SealHandleScope shs(isolate); |
+ HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
- CONVERT_ARG_CHECKED(JSObject, object, 0); |
- CONVERT_ARG_CHECKED(Name, key, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Name, key, 1); |
- PropertyAttributes att = object->GetLocalPropertyAttribute(key); |
+ PropertyAttributes att = JSReceiver::GetLocalPropertyAttribute(object, key); |
if (att == ABSENT || (att & DONT_ENUM) != 0) { |
RETURN_IF_SCHEDULED_EXCEPTION(isolate); |
return isolate->heap()->false_value(); |
@@ -5796,7 +5795,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
next_copy_index += local_property_count[i]; |
// Hidden properties only show up if the filter does not skip strings. |
- if ((filter & STRING) == 0 && jsproto->HasHiddenProperties()) { |
+ if ((filter & STRING) == 0 && JSObject::HasHiddenProperties(jsproto)) { |
hidden_strings++; |
} |
if (i < length - 1) { |
@@ -9335,7 +9334,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StoreContextSlot) { |
// Set the property if it's not read only or doesn't yet exist. |
if ((attributes & READ_ONLY) == 0 || |
- (object->GetLocalPropertyAttribute(*name) == ABSENT)) { |
+ (JSReceiver::GetLocalPropertyAttribute(object, name) == ABSENT)) { |
RETURN_IF_EMPTY_HANDLE( |
isolate, |
JSReceiver::SetProperty(object, name, value, NONE, strict_mode)); |