Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: src/runtime/runtime-object.cc

Issue 1317033009: [runtime] Remove Runtime::KeyedGetObjectProperty function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-super-default-construct-2
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index 2098c1cea933edce48ef63ed72116e377eace8b1..b475e56901370920883787ceb391c4f340886072 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -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;
}
« no previous file with comments | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698