[runtime] Remove Runtime::KeyedGetObjectProperty function.

R=conradw@chromium.org

Review URL: https://codereview.chromium.org/1317033009

Cr-Commit-Position: refs/heads/master@{#30675}
This commit is contained in:
mstarzinger 2015-09-10 03:48:51 -07:00 committed by Commit bot
parent 5e15679809
commit 763c68e4a3
2 changed files with 8 additions and 10 deletions

View File

@ -49,9 +49,10 @@ MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate,
}
MaybeHandle<Object> Runtime::KeyedGetObjectProperty(
Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj,
LanguageMode language_mode) {
static MaybeHandle<Object> KeyedGetObjectProperty(Isolate* isolate,
Handle<Object> receiver_obj,
Handle<Object> key_obj,
LanguageMode language_mode) {
// Fast cases for getting named properties of the receiver JSObject
// itself.
//
@ -125,7 +126,8 @@ MaybeHandle<Object> Runtime::KeyedGetObjectProperty(
}
// Fall back to GetObjectProperty.
return GetObjectProperty(isolate, receiver_obj, key_obj, language_mode);
return Runtime::GetObjectProperty(isolate, receiver_obj, key_obj,
language_mode);
}
@ -520,7 +522,7 @@ RUNTIME_FUNCTION(Runtime_KeyedGetProperty) {
Handle<Object> result;
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
isolate, result,
Runtime::KeyedGetObjectProperty(isolate, receiver_obj, key_obj, SLOPPY));
KeyedGetObjectProperty(isolate, receiver_obj, key_obj, SLOPPY));
return *result;
}
@ -535,7 +537,7 @@ RUNTIME_FUNCTION(Runtime_KeyedGetPropertyStrong) {
Handle<Object> result;
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
isolate, result,
Runtime::KeyedGetObjectProperty(isolate, receiver_obj, key_obj, STRONG));
KeyedGetObjectProperty(isolate, receiver_obj, key_obj, STRONG));
return *result;
}

View File

@ -1172,10 +1172,6 @@ class Runtime : public AllStatic {
Isolate* isolate, Handle<Object> object, Handle<Object> key,
LanguageMode language_mode = SLOPPY);
MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty(
Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj,
LanguageMode language_mode);
enum TypedArrayId {
// arrayIds below should be synchronized with typedarray.js natives.
ARRAY_ID_UINT8 = 1,