Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 7c409d06852c38bea8fadaf0c017a1b66e5520ae..f0fe167aec31b385b5c4448dbf2f5271d8368e56 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -15,11 +15,9 @@ |
namespace v8 { |
namespace internal { |
- |
MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate, |
Handle<Object> object, |
- Handle<Object> key, |
- LanguageMode language_mode) { |
+ Handle<Object> key) { |
if (object->IsUndefined() || object->IsNull()) { |
THROW_NEW_ERROR( |
isolate, |
@@ -32,14 +30,12 @@ MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate, |
LookupIterator::PropertyOrElement(isolate, object, key, &success); |
if (!success) return MaybeHandle<Object>(); |
- return Object::GetProperty(&it, language_mode); |
+ return Object::GetProperty(&it); |
} |
- |
static MaybeHandle<Object> KeyedGetObjectProperty(Isolate* isolate, |
Handle<Object> receiver_obj, |
- Handle<Object> key_obj, |
- LanguageMode language_mode) { |
+ Handle<Object> key_obj) { |
// Fast cases for getting named properties of the receiver JSObject |
// itself. |
// |
@@ -113,8 +109,7 @@ static MaybeHandle<Object> KeyedGetObjectProperty(Isolate* isolate, |
} |
// Fall back to GetObjectProperty. |
- return Runtime::GetObjectProperty(isolate, receiver_obj, key_obj, |
- language_mode); |
+ return Runtime::GetObjectProperty(isolate, receiver_obj, key_obj); |
} |
@@ -386,23 +381,7 @@ RUNTIME_FUNCTION(Runtime_GetProperty) { |
Handle<Object> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- Runtime::GetObjectProperty(isolate, object, key, SLOPPY)); |
- return *result; |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_GetPropertyStrong) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 2); |
- |
- CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
- |
- Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- Runtime::GetObjectProperty(isolate, object, key, STRONG)); |
+ isolate, result, Runtime::GetObjectProperty(isolate, object, key)); |
return *result; |
} |
@@ -417,23 +396,7 @@ RUNTIME_FUNCTION(Runtime_KeyedGetProperty) { |
Handle<Object> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- KeyedGetObjectProperty(isolate, receiver_obj, key_obj, SLOPPY)); |
- return *result; |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_KeyedGetPropertyStrong) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 2); |
- |
- CONVERT_ARG_HANDLE_CHECKED(Object, receiver_obj, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Object, key_obj, 1); |
- |
- Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- KeyedGetObjectProperty(isolate, receiver_obj, key_obj, STRONG)); |
+ isolate, result, KeyedGetObjectProperty(isolate, receiver_obj, key_obj)); |
return *result; |
} |